xieb
2024-02-22 dc6f7c67fc410d346e7c67e0620862affa1f9bb3
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package cn.gistack.sm.materials.entity;
 
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * @PROJECT_NAME: skjcmanager
 * @DESCRIPTION: 应急物资管理
 * @USER: aix
 * @DATE: 2023/5/30 14:52
 */
@Data
@TableName(value = "sm_materials_manage",autoResultMap = true)
@ApiModel(value = "应急物资管理对象", description = "应急物资管理对象")
@EqualsAndHashCode(callSuper = true)
public class MaterialsManage extends BaseEntity implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 防汛年度
     */
    private Integer materialsyear;
 
    /**
     * 水库id
     */
    @ApiModelProperty(value = "水库id")
    private String resGuid;
 
    /**
     * 水库名称
     */
    @ApiModelProperty(value = "水库名称")
    private String resName;
 
    /**
     * 城市
     */
    @ApiModelProperty(value = "城市")
    @TableField(value = "city",updateStrategy = FieldStrategy.IGNORED)
    private String city;
 
    /**
     * 乡镇
     */
    @ApiModelProperty(value = "区县")
    @TableField(value = "county",updateStrategy = FieldStrategy.IGNORED)
    private String county;
 
    /**
     * 乡镇
     */
    @ApiModelProperty(value = "乡镇")
    @TableField(value = "town",updateStrategy = FieldStrategy.IGNORED)
    private String town;
 
    /**
     * 物资类型
     */
    @ApiModelProperty(value = "物资类型")
    private String materialsType;
 
    /**
     * 物资名称
     */
    @ApiModelProperty(value = "物资名称")
    private String materialsName;
 
    /**
     * 物资数量
     */
    @ApiModelProperty(value = "物资数量")
    private Integer materialsAmount;
 
    /**
     * 物资单位
     */
    @ApiModelProperty(value = "物资单位")
    private String materialsUnit;
 
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remarks;
 
    /**
     * 合同
     */
    @ApiModelProperty(value = "合同")
    @TableField(value = "contract",typeHandler = FastjsonTypeHandler.class,updateStrategy = FieldStrategy.IGNORED)
    private Object[] contract;
 
    /**
     * 图片
     */
    @ApiModelProperty("图片")
    @TableField(value = "images",typeHandler = FastjsonTypeHandler.class,updateStrategy = FieldStrategy.IGNORED)
    private Object[] images;
 
    /**
     * 入库时间
     */
    @ApiModelProperty(value = "入库时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date importTime;
}