OperationLogDto.java 3.51 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6
package pwc.taxtech.atms.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
import com.fasterxml.jackson.annotation.JsonProperty;

7 8 9 10
import java.util.Date;

@JSONType(orders = {"id", "operationContent", "action", "operationObject", "originalState", "updateState",
        "operationUser", "ip", "module", "comment", "createTime", "logType"})
eddie.woo's avatar
eddie.woo committed
11 12 13 14
public class OperationLogDto {

    @JSONField(name = "id")
    @JsonProperty("id")
15
    private String id;
eddie.woo's avatar
eddie.woo committed
16

17 18 19
    /**
     * 操作内容
     */
eddie.woo's avatar
eddie.woo committed
20 21
    private String operationContent;

22 23 24
    /**
     * 操作行为,如添加,修改,删除
     */
eddie.woo's avatar
eddie.woo committed
25 26
    private Integer action;

27 28 29
    /**
     * 操作对象,新增和删除时存放新增数据名称,修改时存放被修改的字段名
     */
eddie.woo's avatar
eddie.woo committed
30 31
    private String operationObject;

32 33 34
    /**
     * 用于修改数据时存放字段的原始状态,新增和删除时为空
     */
eddie.woo's avatar
eddie.woo committed
35 36
    private String originalState;

37 38 39
    /**
     * 用于修改数据时存放字段的更新后的状态,新增和删除时为空
     */
eddie.woo's avatar
eddie.woo committed
40 41
    private String updateState;

42 43 44
    /**
     * 操作用户:当前数据的操作人员
     */
eddie.woo's avatar
eddie.woo committed
45 46
    private String operationUser;

47 48 49
    /**
     * 操作人IP
     */
eddie.woo's avatar
eddie.woo committed
50 51
    private String ip;

52 53 54
    /**
     * 操作模块
     */
eddie.woo's avatar
eddie.woo committed
55 56
    private Integer module;

57 58 59
    /**
     * 备注信息(新增和删除时存放整个json数据,修改时为空;另也可存放级联禁用启用等特殊情况下的说明)
     */
eddie.woo's avatar
eddie.woo committed
60 61
    private String comment;

62 63 64
    /**
     * 创建时间
     */
eddie.woo's avatar
eddie.woo committed
65 66
    private Date createTime;

67 68 69
    /**
     * 定义日志存那个日志表
     */
eddie.woo's avatar
eddie.woo committed
70 71
    private Integer logType;

72 73
    public String getId() {
        return id;
eddie.woo's avatar
eddie.woo committed
74 75
    }

76
    public void setId(String id) {
frank.xa.zhang's avatar
frank.xa.zhang committed
77
        this.id = id;
eddie.woo's avatar
eddie.woo committed
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
    }

    public String getOperationContent() {
        return operationContent;
    }

    public void setOperationContent(String operationContent) {
        this.operationContent = operationContent;
    }

    public String getOperationObject() {
        return operationObject;
    }

    public void setOperationObject(String operationObject) {
        this.operationObject = operationObject;
    }

    public String getUpdateState() {
        return updateState;
    }

    public void setUpdateState(String updateState) {
        this.updateState = updateState;
    }

    public String getOperationUser() {
        return operationUser;
    }

    public void setOperationUser(String operationUser) {
        this.operationUser = operationUser;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getOriginalState() {
        return originalState;
    }

    public void setOriginalState(String originalState) {
        this.originalState = originalState;
    }

    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    public Integer getModule() {
        return module;
    }

    public void setModule(Integer module) {
        this.module = module;
    }

    public Integer getLogType() {
        return logType;
    }

    public void setLogType(Integer logType) {
        this.logType = logType;
    }

}