自动化立体仓库 - WMS系统
#
zjj
2024-09-23 539d9ffc477d28a23a923b41fdeabc8c37c99ce6
src/main/java/com/zy/asrs/entity/ManLocDetl.java
@@ -9,6 +9,7 @@
import com.core.common.SpringUtils;
import com.zy.asrs.service.LocOwnerService;
import com.zy.asrs.service.NodeService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.Host;
import com.zy.system.entity.User;
import com.zy.system.service.HostService;
@@ -30,6 +31,7 @@
     * 所属项目
     */
    @ApiModelProperty(value= "所属项目")
    @TableId(value = "host_id", type = IdType.AUTO)
    @TableField("host_id")
    private Long hostId;
@@ -37,7 +39,6 @@
     * 货位编号
     */
    @ApiModelProperty(value= "货位编号")
    @TableId(value = "loc_no", type = IdType.INPUT)
    @TableField("loc_no")
    private String locNo;
@@ -198,6 +199,13 @@
    private Date modiTime;
    /**
     * 添加时间
     */
    @ApiModelProperty(value= "生产日期")
    @TableField("produce_time")
    private Date produceTime;
    /**
     * 备注
     */
    @ApiModelProperty(value= "备注")
@@ -210,47 +218,25 @@
    private Integer owner;
    /**
     * 是否付款
     * 货物形态:0:代采、1:仓储
     */
    @ApiModelProperty(value= "是否付款0:未付款、1:已付款   ")
    @ApiModelProperty(value= "货物形态:0:代采、1:仓储")
    private Integer payment;
    /**
     * uuid时间戳
     */
    @ApiModelProperty(value= "uuid")
    @TableId(value = "uuid", type = IdType.ID_WORKER_STR)
    @TableField("uuid")
    private String uuid;
    @ApiModelProperty(value= "添加时间")
    @TableField("real_anfme")
    private Double realAnfme;
    public ManLocDetl() {}
    @ApiModelProperty(value= "订单号")
    @TableField("order_no")
    private String orderNo;
    public ManLocDetl(Long hostId, String locNo,Long nodeId,String zpallet,Double anfme,String matnr,String maktx,String name,String specs,String model,String batch,String unit,String barcode,Long docId,String docNum,String custName,Integer itemNum,Integer count,Double weight,Integer status,Long createBy,Date createTime,Long updateBy,Date modiTime,String memo,String uuid) {
        this.hostId = hostId;
        this.nodeId = nodeId;
        this.zpallet = zpallet;
        this.anfme = anfme;
        this.maktx = maktx;
        this.name = name;
        this.specs = specs;
        this.model = model;
        this.batch = batch;
        this.unit = unit;
        this.barcode = barcode;
        this.docId = docId;
        this.docNum = docNum;
        this.custName = custName;
        this.itemNum = itemNum;
        this.count = count;
        this.weight = weight;
        this.status = status;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.modiTime = modiTime;
        this.memo = memo;
        this.uuid = uuid;
    }
    @TableField("stock_freeze")
    @ApiModelProperty(value= "库存冻结{1:正常,0:冻结}")
    private Integer stockFreeze;
//    LocDetl locDetl = new LocDetl(
//            null,    // 货位编号[非空]
@@ -292,9 +278,9 @@
        if (null == this.payment){ return null; }
        switch (this.payment){
            case 1:
                return "已付款";
                return "仓储";
            case 0:
                return "未付款";
                return "代采";
            default:
                return String.valueOf(this.payment);
        }
@@ -350,6 +336,13 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
    public String getProduceTimeTime$(){
        if (Cools.isEmpty(this.produceTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.produceTime);
    }
    public String getUpdateBy$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.updateBy);
@@ -365,6 +358,15 @@
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
    public String getStockFreeze$() {
        if (Cools.isEmpty(this.stockFreeze)){
            return "";
        }
        return this.stockFreeze == 1 ? "正常" : "冻结";
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }