| | |
| | | |
| | | 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; |
| | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.Objects; |
| | | |
| | | @Data |
| | | @TableName("asr_wrk_detl_log") |
| | |
| | | @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 ""; |