自动化立体仓库 - WMS系统
#
Junjie
16 小时以前 24c06be049d4c474912e141b1c8ca646eaf39d6a
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
122
123
124
125
126
127
128
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("man_Inventory_check_order_detl")
public class InventoryCheckOrderDetl implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    @ApiModelProperty(value = "")
    @TableField("order_no")
    private String orderNo;
 
    @ApiModelProperty(value = "")
    private String matnr;
 
    @ApiModelProperty(value = "")
    private String maktx;
 
    @ApiModelProperty(value = "")
    private String batch;
 
    @ApiModelProperty(value = "")
    private Double anfme;
 
    @ApiModelProperty(value = "")
    private String area;
 
    @ApiModelProperty(value = "")
    private String status;
 
    @ApiModelProperty(value = "")
    @TableField("loc_no")
    private String locNo;
 
    @ApiModelProperty(value = "")
    @TableField("check_anfme")
    private Double checkAnfme;
 
    @ApiModelProperty(value = "")
    @TableField("io_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ioTime;
 
    @ApiModelProperty(value = "")
    @TableField("cwarehouseid")
    private String cwarehouseid;
 
    public InventoryCheckOrderDetl() {
    }
 
    public InventoryCheckOrderDetl(String orderNo, String matnr, String maktx, String batch, Double anfme, String area, String locNo, Date ioTime) {
        this.orderNo = orderNo;
        this.matnr = matnr;
        this.maktx = maktx;
        this.batch = batch;
        this.anfme = anfme;
        this.area = area;
        this.locNo = locNo;
        this.ioTime = ioTime;
    }
 
//    InventoryCheckOrderDetl inventoryCheckOrderDetl = new InventoryCheckOrderDetl(
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null,    // 
//            null    // 
//    );
 
    public String getIoTime$() {
        if (Cools.isEmpty(this.ioTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
    }
 
    public String getStatus$() {
        if (Cools.isEmpty(this.status)) {
            return "待盘";
        }
        switch (this.status) {
            case "1":
                return "待盘";
            case "2":
                return "已盘";
            default:
                return "";
        }
    }
 
    public String getProfit$() {
        if (Cools.isEmpty(this.status) || !this.status.equals("1")) {
            return "未盘点";
        }
        if (Cools.isEmpty(this.anfme) || Cools.isEmpty(this.checkAnfme)) {
            return "";
        }
        if (this.anfme > this.checkAnfme) {
            return "盘亏";
        } else if (this.anfme < this.checkAnfme) {
            return "盘盈";
        } else {
            return "平";
        }
    }
 
 
}