From 481819975d08f3455fb148410e272f560dd7adb2 Mon Sep 17 00:00:00 2001 From: verou <857149855@qq.com> Date: 星期四, 03 四月 2025 09:14:47 +0800 Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java | 33 ++++++++++++++++++++------------- 1 files changed, 20 insertions(+), 13 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java index ad054a0..d90bbe0 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java @@ -3,19 +3,17 @@ import java.text.SimpleDateFormat; import java.util.Date; +import com.baomidou.mybatisplus.annotation.*; import com.vincent.rsf.server.manager.service.*; +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; 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.framework.common.Cools; @@ -23,9 +21,9 @@ import com.vincent.rsf.server.system.service.UserService; import com.vincent.rsf.server.system.entity.User; import java.io.Serializable; -import java.util.Date; @Data +@Accessors(chain = true) @TableName("man_stock_item") public class StockItem implements Serializable { @@ -39,10 +37,16 @@ private Long id; /** + * 浠诲姟鏄庣粏ID + */ + @ApiModelProperty("浠诲姟鏄庣粏ID") + private Long taskItemId; + + /** * 搴撳瓨澶栭敭鏍囪瘑 */ @ApiModelProperty(value= "搴撳瓨澶栭敭鏍囪瘑") - private String stockId; + private Long stockId; /** * 鐗╂枡鏍囪瘑 @@ -142,24 +146,28 @@ * ASN鍗曟嵁,甯﹀嚭PO鍗� */ @ApiModelProperty(value= "ASN鍗曟嵁,甯﹀嚭PO鍗�") + @TableField(exist = false) private String asnOrder; /** * ERP鍑瘉 */ @ApiModelProperty(value= "ERP鍑瘉") + @TableField(exist = false) private String erpToken; /** * ERP鍗曞彿 */ @ApiModelProperty(value= "ERP鍗曞彿") + @TableField(exist = false) private String erpOrder; /** * ERP搴撳瓨鍦板潃 */ @ApiModelProperty(value= "ERP搴撳瓨鍦板潃") + @TableField(exist = false) private String erpStkAdr; /** @@ -202,7 +210,6 @@ * 閿佸畾鏃堕棿 */ @ApiModelProperty(value= "閿佸畾鏃堕棿") - @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") private Date lockedTime; /** @@ -258,7 +265,7 @@ public StockItem() {} - public StockItem(String stockId,Long matnrId,Long asnItemId, String code,String matnrk,Double anfme,Double workQty,Double qty,Double weight,String unit,Long shipperId,String splrId,String brand,String batch,String prodTime,Long inspectId,String splrBtch,String asnOrder,String erpToken,String erpOrder,String erpStkAdr,Long locId,String barcode,Double purPrice,String lockReason,Short lockStatus,String locker,Date lockedTime,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { + public StockItem(Long stockId,Long matnrId,Long asnItemId, String code,String matnrk,Double anfme,Double workQty,Double qty,Double weight,String unit,Long shipperId,String splrId,String brand,String batch,String prodTime,Long inspectId,String splrBtch,String asnOrder,String erpToken,String erpOrder,String erpStkAdr,Long locId,String barcode,Double purPrice,String lockReason,Short lockStatus,String locker,Date lockedTime,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { this.stockId = stockId; this.matnrId = matnrId; this.asnItemId = asnItemId; @@ -354,8 +361,8 @@ } public String getShipperId$(){ - ShipperService service = SpringUtils.getBean(ShipperService.class); - Shipper shipper = service.getById(this.shipperId); + CompanysService service = SpringUtils.getBean(CompanysService.class); + Companys shipper = service.getById(this.shipperId); if (!Cools.isEmpty(shipper)){ return String.valueOf(shipper.getName()); } @@ -375,7 +382,7 @@ QlyInspectService service = SpringUtils.getBean(QlyInspectService.class); QlyInspect qlyInspect = service.getById(this.inspectId); if (!Cools.isEmpty(qlyInspect)){ - return String.valueOf(qlyInspect.getName()); + return String.valueOf(qlyInspect.getCode()); } return null; } @@ -384,7 +391,7 @@ LocService service = SpringUtils.getBean(LocService.class); Loc loc = service.getById(this.locId); if (!Cools.isEmpty(loc)){ - return String.valueOf(loc.getName()); + return String.valueOf(loc.getCode()); } return null; } -- Gitblit v1.9.1