123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- using LeaRun.Application.Code;
- using System;
- namespace LeaRun.Application.Entity.WeChatManage
- {
- /// <summary>
- /// 版 本 6.1
- /// Copyright (c) 2013-2016 上海力软信息技术有限公司
- /// 创建人:佘赐雄
- /// 日 期:2015.12.23 11:31
- /// 描 述:企业号成员
- /// </summary>
- public class WeChatUserRelationEntity : BaseEntity
- {
- #region 实体成员
- /// <summary>
- /// 部门对应关系主键
- /// </summary>
- public string UserRelationId { get; set; }
- /// <summary>
- /// 部门Id
- /// </summary>
- public string DeptId { get; set; }
- /// <summary>
- /// 部门名称
- /// </summary>
- public string DeptName { get; set; }
- /// <summary>
- /// 微信部门Id
- /// </summary>
- public int? WeChatDeptId { get; set; }
- /// <summary>
- /// 用户Id
- /// </summary>
- public string UserId { get; set; }
- /// <summary>
- /// 同步状态
- /// </summary>
- public string SyncState { get; set; }
- /// <summary>
- /// 同步日志
- /// </summary>
- public string SyncLog { get; set; }
- /// <summary>
- /// 创建日期
- /// </summary>
- public DateTime? CreateDate { get; set; }
- /// <summary>
- /// 创建用户主键
- /// </summary>
- public string CreateUserId { get; set; }
- /// <summary>
- /// 创建用户
- /// </summary>
- public string CreateUserName { get; set; }
- #endregion
- #region 扩展操作
- /// <summary>
- /// 新增调用
- /// </summary>
- public override void Create()
- {
- this.CreateDate = DateTime.Now;
- this.CreateUserId = OperatorProvider.Provider.Current().UserId;
- this.CreateUserName = OperatorProvider.Provider.Current().UserName;
- }
- /// <summary>
- /// 编辑调用
- /// </summary>
- /// <param name="keyValue"></param>
- public override void Modify(string keyValue)
- {
- this.UserRelationId = keyValue;
- this.CreateDate = DateTime.Now;
- this.CreateUserId = OperatorProvider.Provider.Current().UserId;
- this.CreateUserName = OperatorProvider.Provider.Current().UserName;
- }
- #endregion
- }
- }
|