package com.zy.asrs.common.wms.entity;
|
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
import com.zy.asrs.common.utils.Synchro;
|
import com.zy.asrs.common.wms.service.LocMastService;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
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.zy.asrs.framework.common.Cools;
|
import com.zy.asrs.framework.common.SpringUtils;
|
import com.zy.asrs.common.sys.entity.User;
|
import com.zy.asrs.common.sys.entity.Host;
|
import com.zy.asrs.common.sys.service.UserService;
|
import com.zy.asrs.common.sys.service.HostService;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
@Data
|
@TableName("wms_loc_detl")
|
public class LocDetl implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@ApiModelProperty(value= "")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 库位号
|
*/
|
@ApiModelProperty(value= "库位号")
|
private String locNo;
|
|
/**
|
* 托盘条码
|
*/
|
@ApiModelProperty(value= "托盘条码")
|
private String zpallet;
|
|
/**
|
* 数量
|
*/
|
@ApiModelProperty(value= "数量")
|
private Double anfme;
|
|
/**
|
* 物料
|
*/
|
@ApiModelProperty(value= "物料")
|
private String matnr;
|
|
/**
|
* 物料描述
|
*/
|
@ApiModelProperty(value= "物料描述")
|
private String maktx;
|
|
@ApiModelProperty(value= "")
|
private String batch;
|
|
@ApiModelProperty(value= "")
|
private String orderNo;
|
|
/**
|
* 仓库号
|
*/
|
@ApiModelProperty(value= "仓库号")
|
private String specs;
|
|
/**
|
* 转储请求编号
|
*/
|
@ApiModelProperty(value= "转储请求编号")
|
private String model;
|
|
/**
|
* 颜色
|
*/
|
@ApiModelProperty(value= "颜色")
|
private String color;
|
|
@ApiModelProperty(value= "")
|
private String brand;
|
|
@ApiModelProperty(value= "")
|
private String unit;
|
|
@ApiModelProperty(value= "")
|
private Double price;
|
|
@ApiModelProperty(value= "")
|
private String sku;
|
|
@ApiModelProperty(value= "")
|
private Double units;
|
|
@ApiModelProperty(value= "")
|
private String barcode;
|
|
@ApiModelProperty(value= "")
|
private String origin;
|
|
@ApiModelProperty(value= "")
|
private String manu;
|
|
@ApiModelProperty(value= "")
|
private String manuDate;
|
|
@ApiModelProperty(value= "")
|
private String itemNum;
|
|
@ApiModelProperty(value= "")
|
private Double safeQty;
|
|
@ApiModelProperty(value= "")
|
private Double weight;
|
|
@ApiModelProperty(value= "")
|
private Double length;
|
|
@ApiModelProperty(value= "")
|
private Double volume;
|
|
@ApiModelProperty(value= "")
|
private String threeCode;
|
|
@ApiModelProperty(value= "")
|
private String supp;
|
|
@ApiModelProperty(value= "")
|
private String suppCode;
|
|
@ApiModelProperty(value= "")
|
private Integer beBatch;
|
|
@ApiModelProperty(value= "")
|
private String deadTime;
|
|
@ApiModelProperty(value= "")
|
private Integer deadWarn;
|
|
@ApiModelProperty(value= "")
|
private Integer source;
|
|
@ApiModelProperty(value= "")
|
private Integer inspect;
|
|
@ApiModelProperty(value= "")
|
private Integer danger;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
private Long modiUser;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date modiTime;
|
|
/**
|
* 创建者
|
*/
|
@ApiModelProperty(value= "创建者")
|
private Long appeUser;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date appeTime;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
/**
|
* 授权商户
|
*/
|
@ApiModelProperty(value= "授权商户")
|
private Long hostId;
|
|
public LocDetl() {}
|
|
public LocDetl(String locNo,String zpallet,Double anfme,String matnr,String maktx,String batch,String orderNo,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String memo,Long hostId) {
|
this.locNo = locNo;
|
this.zpallet = zpallet;
|
this.anfme = anfme;
|
this.matnr = matnr;
|
this.maktx = maktx;
|
this.batch = batch;
|
this.orderNo = orderNo;
|
this.specs = specs;
|
this.model = model;
|
this.color = color;
|
this.brand = brand;
|
this.unit = unit;
|
this.price = price;
|
this.sku = sku;
|
this.units = units;
|
this.barcode = barcode;
|
this.origin = origin;
|
this.manu = manu;
|
this.manuDate = manuDate;
|
this.itemNum = itemNum;
|
this.safeQty = safeQty;
|
this.weight = weight;
|
this.length = length;
|
this.volume = volume;
|
this.threeCode = threeCode;
|
this.supp = supp;
|
this.suppCode = suppCode;
|
this.beBatch = beBatch;
|
this.deadTime = deadTime;
|
this.deadWarn = deadWarn;
|
this.source = source;
|
this.inspect = inspect;
|
this.danger = danger;
|
this.modiUser = modiUser;
|
this.modiTime = modiTime;
|
this.appeUser = appeUser;
|
this.appeTime = appeTime;
|
this.memo = memo;
|
this.hostId = hostId;
|
}
|
|
// LocDetl locDetl = new LocDetl(
|
// null, // 库位号[非空]
|
// null, // 托盘条码
|
// null, // 数量
|
// null, // 物料[非空]
|
// null, // 物料描述
|
// null, //
|
// null, //
|
// null, // 仓库号
|
// null, // 转储请求编号
|
// null, // 颜色
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, // 修改人员
|
// null, // 修改时间
|
// null, // 创建者
|
// null, // 添加时间
|
// null, // 备注
|
// null // 授权商户
|
// );
|
|
public String getLocNo$(){
|
LocMastService service = SpringUtils.getBean(LocMastService.class);
|
LocMast locMast = service.getById(this.locNo);
|
if (!Cools.isEmpty(locMast)){
|
return String.valueOf(locMast.getLocNo());
|
}
|
return null;
|
}
|
|
public String getModiUser$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.getById(this.modiUser);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public String getModiTime$(){
|
if (Cools.isEmpty(this.modiTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
|
}
|
|
public String getAppeUser$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.getById(this.appeUser);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public String getAppeTime$(){
|
if (Cools.isEmpty(this.appeTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
|
}
|
|
public String getHostId$(){
|
HostService service = SpringUtils.getBean(HostService.class);
|
Host host = service.getById(this.hostId);
|
if (!Cools.isEmpty(host)){
|
return String.valueOf(host.getName());
|
}
|
return null;
|
}
|
|
public void sync(Object source) {
|
Synchro.Copy(source, this);
|
}
|
|
}
|