自动化立体仓库 - 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;
@@ -270,6 +271,30 @@
        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);
    }