自动化立体仓库 - WMS系统
whycq
2023-08-26 82bcd0328dddbaad65933e2fada22bc68e82b3d5
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -7,6 +7,7 @@
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.LocMastService;
import com.zy.asrs.service.MatService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
@@ -158,26 +159,6 @@
    @ApiModelProperty(value = "备注")
    private String memo;
    /**
     * 库存预警数量上限
     */
    private Double storeMax;
    /**
     * 库存预警数量下限
     */
    private Double storeMin;
    /**
     * 库龄预警上限
     */
    private Integer storeMaxDate;
    /**
     * 实际在库天数
     */
    private Integer nowTime;
    public String getLocNo$() {
        LocMastService service = SpringUtils.getBean(LocMastService.class);
@@ -278,6 +259,42 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
    public String getLocType2$() {
        if (Cools.isEmpty(this.locNo)) {
            return "";
        }
        LocMastService locMastService = SpringUtils.getBean(LocMastService.class);
        LocMast locMast = locMastService.selectById(this.locNo);
        if (locMast == null) {
            return "";
        }
        return locMast.getLocType2$();
    }
    public Integer getMatType() {
        if (Cools.isEmpty(this.matnr)) {
            return null;
        }
        MatService matService = SpringUtils.getBean(MatService.class);
        Mat mat = matService.selectByMatnr(this.matnr);
        if (mat == null) {
            return null;
        }
        return mat.getMatType();
    }
    public String getMatType$() {
        if (Cools.isEmpty(this.matnr)) {
            return "";
        }
        MatService matService = SpringUtils.getBean(MatService.class);
        Mat mat = matService.selectByMatnr(this.matnr);
        if (mat == null) {
            return "";
        }
        return mat.getMatType$();
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }