田源
2023-03-21 fbe37e2e00bddec409b595a4a6e50c4bb32a008a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
package org.springblade.system.entity;
 
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
 
/**
 * (PlSysValueRange)实体类
 *
 * @author makejava
 * @since 2023-03-20 14:59:29
 */
@Data
@TableName("pl_sys_value_range")
@ApiModel(value = "ValueRange", description = "ValueRange")
public class ValueRange implements Serializable {
    private static final long serialVersionUID = -62275902377620042L;
 
    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
 
    /**
     * 值
     */
    @ApiModelProperty(value = "值")
    private String value;
 
    /**
     * 组合方式ID
     */
    @ApiModelProperty(value = "组合方式ID")
    private Long combinationId;
 
    /**
     * 创建时间
     */
    @DateTimeFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
 
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createUser;
 
    /**
     * 修改时间
     */
    @DateTimeFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
 
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateUser;
 
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        ValueRange that = (ValueRange) o;
        return Objects.equals(id, that.id) && Objects.equals(value, that.value) && Objects.equals(combinationId, that.combinationId);
    }
 
    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), id, value, combinationId);
    }
}