SysOperLog.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. package com.ozs.system.domain;
  2. import java.util.Date;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import com.ozs.common.annotation.Excel;
  5. import com.ozs.common.annotation.Excel.ColumnType;
  6. import com.ozs.common.core.domain.BaseEntity;
  7. import lombok.AllArgsConstructor;
  8. import lombok.Builder;
  9. import lombok.Data;
  10. import lombok.NoArgsConstructor;
  11. /**
  12. * 操作日志记录表 oper_log
  13. *
  14. * @author hx
  15. */
  16. @Data
  17. @AllArgsConstructor
  18. @NoArgsConstructor
  19. @Builder
  20. public class SysOperLog extends BaseEntity {
  21. /**
  22. * 日志主键
  23. */
  24. @Excel(name = "操作序号", cellType = ColumnType.NUMERIC)
  25. private Long operId;
  26. /**
  27. * 操作模块
  28. */
  29. @Excel(name = "操作模块")
  30. private String title;
  31. /**
  32. * 业务类型(0其它 1新增 2修改 3删除)
  33. */
  34. @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")
  35. private Integer businessType;
  36. /**
  37. * 业务类型数组
  38. */
  39. private Integer[] businessTypes;
  40. /**
  41. * 请求方法
  42. */
  43. @Excel(name = "请求方法")
  44. private String method;
  45. /**
  46. * 请求方式
  47. */
  48. @Excel(name = "请求方式")
  49. private String requestMethod;
  50. /**
  51. * 操作类别(0其它 1后台用户 2手机端用户)
  52. */
  53. @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
  54. private Integer operatorType;
  55. /**
  56. * 操作人员
  57. */
  58. @Excel(name = "操作人员")
  59. private String userId;
  60. /**
  61. * 部门名称
  62. */
  63. @Excel(name = "部门名称")
  64. private String deptName;
  65. /**
  66. * 请求url
  67. */
  68. @Excel(name = "请求地址")
  69. private String operUrl;
  70. /**
  71. * 操作地址
  72. */
  73. @Excel(name = "操作地址")
  74. private String operIp;
  75. /**
  76. * 操作地点
  77. */
  78. @Excel(name = "操作地点")
  79. private String operLocation;
  80. /**
  81. * 请求参数
  82. */
  83. @Excel(name = "请求参数")
  84. private String operParam;
  85. /**
  86. * 返回参数
  87. */
  88. @Excel(name = "返回参数")
  89. private String jsonResult;
  90. /**
  91. * 操作状态(0正常 1异常)
  92. */
  93. @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
  94. private Integer status;
  95. /**
  96. * 错误消息
  97. */
  98. @Excel(name = "错误消息")
  99. private String errorMsg;
  100. /**
  101. * 操作时间
  102. */
  103. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  104. @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  105. private Date operTime;
  106. }