|  |  |  | 
|---|
|  |  |  | 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: 冻结  ") | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @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 " 入库中"; | 
|---|
|  |  |  | 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$(){ | 
|---|