| | |
| | | import java.util.*; |
| | | |
| | | 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 com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import java.text.SimpleDateFormat; |
| | | |
| | | import java.util.Date; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | |
| | | @ApiModelProperty(value= "送货数量") |
| | | private Double anfme; |
| | | |
| | | @ApiModelProperty("执行数量") |
| | | private Double workQty; |
| | | |
| | | /** |
| | | * 已收数量 |
| | | */ |
| | |
| | | */ |
| | | @ApiModelProperty(value= "物流单号") |
| | | private String logisNo; |
| | | |
| | | @ApiModelProperty("波次ID") |
| | | private Long waveId; |
| | | |
| | | /** |
| | | * 预计到达时间 |
| | |
| | | * 是否删除 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; |
| | | |
| | | /** |
| | |
| | | this.memo = memo; |
| | | } |
| | | |
| | | // AsnOrder asnOrder = new AsnOrder( |
| | | // null, // 编号 |
| | | // null, // PO单号 |
| | | // null, // PO单据标识 |
| | | // null, // 单据类型[非空] |
| | | // null, // 业务类型[非空] |
| | | // null, // 送货数量[非空] |
| | | // null, // 已收数量[非空] |
| | | // null, // 物流单号 |
| | | // null, // 预计到达时间 |
| | | // null, // 释放状态[非空] |
| | | // null, // 名称 |
| | | // null, // 状态[非空] |
| | | // null, // 是否删除[非空] |
| | | // null, // 租户 |
| | | // null, // 添加人员 |
| | | // null, // 添加时间[非空] |
| | | // null, // 修改人员 |
| | | // null, // 修改时间[非空] |
| | | // null // 备注 |
| | | // ); |
| | | public String getExceStatus$() { |
| | | if (Cools.isEmpty(this.exceStatus)){ |
| | | return ""; |
| | | } |
| | | DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); |
| | | DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() |
| | | .eq(DictData::getDictTypeCode, DictTypeCode.DICT_ASN_EXCE_STATUS) |
| | | .eq(DictData::getValue, this.exceStatus)); |
| | | if (Objects.isNull(dictData)) { |
| | | return null; |
| | | } |
| | | return dictData.getLabel(); |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (Cools.isEmpty(this.type)){ |
| | |
| | | return null; |
| | | } |
| | | } |
| | | public String getNtyStatus$(){ |
| | | if (null == this.ntyStatus){ return "error"; } |
| | | switch (this.ntyStatus){ |
| | | case 0: |
| | | return "未上报"; |
| | | case 1: |
| | | return "已上报"; |
| | | case 2: |
| | | return "部分上报"; |
| | | default: |
| | | return "error"; |
| | | } |
| | | } |
| | | |
| | | } |