SysOperLog.java 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. /** 返回参数 */
  55. @Excel(name = "返回参数")
  56. private String jsonResult;
  57. /** 操作状态(0正常 1异常) */
  58. @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
  59. private Integer status;
  60. /** 错误消息 */
  61. @Excel(name = "错误消息")
  62. private String errorMsg;
  63. /** 操作时间 */
  64. @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  65. private Date operTime;
  66. public Long getOperId()
  67. {
  68. return operId;
  69. }
  70. public void setOperId(Long operId)
  71. {
  72. this.operId = operId;
  73. }
  74. public String getTitle()
  75. {
  76. return title;
  77. }
  78. public void setTitle(String title)
  79. {
  80. this.title = title;
  81. }
  82. public Integer getBusinessType()
  83. {
  84. return businessType;
  85. }
  86. public void setBusinessType(Integer businessType)
  87. {
  88. this.businessType = businessType;
  89. }
  90. public Integer[] getBusinessTypes()
  91. {
  92. return businessTypes;
  93. }
  94. public void setBusinessTypes(Integer[] businessTypes)
  95. {
  96. this.businessTypes = businessTypes;
  97. }
  98. public String getMethod()
  99. {
  100. return method;
  101. }
  102. public void setMethod(String method)
  103. {
  104. this.method = method;
  105. }
  106. public String getRequestMethod()
  107. {
  108. return requestMethod;
  109. }
  110. public void setRequestMethod(String requestMethod)
  111. {
  112. this.requestMethod = requestMethod;
  113. }
  114. public Integer getOperatorType()
  115. {
  116. return operatorType;
  117. }
  118. public void setOperatorType(Integer operatorType)
  119. {
  120. this.operatorType = operatorType;
  121. }
  122. public String getOperName()
  123. {
  124. return operName;
  125. }
  126. public void setOperName(String operName)
  127. {
  128. this.operName = operName;
  129. }
  130. public String getDeptName()
  131. {
  132. return deptName;
  133. }
  134. public void setDeptName(String deptName)
  135. {
  136. this.deptName = deptName;
  137. }
  138. public String getOperUrl()
  139. {
  140. return operUrl;
  141. }
  142. public void setOperUrl(String operUrl)
  143. {
  144. this.operUrl = operUrl;
  145. }
  146. public String getOperIp()
  147. {
  148. return operIp;
  149. }
  150. public void setOperIp(String operIp)
  151. {
  152. this.operIp = operIp;
  153. }
  154. public String getOperLocation()
  155. {
  156. return operLocation;
  157. }
  158. public void setOperLocation(String operLocation)
  159. {
  160. this.operLocation = operLocation;
  161. }
  162. public String getOperParam()
  163. {
  164. return operParam;
  165. }
  166. public void setOperParam(String operParam)
  167. {
  168. this.operParam = operParam;
  169. }
  170. public String getJsonResult()
  171. {
  172. return jsonResult;
  173. }
  174. public void setJsonResult(String jsonResult)
  175. {
  176. this.jsonResult = jsonResult;
  177. }
  178. public Integer getStatus()
  179. {
  180. return status;
  181. }
  182. public void setStatus(Integer status)
  183. {
  184. this.status = status;
  185. }
  186. public String getErrorMsg()
  187. {
  188. return errorMsg;
  189. }
  190. public void setErrorMsg(String errorMsg)
  191. {
  192. this.errorMsg = errorMsg;
  193. }
  194. public Date getOperTime()
  195. {
  196. return operTime;
  197. }
  198. public void setOperTime(Date operTime)
  199. {
  200. this.operTime = operTime;
  201. }
  202. @Override
  203. public String toString() {
  204. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  205. .append("operId", getOperId())
  206. .append("title", getTitle())
  207. .append("businessType", getBusinessType())
  208. .append("businessTypes", getBusinessTypes())
  209. .append("method", getMethod())
  210. .append("requestMethod", getRequestMethod())
  211. .append("operatorType", getOperatorType())
  212. .append("operName", getOperName())
  213. .append("deptName", getDeptName())
  214. .append("operUrl", getOperUrl())
  215. .append("operIp", getOperIp())
  216. .append("operLocation", getOperLocation())
  217. .append("operParam", getOperParam())
  218. .append("status", getStatus())
  219. .append("errorMsg", getErrorMsg())
  220. .append("operTime", getOperTime())
  221. .toString();
  222. }
  223. }