wang..123
2022-03-10 dcd7fcf596005d0c7cf66558bee97edf6c3b03a0
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
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 com.core.common.SpringUtils;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
 
/**
 * Created by vincent on 2021/6/21
 */
@Data
@TableName("asr_loc_normal_log")
public class LocNormalLog {
    @ApiModelProperty(value= "物料")
    private String matnr;
 
    @ApiModelProperty(value= "物料描述")
    private String maktx;
 
    @ApiModelProperty(value= "规格")
    private String lgnum;
 
    @ApiModelProperty(value= "物料类别")
    private String type;
 
    @ApiModelProperty(value= "生产单号")
    private String mnemonic;
 
    @ApiModelProperty(value= "通知单号")
    private String supplier;
 
    @ApiModelProperty(value= "仓库")
    private String warehouse;
 
    @TableField(exist = false)
    private String warehouseName;
 
    @ApiModelProperty(value= "数量")
    private Double anfme;
 
    @ApiModelProperty(value= "备注")
    private String memo;
 
    @ApiModelProperty(value= "创建时间")
    @TableField("create_time")
    private Date createTime;
 
    @ApiModelProperty(value= "修改时间")
    @TableField("update_time")
    private Date updateTime;
 
    @ApiModelProperty(value= "创建者")
    @TableField("create_user")
    private Long createUser;
 
    @ApiModelProperty(value= "修改者")
    @TableField("update_user")
    private Long updateUser;
 
    @ApiModelProperty(value= "出入库类型(1入库,2出库, 3删除, 4更新)")
    @TableField("io_type")
    private Integer ioType;
 
    @ApiModelProperty(value= "物料状态")
    @TableField("mat_status")
    private String matStatus;
 
    public String getCreateUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.createUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
 
    public String getUpdateUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.updateUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
 
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
 
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
}