skyouc
4 天以前 c46d1d8c3b9875f051a6ec3c4a1d3fa7bd32e5db
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/AsnOrderItem.java
@@ -5,6 +5,11 @@
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;
@@ -16,6 +21,7 @@
import com.vincent.rsf.server.system.entity.User;
import java.io.Serializable;
import java.util.Map;
import java.util.Objects;
@Data
@Accessors(chain = true)
@@ -35,6 +41,8 @@
     */
    @ApiModelProperty(value= "ASN主单标识")
    private Long asnId;
    /**
     * 平台标识(行号)
@@ -100,6 +108,12 @@
     */
    @ApiModelProperty(value= "物料名称")
    private String maktx;
    @ApiModelProperty("规格")
    private String spec;
    @ApiModelProperty("型号")
    private String model;
    /**
     * 送货数量
@@ -182,13 +196,34 @@
    private Integer ntyStatus;
    /**
     * 状态 1: 正常  0: 冻结
     * 质检结果
     */
    @ApiModelProperty("质检结果")
    private Short isptResult;
    /**
     * 质检状态
     */
    @ApiModelProperty("质检状态")
    private Short isptStatus;
    @ApiModelProperty("合格数量")
    @TableField(exist = false)
    private Double safeQty;
    @ApiModelProperty("不合格数量")
    @TableField(exist = false)
    private Double disQty;
    /**
     * 状态 1: 正常  0: 冻结
     */
    @ApiModelProperty(value= "状态 1: 正常  0: 冻结  ")
    private Integer status;
    /**
     * 是否删除 1: 是  0: 否
     * 是否删除 1: 是  0: 否
     */
    @ApiModelProperty(value= "是否删除 1: 是  0: 否  ")
    private Integer deleted;
@@ -210,6 +245,7 @@
     */
    @ApiModelProperty(value= "添加时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
@@ -223,6 +259,7 @@
     */
    @ApiModelProperty(value= "修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
@@ -347,4 +384,18 @@
        }
    }
    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();
    }
}