自动化立体仓库 - WMS系统
123
zhang
3 天以前 21d0e7ab9d5c7316225a3e9eecf465cd37c9bd85
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -7,6 +7,8 @@
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.LocMastService;
import com.zy.asrs.service.LocOwnerService;
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,6 +160,9 @@
    @ApiModelProperty(value = "备注")
    private String memo;
    @ApiModelProperty(value= "客户信息ID")
    private Long owner;
    public String getLocNo$() {
        LocMastService service = SpringUtils.getBean(LocMastService.class);
@@ -167,6 +172,16 @@
        }
        return null;
    }
    public String getOwner$(){
        LocOwnerService service = SpringUtils.getBean(LocOwnerService.class);
        LocOwner locOwner = service.selectById(this.owner);
        if (!Cools.isEmpty(locOwner)){
            return String.valueOf(locOwner.getOwner());
        }
        return null;
    }
    public String getBeBatch$() {
        if (null == this.beBatch) {
@@ -270,6 +285,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);
    }