|  |  | 
 |  |  | package com.vincent.rsf.server.manager.entity; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableLogic; | 
 |  |  | import java.text.SimpleDateFormat; | 
 |  |  | import java.util.Date; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.annotation.*; | 
 |  |  | 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 java.util.Date; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.annotation.IdType; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableId; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableLogic; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
 |  |  | import io.swagger.annotations.ApiModel; | 
 |  |  | import io.swagger.annotations.ApiModelProperty; | 
 |  |  | import lombok.Data; | 
 |  |  | 
 |  |  | import com.vincent.rsf.server.system.service.UserService; | 
 |  |  | import com.vincent.rsf.server.system.entity.User; | 
 |  |  | import java.io.Serializable; | 
 |  |  | import java.util.Date; | 
 |  |  | import java.util.Map; | 
 |  |  | import java.util.Objects; | 
 |  |  |  | 
 |  |  | @Data | 
 |  |  | @Accessors(chain = true) | 
 |  |  | @TableName("man_task_item") | 
 |  |  | @ApiModel(value = "TaskItem", description = "任务档明细") | 
 |  |  | public class TaskItem implements Serializable { | 
 |  |  |  | 
 |  |  |     private static final long serialVersionUID = 1L; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * ID | 
 |  |  |      */ | 
 |  |  | 
 |  |  |     @ApiModelProperty(value= "物料名称") | 
 |  |  |     private String maktx; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("源编码") | 
 |  |  |     private Long source; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("源单号") | 
 |  |  |     private String sourceCode; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("源主单ID") | 
 |  |  |     private Long sourceId; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("单据ID") | 
 |  |  |     private Long orderId; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("行号") | 
 |  |  |     private String platItemId; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("客户订单号") | 
 |  |  |     private String platOrderCode; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("工单号") | 
 |  |  |     private String platWorkCode; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("项目号") | 
 |  |  |     private String projectCode; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("单据类型") | 
 |  |  |     private String orderType; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("业务类型") | 
 |  |  |     private Short wkType; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("单据明细ID") | 
 |  |  |     private Long orderItemId; | 
 |  |  |     /** | 
 |  |  |      * 物料跟踪码 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty("物料跟踪码") | 
 |  |  |     private String trackCode; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("供应商波次") | 
 |  |  |     private String splrBatch; | 
 |  |  |     /** | 
 |  |  |      * 物料编码 | 
 |  |  |      */ | 
 |  |  | 
 |  |  |     private Double anfme; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 执行数量 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty("库存数量") | 
 |  |  |     private Double workQty; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 完成数量 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty("完成数量") | 
 |  |  |     private Double qty; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 库存批次 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "库存批次") | 
 |  |  | 
 |  |  |     @ApiModelProperty(value= "型号") | 
 |  |  |     private String model; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("质检状态") | 
 |  |  |     private Short isptResult; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 字段索引 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "字段索引") | 
 |  |  |     private String fieldsIndex; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty("扩展字段") | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private Map<String, String> extendFields; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 状态 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; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  | //            null    // 备注 | 
 |  |  | //    ); | 
 |  |  |  | 
 |  |  |     public String getOrderType$(){ | 
 |  |  |         if (null == this.orderType) {return  null;} | 
 |  |  |         DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); | 
 |  |  |         DictData dictDatas = dictDataService.getOne(new LambdaQueryWrapper<DictData>() | 
 |  |  |                 .eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE) | 
 |  |  |                 .eq(DictData::getValue, this.orderType)); | 
 |  |  |         if (Objects.isNull(dictDatas) || Objects.isNull(dictDatas.getLabel())) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         return dictDatas.getLabel(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getWkType$(){ | 
 |  |  |         if (Cools.isEmpty(this.wkType)){ | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |         DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); | 
 |  |  |         DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_BUSINESS_TYPE).eq(DictData::getValue, this.wkType)); | 
 |  |  |         if (Objects.isNull(dictData)) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         return dictData.getLabel(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     public String getIsptResult$(){ | 
 |  |  |         if (Cools.isEmpty(this.isptResult)){ | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); | 
 |  |  |         DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() | 
 |  |  |                 .eq(DictData::getDictTypeCode, DictTypeCode.DICT_INSPECT_RESULT) | 
 |  |  |                 .eq(DictData::getValue, this.isptResult)); | 
 |  |  |         if (Objects.isNull(dictData)) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         return dictData.getLabel(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getStatus$(){ | 
 |  |  |         if (null == this.status){ return null; } | 
 |  |  |         switch (this.status){ |