UserRole.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. package com.jpsoft.smart.modules.sys.entity;
  2. import java.util.Date;
  3. import org.springframework.format.annotation.DateTimeFormat;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. /**
  6. 描述:sys_user_role的实体类
  7. */
  8. public class UserRole {
  9. private String id;
  10. private String roleId;
  11. private String userId;
  12. private Boolean delFlag;
  13. private String createBy;
  14. private String updateBy;
  15. private Date createTime;
  16. private Date updateTime;
  17. /**
  18. *获取用户角色关联编号
  19. */
  20. public String getId(){
  21. return id;
  22. }
  23. /**
  24. *设置用户角色关联编号
  25. */
  26. public void setId(String id){
  27. this.id = id;
  28. }
  29. /**
  30. *获取角色编号
  31. */
  32. public String getRoleId(){
  33. return roleId;
  34. }
  35. /**
  36. *设置角色编号
  37. */
  38. public void setRoleId(String roleId){
  39. this.roleId = roleId;
  40. }
  41. /**
  42. *获取用户编号
  43. */
  44. public String getUserId(){
  45. return userId;
  46. }
  47. /**
  48. *设置用户编号
  49. */
  50. public void setUserId(String userId){
  51. this.userId = userId;
  52. }
  53. /**
  54. *获取是否删除
  55. */
  56. public Boolean getDelFlag(){
  57. return delFlag;
  58. }
  59. /**
  60. *设置是否删除
  61. */
  62. public void setDelFlag(Boolean delFlag){
  63. this.delFlag = delFlag;
  64. }
  65. /**
  66. *获取创建人
  67. */
  68. public String getCreateBy(){
  69. return createBy;
  70. }
  71. /**
  72. *设置创建人
  73. */
  74. public void setCreateBy(String createBy){
  75. this.createBy = createBy;
  76. }
  77. /**
  78. *获取更新人
  79. */
  80. public String getUpdateBy(){
  81. return updateBy;
  82. }
  83. /**
  84. *设置更新人
  85. */
  86. public void setUpdateBy(String updateBy){
  87. this.updateBy = updateBy;
  88. }
  89. @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
  90. @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
  91. /**
  92. *获取创建时间
  93. */
  94. public Date getCreateTime(){
  95. return createTime;
  96. }
  97. /**
  98. *设置创建时间
  99. */
  100. public void setCreateTime(Date createTime){
  101. this.createTime = createTime;
  102. }
  103. @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
  104. @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone ="GMT+8")
  105. /**
  106. *获取更新时间
  107. */
  108. public Date getUpdateTime(){
  109. return updateTime;
  110. }
  111. /**
  112. *设置更新时间
  113. */
  114. public void setUpdateTime(Date updateTime){
  115. this.updateTime = updateTime;
  116. }
  117. }