自动化立体仓库 - WMS系统
#
lty
2 天以前 921d69a620b26ee8616b1564f4fa3b228e09d4d6
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
package com.zy.asrs.entity;
 
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("sys_erp_token")
public class ErpToken implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value= "")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @ApiModelProperty(value= "")
    @TableField("app_id")
    private String appId;
 
    @ApiModelProperty(value= "")
    @TableField("app_secrect")
    private String appSecrect;
 
    @ApiModelProperty(value= "")
    private String token;
 
    @ApiModelProperty(value= "")
    @TableField("modi_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date modiTime;
 
    public ErpToken() {}
 
    public ErpToken(String appId,String appSecrect,String token,Date modiTime) {
        this.appId = appId;
        this.appSecrect = appSecrect;
        this.token = token;
        this.modiTime = modiTime;
    }
 
//    ErpToken erpToken = new ErpToken(
//            null,    // [非空]
//            null,    // [非空]
//            null,    // 
//            null    // 
//    );
 
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
 
 
}