|  |  | 
 |  |  | import java.text.SimpleDateFormat; | 
 |  |  | import java.util.Date; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 
 |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
 |  |  | import com.vincent.rsf.server.system.constant.DictTypeCode; | 
 |  |  | import com.vincent.rsf.server.system.entity.DictData; | 
 |  |  | import com.vincent.rsf.server.system.service.DictDataService; | 
 |  |  | import lombok.experimental.Accessors; | 
 |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
 |  |  | import java.text.SimpleDateFormat; | 
 |  |  | 
 |  |  | import com.vincent.rsf.server.system.entity.User; | 
 |  |  | import java.io.Serializable; | 
 |  |  | import java.util.Date; | 
 |  |  | import java.util.Objects; | 
 |  |  |  | 
 |  |  | @Data | 
 |  |  | @Accessors(chain = true) | 
 |  |  | 
 |  |  |     private Short ioStatus; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 是否不良品 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty("是否不良品") | 
 |  |  |     private Short flagDefect; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 状态 1: 正常  0: 冻结   | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "状态 1: 正常  0: 冻结  ") | 
 |  |  | 
 |  |  |      * 是否删除 1: 是  0: 否   | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "是否删除 1: 是  0: 否  ") | 
 |  |  |     @TableLogic | 
 |  |  |     private Integer deleted; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "添加时间") | 
 |  |  |     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
 |  |  |     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") | 
 |  |  |     private Date createTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "修改时间") | 
 |  |  |     @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 
 |  |  |     @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") | 
 |  |  |     private Date updateTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  | //    ); | 
 |  |  |  | 
 |  |  |     public String getIoStatus$(){ | 
 |  |  |         if (null == this.ioStatus){ return null; } | 
 |  |  |         switch (this.ioStatus){ | 
 |  |  |             case 0: | 
 |  |  |                 return "待入库"; | 
 |  |  |             case  1: | 
 |  |  |                 return " 入库中"; | 
 |  |  |             case 2: | 
 |  |  |                 return "任务执行中"; | 
 |  |  |             case 3: | 
 |  |  |                 return "任务完成"; | 
 |  |  |             default: | 
 |  |  |                 return String.valueOf(this.ioStatus); | 
 |  |  |         if (Cools.isEmpty(this.ioStatus)){ | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |         DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); | 
 |  |  |         DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() | 
 |  |  |                 .eq(DictData::getDictTypeCode, DictTypeCode.SYS_ORDER_IN_STATUS) | 
 |  |  |                 .eq(DictData::getValue, this.ioStatus)); | 
 |  |  |         if (Objects.isNull(dictData)) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         return dictData.getLabel(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getStatus$(){ |