WeChatUserRelationEntity.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using LeaRun.Application.Code;
  2. using System;
  3. namespace LeaRun.Application.Entity.WeChatManage
  4. {
  5. /// <summary>
  6. /// 版 本 6.1
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2015.12.23 11:31
  10. /// 描 述:企业号成员
  11. /// </summary>
  12. public class WeChatUserRelationEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 部门对应关系主键
  17. /// </summary>
  18. public string UserRelationId { get; set; }
  19. /// <summary>
  20. /// 部门Id
  21. /// </summary>
  22. public string DeptId { get; set; }
  23. /// <summary>
  24. /// 部门名称
  25. /// </summary>
  26. public string DeptName { get; set; }
  27. /// <summary>
  28. /// 微信部门Id
  29. /// </summary>
  30. public int? WeChatDeptId { get; set; }
  31. /// <summary>
  32. /// 用户Id
  33. /// </summary>
  34. public string UserId { get; set; }
  35. /// <summary>
  36. /// 同步状态
  37. /// </summary>
  38. public string SyncState { get; set; }
  39. /// <summary>
  40. /// 同步日志
  41. /// </summary>
  42. public string SyncLog { get; set; }
  43. /// <summary>
  44. /// 创建日期
  45. /// </summary>
  46. public DateTime? CreateDate { get; set; }
  47. /// <summary>
  48. /// 创建用户主键
  49. /// </summary>
  50. public string CreateUserId { get; set; }
  51. /// <summary>
  52. /// 创建用户
  53. /// </summary>
  54. public string CreateUserName { get; set; }
  55. #endregion
  56. #region 扩展操作
  57. /// <summary>
  58. /// 新增调用
  59. /// </summary>
  60. public override void Create()
  61. {
  62. this.CreateDate = DateTime.Now;
  63. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  64. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  65. }
  66. /// <summary>
  67. /// 编辑调用
  68. /// </summary>
  69. /// <param name="keyValue"></param>
  70. public override void Modify(string keyValue)
  71. {
  72. this.UserRelationId = keyValue;
  73. this.CreateDate = DateTime.Now;
  74. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  75. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  76. }
  77. #endregion
  78. }
  79. }