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;
|
}
|
}
|
|
}
|