自动化立体仓库 - WMS系统
#
pjb
2024-07-04 4e7fce25f60aaf58603a3d2f3d749d1a83675c44
src/main/java/com/zy/asrs/entity/LocDetlWarningDTO.java
@@ -5,6 +5,7 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.LocOwnerService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
@@ -31,13 +32,19 @@
    private Date createTime;
    @ExcelProperty("规格")
    private String specs;
    @ExcelProperty("库存上限")
    @ExcelProperty("批次")
    private String batch;
    @ExcelProperty("货主Id")
    private String owner;
    @ExcelProperty("货主")
    private String ownerName;
//    @ExcelProperty("库存上限")
    private String inventoryMax;
    @ExcelProperty("库存下限")
//    @ExcelProperty("库存下限")
    private String inventoryMin;
    @ExcelProperty("库龄上限")
    private String inventoryAgeMax;
    @ExcelProperty("库存总数量")
//    @ExcelProperty("库存总数量")
    private Integer countAnfme;
    @ExcelProperty("在库天数")
    private Integer diffTime;
@@ -49,6 +56,24 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
    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 getOwnerName(){
        LocOwnerService service = SpringUtils.getBean(LocOwnerService.class);
        LocOwner locOwner = service.selectById(this.owner);
        if (!Cools.isEmpty(locOwner)){
            return String.valueOf(locOwner.getOwner());
        }
        return null;
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }