自动化立体仓库 - WCS系统
123
ZY
4 天以前 1a1e3398d15027a65e56e0ed82e54f3a4feea0b6
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
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
 
@Data
@TableName("wcs_data_resource")
public class DataResource implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    @ApiModelProperty(value = "")
    private String data;
 
    @ApiModelProperty(value = "")
    private String name;
 
    @ApiModelProperty(value = "")
    @TableField("resource_id")
    private Integer resourceId;
 
    @ApiModelProperty(value = "")
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
 
    @ApiModelProperty(value = "备注")
    private String memo;
 
    public DataResource() {
    }
 
    public DataResource(String data, String name, Integer resourceId, Date createTime, String memo) {
        this.data = data;
        this.name = name;
        this.resourceId = resourceId;
        this.createTime = createTime;
        this.memo = memo;
    }
 
//    DataResource dataResource = new DataResource(
//            null,    // 
//            null,    // 
//            null,    // 
//            null    // 
//    );
 
    public String getCreateTime$() {
        if (Cools.isEmpty(this.createTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
 
    public String getMemo() {
        if (Cools.isEmpty(this.memo)) {
            return "";
        }
        return this.memo;
    }
 
 
}