From b60d6c1abc9a41456c683a79d4ee27e7bdf7071b Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 13 五月 2025 14:23:38 +0800 Subject: [PATCH] #Agv启动入库 --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WarehouseAreasItem.java | 69 +++++++++++++++++++++++++++++----- 1 files changed, 58 insertions(+), 11 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WarehouseAreasItem.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WarehouseAreasItem.java index d0b12a5..48a67c1 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WarehouseAreasItem.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/WarehouseAreasItem.java @@ -3,9 +3,14 @@ import com.baomidou.mybatisplus.annotation.*; import java.text.SimpleDateFormat; -import java.util.Date; +import java.util.*; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.fasterxml.jackson.annotation.JsonFormat; import com.vincent.rsf.server.manager.service.CompanysService; +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; @@ -21,7 +26,6 @@ import com.vincent.rsf.server.system.entity.User; import java.io.Serializable; import java.util.Date; -import java.util.Map; @Data @Accessors(chain = true) @@ -44,6 +48,28 @@ @ApiModelProperty(value= "浠撳簱鍖哄煙") private Long areaId; + @ApiModelProperty("鍗曟嵁ID") + private Long asnId; + + @ApiModelProperty("鍗曟嵁缂栫爜") + private String asnCode; + + @ApiModelProperty("鍗曟嵁鏄庣粏ID") + private Long asnItemId; + + @ApiModelProperty("琛屽彿") + private String platItemId; + + @ApiModelProperty("璐ㄦ缁撴灉") + private Short isptResult; + + @ApiModelProperty("宸叉敹璐ф暟閲�") + private Double qty; + + @ApiModelProperty("鎵ц鏁伴噺") + private Double workQty; + + /** * 鍖哄煙鍚嶇О */ @@ -63,7 +89,7 @@ * 鐗╂枡鍚嶇О */ @ApiModelProperty(value= "鐗╂枡鍚嶇О") - private String matnrName; + private String maktx; /** * 鐗╂枡缂栫爜 @@ -74,8 +100,8 @@ /** * 鏉″舰鐮� */ - @ApiModelProperty(value= "鏉″舰鐮�") - private String barcode; + @ApiModelProperty(value= "鐗╂枡璺熻釜鐮�") + private String trackCode; /** * 鏁伴噺 @@ -135,7 +161,7 @@ * 渚涘簲鍟嗘壒娆� */ @ApiModelProperty(value= "渚涘簲鍟嗘壒娆�") - private String splrBtch; + private String splrBatch; /** * 鐘舵�� 1: 姝e父 0: 鍐荤粨 @@ -147,7 +173,6 @@ * 鏄惁鍒犻櫎 1: 鏄� 0: 鍚� */ @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄� 0: 鍚� ") - @TableLogic private Integer deleted; /** @@ -167,6 +192,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; /** @@ -175,11 +201,18 @@ @ApiModelProperty(value= "淇敼浜哄憳") private Long updateBy; + @ApiModelProperty("鏄惁鍚堟牸") + private Short flagNorm; + + @ApiModelProperty("璐ㄦ鏁伴噺") + private Double isptQty; + /** * 淇敼鏃堕棿 */ @ApiModelProperty(value= "淇敼鏃堕棿") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") private Date updateTime; @ApiModelProperty("鎵╁睍瀛楁") @@ -194,13 +227,13 @@ public WarehouseAreasItem() {} - public WarehouseAreasItem(Long areaId,String areaName,Long matnrId,String matnrName,String matnrCode,String barcode,Double anfme,String batch,String unit,String stockUnit,String brand,Long shipperId,String splrId,Double weight,String prodTime,String splrBtch,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { + public WarehouseAreasItem(Long areaId,String areaName,Long matnrId,String matnrName,String matnrCode,String trackCode,Double anfme,String batch,String unit,String stockUnit,String brand,Long shipperId,String splrId,Double weight,String prodTime,String splrBtch,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { this.areaId = areaId; this.areaName = areaName; this.matnrId = matnrId; - this.matnrName = matnrName; + this.maktx = matnrName; this.matnrCode = matnrCode; - this.barcode = barcode; + this.trackCode = trackCode; this.anfme = anfme; this.batch = batch; this.unit = unit; @@ -210,7 +243,7 @@ this.splrId = splrId; this.weight = weight; this.prodTime = prodTime; - this.splrBtch = splrBtch; + this.splrBatch = splrBtch; this.status = status; this.deleted = deleted; this.tenantId = tenantId; @@ -303,6 +336,20 @@ return null; } + 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 getUpdateTime$(){ if (Cools.isEmpty(this.updateTime)){ return ""; -- Gitblit v1.9.1