SysOperLog.java 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. package com.jiayue.center.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import java.util.Date;
  7. /**
  8. * 操作日志记录表 oper_lo
  9. *
  10. * @author ruoyi
  11. */
  12. public class SysOperLog extends BaseEntity {
  13. private static final long serialVersionUID = 1L;
  14. /** 日志主键 */
  15. @TableId(type = IdType.AUTO)
  16. private Long operId;
  17. /** 操作模块 */
  18. private String title;
  19. /** 业务类型(0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据) */
  20. private Integer businessType;
  21. /** 审计类型(0=系统,1=业务) */
  22. private Integer auditType;
  23. /** 业务类型数组 */
  24. @TableField(exist = false)
  25. private Integer[] businessTypes;
  26. public String getOperdesc() {
  27. return operdesc;
  28. }
  29. public void setOperdesc(String operdesc) {
  30. this.operdesc = operdesc;
  31. }
  32. /** 操作描述 */
  33. private String operdesc;
  34. /** 请求方法 */
  35. private String method;
  36. /** 请求方式 */
  37. private String requestMethod;
  38. /** 操作类别(0其它 1后台用户 2手机端用户) */
  39. private Integer operatorType;
  40. /** 操作人员 */
  41. private String operName;
  42. /** 部门名称 */
  43. private String deptName;
  44. /** 请求url */
  45. private String operUrl;
  46. /** 操作地址 */
  47. private String operIp;
  48. /** 操作地点 */
  49. private String operLocation;
  50. /** 请求参数 */
  51. private String operParam;
  52. /** 返回参数 */
  53. // private String jsonResult;
  54. /** 操作状态(0正常 1异常) */
  55. private Integer status;
  56. /** 错误消息 */
  57. private String errorMsg;
  58. /** 操作时间 */
  59. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  60. private Date operTime;
  61. /** 消耗时间 毫秒*/
  62. private Long costTime;
  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 String getJsonResult()
  168. // {
  169. // return jsonResult;
  170. // }
  171. //
  172. // public void setJsonResult(String jsonResult)
  173. // {
  174. // this.jsonResult = jsonResult;
  175. // }
  176. public Integer getStatus()
  177. {
  178. return status;
  179. }
  180. public void setStatus(Integer status)
  181. {
  182. this.status = status;
  183. }
  184. public String getErrorMsg()
  185. {
  186. return errorMsg;
  187. }
  188. public void setErrorMsg(String errorMsg)
  189. {
  190. this.errorMsg = errorMsg;
  191. }
  192. public Date getOperTime()
  193. {
  194. return operTime;
  195. }
  196. public void setOperTime(Date operTime)
  197. {
  198. this.operTime = operTime;
  199. }
  200. public Long getCostTime()
  201. {
  202. return costTime;
  203. }
  204. public void setCostTime(Long costTime)
  205. {
  206. this.costTime = costTime;
  207. }
  208. public Integer getAuditType() {
  209. return auditType;
  210. }
  211. public void setAuditType(Integer auditType) {
  212. this.auditType = auditType;
  213. }
  214. }