自动化立体仓库 - WMS系统
zjj
2025-01-08 ac0f708807b8876b23b59dfce0d41a146323428a
src/main/java/com/zy/asrs/entity/WrkMast.java
@@ -5,16 +5,19 @@
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.zy.asrs.service.*;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
@Data
@TableName("asr_wrk_mast")
public class WrkMast implements Serializable {
@@ -289,6 +292,7 @@
    @ApiModelProperty(value= "条码")
    private String barcode;
    // Y:销售订单出库任务
    @ApiModelProperty(value= "")
    @TableField("Pdc_type")
    private String PdcType;
@@ -304,171 +308,27 @@
    @TableField("full_plt")
    private String fullPlt;
    /**
     * 先入品 / 双重入库
     */
    @ApiModelProperty(value= "先入品")
    @TableField("pre_have")
    private String preHave;
    /**
     * 空操作 / 取货无箱
     */
    @ApiModelProperty(value= "空操作")
    @TableField("take_none")
    private String takeNone;
    public WrkMast() {}
    public WrkMast(String invWh,Date ymd,String mk,Integer whsType,Long wrkSts,Integer ioType,Integer crnNo,String sheetNo,Double ioPri,Date wrkDate,String locNo,Integer staNo,Integer sourceStaNo,String sourceLocNo,String locSts,String picking,String linkMis,String onlineYn,String updMk,String exitMk,Integer pltType,String emptyMk,Date ioTime,Integer ctnType,String packed,String oveMk,Double mtnType,String userNo,Date crnStrTime,Date crnEndTime,Date plcStrTime,Date crnPosTime,Double loadTime,Double expTime,Double refWrkno,Date refIotime,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String pauseMk,Date errorTime,String errorMemo,Integer ctnKind,String manuType,String memo,Double scWeight,String logMk,Date logErrTime,String logErrMemo,String barcode,String PdcType,String ctnNo,String fullPlt) {
        this.invWh = invWh;
        this.ymd = ymd;
        this.mk = mk;
        this.whsType = whsType;
        this.wrkSts = wrkSts;
        this.ioType = ioType;
        this.crnNo = crnNo;
        this.sheetNo = sheetNo;
        this.ioPri = ioPri;
        this.wrkDate = wrkDate;
        this.locNo = locNo;
        this.staNo = staNo;
        this.sourceStaNo = sourceStaNo;
        this.sourceLocNo = sourceLocNo;
        this.locSts = locSts;
        this.picking = picking;
        this.linkMis = linkMis;
        this.onlineYn = onlineYn;
        this.updMk = updMk;
        this.exitMk = exitMk;
        this.pltType = pltType;
        this.emptyMk = emptyMk;
        this.ioTime = ioTime;
        this.ctnType = ctnType;
        this.packed = packed;
        this.oveMk = oveMk;
        this.mtnType = mtnType;
        this.userNo = userNo;
        this.crnStrTime = crnStrTime;
        this.crnEndTime = crnEndTime;
        this.plcStrTime = plcStrTime;
        this.crnPosTime = crnPosTime;
        this.loadTime = loadTime;
        this.expTime = expTime;
        this.refWrkno = refWrkno;
        this.refIotime = refIotime;
        this.modiUser = modiUser;
        this.modiTime = modiTime;
        this.appeUser = appeUser;
        this.appeTime = appeTime;
        this.pauseMk = pauseMk;
        this.errorTime = errorTime;
        this.errorMemo = errorMemo;
        this.ctnKind = ctnKind;
        this.manuType = manuType;
        this.memo = memo;
        this.scWeight = scWeight;
        this.logMk = logMk;
        this.logErrTime = logErrTime;
        this.logErrMemo = logErrMemo;
        this.barcode = barcode;
        this.PdcType = PdcType;
        this.ctnNo = ctnNo;
        this.fullPlt = fullPlt;
    }
//    WrkMast wrkMast = new WrkMast(
//            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,    // 创建者
//            null,    // 添加时间
//            null,    //
//            null,    //
//            null,    //
//            null,    //
//            null,    //
//            null,    // 备注
//            null,    //
//            null,    //
//            null,    //
//            null,    //
//            null,    // 条码
//            null,    //
//            null,    //
//            null    // 满板
//    );
    public Integer getWrkNo() {
        return wrkNo;
    }
    public void setWrkNo(Integer wrkNo) {
        this.wrkNo = wrkNo;
    }
    public String getInvWh() {
        return invWh;
    }
    public void setInvWh(String invWh) {
        this.invWh = invWh;
    }
    public Date getYmd() {
        return ymd;
    }
    public String getYmd$(){
        if (Cools.isEmpty(this.ymd)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ymd);
    }
    public void setYmd(Date ymd) {
        this.ymd = ymd;
    }
    public String getMk() {
        return mk;
    }
    public void setMk(String mk) {
        this.mk = mk;
    }
    public Integer getWhsType() {
        return whsType;
    }
    public void setWhsType(Integer whsType) {
        this.whsType = whsType;
    }
    public Long getWrkSts() {
        return wrkSts;
    }
    public String getWrkSts$(){
@@ -480,14 +340,6 @@
        return null;
    }
    public void setWrkSts(Long wrkSts) {
        this.wrkSts = wrkSts;
    }
    public Integer getIoType() {
        return ioType;
    }
    public String getIoType$(){
        BasWrkIotypeService service = SpringUtils.getBean(BasWrkIotypeService.class);
        BasWrkIotype basWrkIotype = service.selectById(this.ioType);
@@ -495,14 +347,6 @@
            return String.valueOf(basWrkIotype.getIoDesc());
        }
        return null;
    }
    public void setIoType(Integer ioType) {
        this.ioType = ioType;
    }
    public Integer getCrnNo() {
        return crnNo;
    }
    public String getCrnNo$(){
@@ -514,43 +358,11 @@
        return null;
    }
    public void setCrnNo(Integer crnNo) {
        this.crnNo = crnNo;
    }
    public String getSheetNo() {
        return sheetNo;
    }
    public void setSheetNo(String sheetNo) {
        this.sheetNo = sheetNo;
    }
    public Double getIoPri() {
        return ioPri;
    }
    public void setIoPri(Double ioPri) {
        this.ioPri = ioPri;
    }
    public Date getWrkDate() {
        return wrkDate;
    }
    public String getWrkDate$(){
        if (Cools.isEmpty(this.wrkDate)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.wrkDate);
    }
    public void setWrkDate(Date wrkDate) {
        this.wrkDate = wrkDate;
    }
    public String getLocNo() {
        return locNo;
    }
    public String getLocNo$(){
@@ -559,15 +371,7 @@
        if (!Cools.isEmpty(locMast)){
            return String.valueOf(locMast.getLocNo());
        }
        return null;
    }
    public void setLocNo(String locNo) {
        this.locNo = locNo;
    }
    public Integer getStaNo() {
        return staNo;
        return this.locNo;
    }
    public String getStaNo$(){
@@ -579,14 +383,6 @@
        return null;
    }
    public void setStaNo(Integer staNo) {
        this.staNo = staNo;
    }
    public Integer getSourceStaNo() {
        return sourceStaNo;
    }
    public String getSourceStaNo$(){
        BasDevpService service = SpringUtils.getBean(BasDevpService.class);
        BasDevp basDevp = service.selectById(this.sourceStaNo);
@@ -596,93 +392,13 @@
        return null;
    }
    public void setSourceStaNo(Integer sourceStaNo) {
        this.sourceStaNo = sourceStaNo;
    }
    public String getSourceLocNo() {
        return sourceLocNo;
    }
    public String getSourceLocNo$(){
        LocMastService service = SpringUtils.getBean(LocMastService.class);
        LocMast locMast = service.selectById(this.sourceLocNo);
        if (!Cools.isEmpty(locMast)){
            return String.valueOf(locMast.getLocNo());
        }
        return null;
    }
    public void setSourceLocNo(String sourceLocNo) {
        this.sourceLocNo = sourceLocNo;
    }
    public String getLocSts() {
        return locSts;
    }
    public void setLocSts(String locSts) {
        this.locSts = locSts;
    }
    public String getPicking() {
        return picking;
    }
    public void setPicking(String picking) {
        this.picking = picking;
    }
    public String getLinkMis() {
        return linkMis;
    }
    public void setLinkMis(String linkMis) {
        this.linkMis = linkMis;
    }
    public String getOnlineYn() {
        return onlineYn;
    }
    public void setOnlineYn(String onlineYn) {
        this.onlineYn = onlineYn;
    }
    public String getUpdMk() {
        return updMk;
    }
    public void setUpdMk(String updMk) {
        this.updMk = updMk;
    }
    public String getExitMk() {
        return exitMk;
    }
    public void setExitMk(String exitMk) {
        this.exitMk = exitMk;
    }
    public Integer getPltType() {
        return pltType;
    }
    public void setPltType(Integer pltType) {
        this.pltType = pltType;
    }
    public String getEmptyMk() {
        return emptyMk;
    }
    public void setEmptyMk(String emptyMk) {
        this.emptyMk = emptyMk;
    }
    public Date getIoTime() {
        return ioTime;
        return this.sourceLocNo;
    }
    public String getIoTime$(){
@@ -692,67 +408,11 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
    }
    public void setIoTime(Date ioTime) {
        this.ioTime = ioTime;
    }
    public Integer getCtnType() {
        return ctnType;
    }
    public void setCtnType(Integer ctnType) {
        this.ctnType = ctnType;
    }
    public String getPacked() {
        return packed;
    }
    public void setPacked(String packed) {
        this.packed = packed;
    }
    public String getOveMk() {
        return oveMk;
    }
    public void setOveMk(String oveMk) {
        this.oveMk = oveMk;
    }
    public Double getMtnType() {
        return mtnType;
    }
    public void setMtnType(Double mtnType) {
        this.mtnType = mtnType;
    }
    public String getUserNo() {
        return userNo;
    }
    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }
    public Date getCrnStrTime() {
        return crnStrTime;
    }
    public String getCrnStrTime$(){
        if (Cools.isEmpty(this.crnStrTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnStrTime);
    }
    public void setCrnStrTime(Date crnStrTime) {
        this.crnStrTime = crnStrTime;
    }
    public Date getCrnEndTime() {
        return crnEndTime;
    }
    public String getCrnEndTime$(){
@@ -762,27 +422,11 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnEndTime);
    }
    public void setCrnEndTime(Date crnEndTime) {
        this.crnEndTime = crnEndTime;
    }
    public Date getPlcStrTime() {
        return plcStrTime;
    }
    public String getPlcStrTime$(){
        if (Cools.isEmpty(this.plcStrTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.plcStrTime);
    }
    public void setPlcStrTime(Date plcStrTime) {
        this.plcStrTime = plcStrTime;
    }
    public Date getCrnPosTime() {
        return crnPosTime;
    }
    public String getCrnPosTime$(){
@@ -792,51 +436,11 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.crnPosTime);
    }
    public void setCrnPosTime(Date crnPosTime) {
        this.crnPosTime = crnPosTime;
    }
    public Double getLoadTime() {
        return loadTime;
    }
    public void setLoadTime(Double loadTime) {
        this.loadTime = loadTime;
    }
    public Double getExpTime() {
        return expTime;
    }
    public void setExpTime(Double expTime) {
        this.expTime = expTime;
    }
    public Double getRefWrkno() {
        return refWrkno;
    }
    public void setRefWrkno(Double refWrkno) {
        this.refWrkno = refWrkno;
    }
    public Date getRefIotime() {
        return refIotime;
    }
    public String getRefIotime$(){
        if (Cools.isEmpty(this.refIotime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.refIotime);
    }
    public void setRefIotime(Date refIotime) {
        this.refIotime = refIotime;
    }
    public Long getModiUser() {
        return modiUser;
    }
    public String getModiUser$(){
@@ -848,27 +452,11 @@
        return null;
    }
    public void setModiUser(Long modiUser) {
        this.modiUser = modiUser;
    }
    public Date getModiTime() {
        return modiTime;
    }
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
    }
    public void setModiTime(Date modiTime) {
        this.modiTime = modiTime;
    }
    public Long getAppeUser() {
        return appeUser;
    }
    public String getAppeUser$(){
@@ -880,35 +468,11 @@
        return null;
    }
    public void setAppeUser(Long appeUser) {
        this.appeUser = appeUser;
    }
    public Date getAppeTime() {
        return appeTime;
    }
    public String getAppeTime$(){
        if (Cools.isEmpty(this.appeTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
    public void setAppeTime(Date appeTime) {
        this.appeTime = appeTime;
    }
    public String getPauseMk() {
        return pauseMk;
    }
    public void setPauseMk(String pauseMk) {
        this.pauseMk = pauseMk;
    }
    public Date getErrorTime() {
        return errorTime;
    }
    public String getErrorTime$(){
@@ -918,61 +482,12 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime);
    }
    public void setErrorTime(Date errorTime) {
        this.errorTime = errorTime;
    }
    public String getErrorMemo() {
        return errorMemo;
    }
    public void setErrorMemo(String errorMemo) {
        this.errorMemo = errorMemo;
    }
    public Integer getCtnKind() {
        return ctnKind;
    }
    public void setCtnKind(Integer ctnKind) {
        this.ctnKind = ctnKind;
    }
    public String getManuType() {
        return manuType;
    }
    public void setManuType(String manuType) {
        this.manuType = manuType;
    }
    public String getMemo() {
        return memo;
    }
    public void setMemo(String memo) {
        this.memo = memo;
    }
    public Double getScWeight() {
        return scWeight;
    }
    public void setScWeight(Double scWeight) {
        this.scWeight = scWeight;
    }
    public String getLogMk() {
        return logMk;
    }
    public void setLogMk(String logMk) {
        this.logMk = logMk;
    }
    public Date getLogErrTime() {
        return logErrTime;
    }
//    public void setErrorMemo(String errorMemo) {
//        if (errorMemo.length() > 255) {
//            errorMemo = errorMemo.substring(0, 150);
//        }
//        this.errorMemo = errorMemo;
//    }
    public String getLogErrTime$(){
        if (Cools.isEmpty(this.logErrTime)){
@@ -981,49 +496,19 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime);
    }
    public void setLogErrTime(Date logErrTime) {
        this.logErrTime = logErrTime;
    public Long getWrkStsComplete(){
        if (Cools.isEmpty(this.wrkSts)){
            return this.wrkSts;
        }
        if (this.ioType>10){
            return this.wrkSts+2;
        }else {
            return this.wrkSts+2;
        }
    }
    public String getLogErrMemo() {
        return logErrMemo;
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }
    public void setLogErrMemo(String logErrMemo) {
        this.logErrMemo = logErrMemo;
    }
    public String getBarcode() {
        return barcode;
    }
    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }
    public String getPdcType() {
        return PdcType;
    }
    public void setPdcType(String PdcType) {
        this.PdcType = PdcType;
    }
    public String getCtnNo() {
        return ctnNo;
    }
    public void setCtnNo(String ctnNo) {
        this.ctnNo = ctnNo;
    }
    public String getFullPlt() {
        return fullPlt;
    }
    public void setFullPlt(String fullPlt) {
        this.fullPlt = fullPlt;
    }
}