From 4496b9019ba423dd1c51c719bcc0a5938d90fff9 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期二, 22 四月 2025 17:33:18 +0800 Subject: [PATCH] #修改优化 1. DO单明细编码优化 2. DO单明细新增优化 3. 出库单新增单据增加新单据功能 --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java | 74 ++++++++++++++++++++++++------------- 1 files changed, 48 insertions(+), 26 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java index 7e6e58b..44cd0d1 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Matnr.java @@ -3,11 +3,15 @@ import com.baomidou.mybatisplus.annotation.*; import java.text.SimpleDateFormat; -import java.util.Date; +import java.util.*; import com.vincent.rsf.server.manager.service.BatchRegularService; +import com.vincent.rsf.server.manager.service.CompanysService; import com.vincent.rsf.server.manager.service.MatnrGroupService; import com.vincent.rsf.server.manager.service.ShipperService; +import com.vincent.rsf.server.system.entity.SerialRule; +import com.vincent.rsf.server.system.service.SerialRuleService; +import lombok.experimental.Accessors; import org.springframework.format.annotation.DateTimeFormat; import java.text.SimpleDateFormat; import java.util.Date; @@ -22,10 +26,10 @@ import com.vincent.rsf.server.system.entity.User; import java.io.Serializable; import java.util.Date; -import java.util.List; @Data @TableName("man_matnr") +@Accessors(chain = true) @ApiModel(value = "Matnr", description = "鐗╂枡鎵�鏈夊熀纭�灞炴��") public class Matnr implements Serializable { @@ -41,38 +45,53 @@ /** * 鍚嶇О */ - @ApiModelProperty(value= "鍚嶇О") + @ApiModelProperty(value= "鐗╂枡鍚嶇О") private String name; /** * 缂栫爜 */ - @ApiModelProperty(value= "缂栫爜") + @ApiModelProperty(value= "鐗╂枡缂栫爜") private String code; /** * 璐т富ID */ - @ApiModelProperty(value= "璐т富ID") + @ApiModelProperty(value= "璐т富鏍囪瘑") private Long shipperId; + +// @ApiModelProperty(value = "璐т富缂栫爜") +// private String shipperCode; /** * 鍒嗙粍ID(*) */ - @ApiModelProperty(value= "鍒嗙粍ID(*)") + @ApiModelProperty(value= "鐗╂枡鍒嗙粍(*)") private Long groupId; + + /** + * 瀛楁鏍囪瘑 + */ + @ApiModelProperty(value = "瀛楁鏍囪瘑") + private String fieldsIndex; + + /** + * 鍒嗙粍鍔╄鐮� + */ + @ApiModelProperty(value = "鍒嗙粍鍔╄鐮�") + private String groupCode; /** * 瑙勫垯浠g爜 */ - @ApiModelProperty(value= "瑙勫垯浠g爜") + @ApiModelProperty(value= "鎵规瑙勫垯鏍囪瘑") private Long rglarId; /** * ERP缂栫爜 */ @ApiModelProperty(value= "ERP缂栫爜") - private String erpCode; + private String platCode; /** * 瑙勬牸 @@ -101,7 +120,7 @@ /** * 闀�*瀹�*楂�(m) */ - @ApiModelProperty(value= "闀�*瀹�*楂�(m)") + @ApiModelProperty(value= "灏哄(m)") private String size; /** @@ -207,6 +226,10 @@ @TableLogic private Integer deleted; + @ApiModelProperty("鍔ㄦ�佹墿灞曞瓧娈�") + @TableField(exist = false) + private Map<String, String> extendFields; + /** * 绉熸埛 */ @@ -254,13 +277,13 @@ public Matnr() {} - public Matnr(String name,String code,Long shipperId,Long groupId,Long rglarId,String erpCode,String spec,String model,Double weight,String color,String size,String describle,Integer nromNum,String unit,String purUnit,String stockUnit,Short stockLevel,Short flagLabelMange,Double safeQty,Double minQty,Double maxQty,Integer stagn,Integer valid,Integer validWarn,Short flagCheck,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { + public Matnr(String name,String code,Long shipperId,Long groupId,Long rglarId,String platCode,String spec,String model,Double weight,String color,String size,String describle,Integer nromNum,String unit,String purUnit,String stockUnit,Short stockLevel,Short flagLabelMange,Double safeQty,Double minQty,Double maxQty,Integer stagn,Integer valid,Integer validWarn,Short flagCheck,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { this.name = name; this.code = code; this.shipperId = shipperId; this.groupId = groupId; this.rglarId = rglarId; - this.erpCode = erpCode; + this.platCode = platCode; this.spec = spec; this.model = model; this.weight = weight; @@ -327,10 +350,10 @@ // ); public String getShipperId$(){ - ShipperService service = SpringUtils.getBean(ShipperService.class); - Shipper shipper = service.getById(this.shipperId); - if (!Cools.isEmpty(shipper)){ - return String.valueOf(shipper.getName()); + CompanysService service = SpringUtils.getBean(CompanysService.class); + Companys companys = service.getById(this.shipperId); + if (!Cools.isEmpty(companys)){ + return String.valueOf(companys.getName()); } return null; } @@ -339,19 +362,18 @@ MatnrGroupService service = SpringUtils.getBean(MatnrGroupService.class); MatnrGroup matnrGroup = service.getById(this.groupId); if (!Cools.isEmpty(matnrGroup)){ - return String.valueOf(matnrGroup.getCode()); + return String.valueOf(matnrGroup.getName()); } return null; } - - public String getRglarId(){ - BatchRegularService service = SpringUtils.getBean(BatchRegularService.class); - BatchRegular batchRegular = service.getById(this.rglarId); - if (!Cools.isEmpty(batchRegular)){ - return String.valueOf(batchRegular.getCode()); - } - return null; - } +// public String getRglarId$(){ +// SerialRuleService service = SpringUtils.getBean(SerialRuleService.class); +// SerialRule batchRegular = service.getById(this.rglarId); +// if (!Cools.isEmpty(batchRegular)){ +// return String.valueOf(batchRegular.getCode()); +// } +// return null; +// } public String getStockLeval$(){ if (null == this.stockLevel){ return null; } @@ -367,7 +389,7 @@ } } - public String getIsLabelMange$(){ + public String getFlagLabelMange$(){ if (null == this.flagLabelMange){ return null; } switch (this.flagLabelMange){ case 0: -- Gitblit v1.9.1