|  |  | 
 |  |  | package com.vincent.rsf.server.manager.entity; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableLogic; | 
 |  |  | import com.baomidou.mybatisplus.annotation.*; | 
 |  |  |  | 
 |  |  | 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 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.entity.User; | 
 |  |  | import java.io.Serializable; | 
 |  |  | import java.util.Date; | 
 |  |  | import java.util.Objects; | 
 |  |  |  | 
 |  |  | @Data | 
 |  |  | @Accessors(chain = true) | 
 |  |  | 
 |  |  |      * 物料名称 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "物料名称") | 
 |  |  |     private String matnrName; | 
 |  |  |     private String maktx; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 商品编号 | 
 |  |  | 
 |  |  |     private Integer status; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 执行状态 0:未执行 1:待执行 2:执行中 3:已取消 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty("执行状态") | 
 |  |  |     private Short exceStatus; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 是否删除 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; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     private Long updateBy; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 目标库位 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty("目标库位") | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private String stockLocs; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 库存数量 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty("库存数量") | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private Double stockQty; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /*** | 
 |  |  |      * 是否全拖出库 | 
 |  |  |      */ | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private Short flagAll; | 
 |  |  |     /** | 
 |  |  |      * 备注 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "备注") | 
 |  |  | 
 |  |  |  | 
 |  |  |     public WaveItem() {} | 
 |  |  |  | 
 |  |  |     public WaveItem(Long waveId,String waveCode,Long matnrId,String matnrName,String matnrCode,String batch,String splrBatch,String orderCode,Long orderItemId,String unit,String trackCode,String fieldsIndex,Double anfme,Double workQty,Long tenantId,Integer status,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { | 
 |  |  |     public WaveItem(Long waveId,String waveCode,Long matnrId,String matnrName,String matnrCode,String batch,String splrBatch,String orderCode, Long orderId,Long orderItemId,String unit,String trackCode,String fieldsIndex,Double anfme,Double workQty,Long tenantId,Integer status,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { | 
 |  |  |         this.waveId = waveId; | 
 |  |  |         this.waveCode = waveCode; | 
 |  |  |         this.matnrId = matnrId; | 
 |  |  |         this.matnrName = matnrName; | 
 |  |  |         this.maktx = matnrName; | 
 |  |  |         this.matnrCode = matnrCode; | 
 |  |  |         this.batch = batch; | 
 |  |  |         this.orderId = orderId; | 
 |  |  |         this.splrBatch = splrBatch; | 
 |  |  |         this.orderCode = orderCode; | 
 |  |  |         this.orderItemId = orderItemId; | 
 |  |  | 
 |  |  |         this.updateBy = updateBy; | 
 |  |  |         this.memo = memo; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | //    WaveItem waveItem = new WaveItem( | 
 |  |  | //            null,    // 波次ID | 
 |  |  | 
 |  |  | //            null    // 备注 | 
 |  |  | //    ); | 
 |  |  |  | 
 |  |  |     public String getExceStatus$(){ | 
 |  |  |         if (Cools.isEmpty(this.exceStatus)) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); | 
 |  |  |         DictData dictDatas = dictDataService.getOne(new LambdaQueryWrapper<DictData>() | 
 |  |  |                 .eq(DictData::getDictTypeCode, DictTypeCode.SYS_WAVE_ITEM_EXCE_STATUS) | 
 |  |  |                 .eq(DictData::getValue, this.exceStatus)); | 
 |  |  |         if (Objects.isNull(dictDatas) || Objects.isNull(dictDatas.getLabel())) { | 
 |  |  |             return null; | 
 |  |  |         } | 
 |  |  |         return dictDatas.getValue() + "." + dictDatas.getLabel(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getStatus$(){ | 
 |  |  |         if (null == this.status){ return null; } | 
 |  |  |         switch (this.status){ |