自动化立体仓库 - WMS系统
skyouc
2 天以前 af8a669a028838d4896eb4167a6895551938dd29
src/main/java/com/zy/asrs/entity/TaskDetlLog.java
@@ -2,25 +2,37 @@
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.zy.asrs.service.BasAreasService;
import com.zy.asrs.service.LocCacheService;
import com.zy.asrs.service.TaskLogService;
import org.springframework.format.annotation.DateTimeFormat;
import com.core.common.SpringUtils;
import com.zy.system.service.UserService;
import com.zy.system.entity.User;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.core.common.SpringUtils;
import com.zy.system.service.UserService;
import com.zy.system.entity.User;
import java.text.SimpleDateFormat;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Objects;
@Data
@TableName("agv_task_detl_log")
@@ -312,7 +324,8 @@
    @TableField("box_type3")
    private String boxType3;
    public TaskDetlLog() {}
    public TaskDetlLog() {
    }
    public TaskDetlLog(Integer wrkNo,Date ioTime,Double anfme,String zpallet,String matnr,String maktx,String batch,String orderNo,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double manLength,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String memo,Long lineNumber,String standby1,String standby2,String standby3,String boxType1,String boxType2,String boxType3) {
        this.wrkNo = wrkNo;
@@ -420,7 +433,9 @@
    }
    public String getBeBatch$(){
        if (null == this.beBatch){ return null; }
        if (null == this.beBatch) {
            return null;
        }
        switch (this.beBatch){
            case 1:
                return "是";
@@ -432,7 +447,9 @@
    }
    public String getSource$(){
        if (null == this.source){ return null; }
        if (null == this.source) {
            return null;
        }
        switch (this.source){
            case 1:
                return "制造";
@@ -446,7 +463,9 @@
    }
    public String getInspect$(){
        if (null == this.inspect){ return null; }
        if (null == this.inspect) {
            return null;
        }
        switch (this.inspect){
            case 1:
                return "是";
@@ -458,7 +477,9 @@
    }
    public String getDanger$(){
        if (null == this.danger){ return null; }
        if (null == this.danger) {
            return null;
        }
        switch (this.danger){
            case 1:
                return "是";
@@ -469,6 +490,45 @@
        }
    }
    /**
     * 获取库区类型
     *
     * @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 getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
        User user = service.selectById(this.modiUser);