skyouc
昨天 d51f64c1f0105d4b18aa8344c11e47827730a40c
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
package com.vincent.rsf.server.manager.entity;
 
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.vincent.rsf.framework.common.Cools;
import com.vincent.rsf.framework.common.SpringUtils;
import com.vincent.rsf.server.system.service.UserService;
import com.vincent.rsf.server.system.entity.User;
import java.io.Serializable;
import java.util.Date;
 
@Data
@TableName("view_stock_statistic")
public class StockStatistic implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * ID
     */
    @ApiModelProperty(value= "ID")
    private Long id;
 
    @ApiModelProperty(value= "")
    private String dayTime;
 
    /**
     * 任务类型
     */
    @ApiModelProperty(value= "任务类型")
    private Integer taskType;
 
    /**
     * 任务状态
     */
    @ApiModelProperty(value= "任务状态")
    private Integer taskStatus;
 
    /**
     * 物料名称
     */
    @ApiModelProperty(value= "物料名称")
    private String maktx;
 
    /**
     * 物料编码
     */
    @ApiModelProperty(value= "物料编码")
    private String matnrCode;
 
    @ApiModelProperty(value= "")
    private Long count;
 
    /**
     * 库存批次
     */
    @ApiModelProperty(value= "库存批次")
    private String batch;
 
    @ApiModelProperty(value= "")
    private Double anfme;
 
    /**
     * 库存单位
     */
    @ApiModelProperty(value= "库存单位")
    private String unit;
 
    public StockStatistic() {}
 
    public StockStatistic(Long id,String dayTime,Integer taskType,Integer taskStatus,String maktx,String matnrCode,Long count,String batch,Double anfme,String unit) {
        this.id = id;
        this.dayTime = dayTime;
        this.taskType = taskType;
        this.taskStatus = taskStatus;
        this.maktx = maktx;
        this.matnrCode = matnrCode;
        this.count = count;
        this.batch = batch;
        this.anfme = anfme;
        this.unit = unit;
    }
 
//    StockStatistic stockStatistic = new StockStatistic(
//            null,    // ID[非空]
//            null,    // 
//            null,    // 任务类型
//            null,    // 任务状态
//            null,    // 物料名称
//            null,    // 物料编码
//            null,    // [非空]
//            null,    // 库存批次
//            null,    // 
//            null    // 库存单位
//    );
 
 
 
    public Boolean getStatusBool(){
        if (null == this.status){ return null; }
        switch (this.status){
            case 1:
                return true;
            case 0:
                return false;
            default:
                return null;
        }
    }
 
}