自动化立体仓库 - WMS系统
skyouc
4 天以前 d8d306fd528eba289b0f6795d135fd9db88c9f3f
no message
4个文件已修改
92 ■■■■ 已修改文件
src/main/java/com/zy/asrs/entity/WaitPakin.java 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetl.java 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetlLog.java 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/AgvCallParams.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WaitPakin.java
@@ -252,16 +252,6 @@
        }
    }
    public String getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
    public String getTag$() {
        MatService service = SpringUtils.getBean(MatService.class);
        Mat order = service.selectOne(new EntityWrapper<Mat>()
@@ -297,6 +287,15 @@
        }
    }
    public String getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);
        if (!Cools.isEmpty(user)){
            return String.valueOf(user.getUsername());
        }
        return null;
    }
    public String getModiTime$(){
        if (Cools.isEmpty(this.modiTime)){
            return "";
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -316,6 +316,20 @@
    @TableField("box_type3")
    private String boxType3 = "1";
    @ApiModelProperty("破损数")
    @TableField("adjust_qty")
    private Double adjustQty;
    @ApiModelProperty("上架数")
    @TableField("work_qty")
    private Double workQty;
    @ApiModelProperty("差异数")
    @TableField("splus_qty")
    private Double splusQty;
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
src/main/java/com/zy/asrs/entity/WrkDetlLog.java
@@ -2,8 +2,12 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.BasAreasService;
import com.zy.asrs.service.LocCacheService;
import com.zy.asrs.service.TaskLogService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
@@ -13,6 +17,7 @@
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Objects;
@Data
@TableName("asr_wrk_detl_log")
@@ -313,6 +318,56 @@
    @TableField("box_type3")
    private String boxType3 = "1";
    @ApiModelProperty("破损数")
    @TableField("adjust_qty")
    private Double adjustQty;
    @ApiModelProperty("上架数")
    @TableField("work_qty")
    private Double workQty;
    @ApiModelProperty("差异数")
    @TableField("splus_qty")
    private Double splusQty;
    /**
     * 获取库区类型
     *
     * @return java.lang.String
     * @author Ryan
     * @date 2026/1/19 14:07
     */
    public String getAreaType() {
        if (null == this.wrkNo) {
            return null;
        }
        TaskLogService taskLogService = SpringUtils.getBean(TaskLogService.class);
        TaskLog taskLog = taskLogService.selectOne(new EntityWrapper<TaskLog>().eq("wrk_no", this.wrkNo));
        if (Objects.isNull(taskLog)) {
            return null;
        }
        LocCacheService locCacheService = SpringUtils.getBean(LocCacheService.class);
        LocCache locCache = locCacheService.selectOne(new EntityWrapper<LocCache>().eq("loc_no", taskLog.getLocNo()));
        if (Objects.isNull(locCache)) {
            return null;
        }
        BasAreasService basAreasService = SpringUtils.getBean(BasAreasService.class);
        BasAreas basAreas = basAreasService.selectById(locCache.getAreaId());
        if (Objects.isNull(basAreas)) {
            return null;
        }
        if (basAreas.getAreaNo().equals("SO")) {
            return "2";
        } else if (basAreas.getAreaNo().equals("EO")) {
            return "3";
        } else if (basAreas.getAreaNo().equals("LK")) {
            return "1";
        } else {
            return "4";
        }
    }
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
src/main/java/com/zy/asrs/entity/param/AgvCallParams.java
@@ -33,10 +33,14 @@
    @ApiModelProperty("操作类型")
    private String type;
    @ApiModelProperty("物料编码")
    private String matnr;
    @ApiModelProperty("是否新台车入库")
    private List<Integer> isNewIn;
    @ApiModelProperty("任务类型")
    private String taskType;
}