SysOperLog.java 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. package com.ruoyi.system.domain;
  2. import org.apache.commons.lang3.builder.ToStringBuilder;
  3. import org.apache.commons.lang3.builder.ToStringStyle;
  4. import java.util.Date;
  5. import com.ruoyi.common.annotation.Excel;
  6. import com.ruoyi.common.annotation.Excel.ColumnType;
  7. import com.ruoyi.common.core.domain.BaseEntity;
  8. /**
  9. * 操作日志记录表 oper_log
  10. *
  11. * @author ruoyi
  12. */
  13. public class SysOperLog extends BaseEntity
  14. {
  15. private static final long serialVersionUID = 1L;
  16. /** 日志主键 */
  17. @Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
  18. private Long operId;
  19. /** 操作模块 */
  20. @Excel(name = "操作模块")
  21. private String title;
  22. /** 业务类型(0其它 1新增 2修改 3删除) */
  23. @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
  24. private Integer businessType;
  25. /** 业务类型数组 */
  26. private Integer[] businessTypes;
  27. /** 请求方法 */
  28. @Excel(name = "请求方法")
  29. private String method;
  30. /** 请求方式 */
  31. @Excel(name = "请求方式")
  32. private String requestMethod;
  33. /** 操作类别(0其它 1后台用户 2手机端用户) */
  34. @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
  35. private Integer operatorType;
  36. /** 操作人员 */
  37. @Excel(name = "操作人员")
  38. private String operName;
  39. /** 部门名称 */
  40. @Excel(name = "部门名称")
  41. private String deptName;
  42. /** 请求url */
  43. @Excel(name = "请求地址")
  44. private String operUrl;
  45. /** 操作地址 */
  46. @Excel(name = "操作地址")
  47. private String operIp;
  48. /** 操作地点 */
  49. @Excel(name = "操作地点")
  50. private String operLocation;
  51. /** 请求参数 */
  52. @Excel(name = "请求参数")
  53. private String operParam;
  54. /** 操作状态(0正常 1异常) */
  55. @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
  56. private Integer status;
  57. /** 错误消息 */
  58. @Excel(name = "错误消息")
  59. private String errorMsg;
  60. /** 操作时间 */
  61. @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  62. private Date operTime;
  63. public Long getOperId()
  64. {
  65. return operId;
  66. }
  67. public void setOperId(Long operId)
  68. {
  69. this.operId = operId;
  70. }
  71. public String getTitle()
  72. {
  73. return title;
  74. }
  75. public void setTitle(String title)
  76. {
  77. this.title = title;
  78. }
  79. public Integer getBusinessType()
  80. {
  81. return businessType;
  82. }
  83. public void setBusinessType(Integer businessType)
  84. {
  85. this.businessType = businessType;
  86. }
  87. public Integer[] getBusinessTypes()
  88. {
  89. return businessTypes;
  90. }
  91. public void setBusinessTypes(Integer[] businessTypes)
  92. {
  93. this.businessTypes = businessTypes;
  94. }
  95. public String getMethod()
  96. {
  97. return method;
  98. }
  99. public void setMethod(String method)
  100. {
  101. this.method = method;
  102. }
  103. public String getRequestMethod()
  104. {
  105. return requestMethod;
  106. }
  107. public void setRequestMethod(String requestMethod)
  108. {
  109. this.requestMethod = requestMethod;
  110. }
  111. public Integer getOperatorType()
  112. {
  113. return operatorType;
  114. }
  115. public void setOperatorType(Integer operatorType)
  116. {
  117. this.operatorType = operatorType;
  118. }
  119. public String getOperName()
  120. {
  121. return operName;
  122. }
  123. public void setOperName(String operName)
  124. {
  125. this.operName = operName;
  126. }
  127. public String getDeptName()
  128. {
  129. return deptName;
  130. }
  131. public void setDeptName(String deptName)
  132. {
  133. this.deptName = deptName;
  134. }
  135. public String getOperUrl()
  136. {
  137. return operUrl;
  138. }
  139. public void setOperUrl(String operUrl)
  140. {
  141. this.operUrl = operUrl;
  142. }
  143. public String getOperIp()
  144. {
  145. return operIp;
  146. }
  147. public void setOperIp(String operIp)
  148. {
  149. this.operIp = operIp;
  150. }
  151. public String getOperLocation()
  152. {
  153. return operLocation;
  154. }
  155. public void setOperLocation(String operLocation)
  156. {
  157. this.operLocation = operLocation;
  158. }
  159. public String getOperParam()
  160. {
  161. return operParam;
  162. }
  163. public void setOperParam(String operParam)
  164. {
  165. this.operParam = operParam;
  166. }
  167. public Integer getStatus()
  168. {
  169. return status;
  170. }
  171. public void setStatus(Integer status)
  172. {
  173. this.status = status;
  174. }
  175. public String getErrorMsg()
  176. {
  177. return errorMsg;
  178. }
  179. public void setErrorMsg(String errorMsg)
  180. {
  181. this.errorMsg = errorMsg;
  182. }
  183. public Date getOperTime()
  184. {
  185. return operTime;
  186. }
  187. public void setOperTime(Date operTime)
  188. {
  189. this.operTime = operTime;
  190. }
  191. @Override
  192. public String toString() {
  193. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  194. .append("operId", getOperId())
  195. .append("title", getTitle())
  196. .append("businessType", getBusinessType())
  197. .append("businessTypes", getBusinessTypes())
  198. .append("method", getMethod())
  199. .append("requestMethod", getRequestMethod())
  200. .append("operatorType", getOperatorType())
  201. .append("operName", getOperName())
  202. .append("deptName", getDeptName())
  203. .append("operUrl", getOperUrl())
  204. .append("operIp", getOperIp())
  205. .append("operLocation", getOperLocation())
  206. .append("operParam", getOperParam())
  207. .append("status", getStatus())
  208. .append("errorMsg", getErrorMsg())
  209. .append("operTime", getOperTime())
  210. .toString();
  211. }
  212. }