From c8fde8647b48e7c7d9b3beb6e8c39459f07c9eb2 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 08 五月 2025 14:55:46 +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/Matnr.java | 216 ++++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 160 insertions(+), 56 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 4d61ab1..f9e7fa6 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 @@ -1,18 +1,23 @@ package com.vincent.rsf.server.manager.entity; -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.text.SimpleDateFormat; -import java.util.Date; +import com.baomidou.mybatisplus.annotation.*; +import java.text.SimpleDateFormat; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonFormat; +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; -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; @@ -25,6 +30,8 @@ @Data @TableName("man_matnr") +@Accessors(chain = true) +@ApiModel(value = "Matnr", description = "鐗╂枡鎵�鏈夊熀纭�灞炴��") public class Matnr implements Serializable { private static final long serialVersionUID = 1L; @@ -37,40 +44,55 @@ private Long id; /** - * 鏍囪瘑 - */ - @ApiModelProperty(value= "鏍囪瘑") - private String uuid; - - /** - * 璐т富ID - */ - @ApiModelProperty(value= "璐т富ID") - private Long shipperId; - - /** * 鍚嶇О */ - @ApiModelProperty(value= "鍚嶇О") + @ApiModelProperty(value= "鐗╂枡鍚嶇О") private String name; /** * 缂栫爜 */ - @ApiModelProperty(value= "缂栫爜") + @ApiModelProperty(value= "鐗╂枡缂栫爜") private String code; /** - * 鍒嗙粍ID + * 璐т富ID */ - @ApiModelProperty(value= "鍒嗙粍ID") + @ApiModelProperty(value= "璐т富鏍囪瘑") + private Long shipperId; + +// @ApiModelProperty(value = "璐т富缂栫爜") +// private String shipperCode; + + /** + * 鍒嗙粍ID(*) + */ + @ApiModelProperty(value= "鐗╂枡鍒嗙粍(*)") private Long groupId; + + /** + * 瀛楁鏍囪瘑 + */ + @ApiModelProperty(value = "瀛楁鏍囪瘑") + private String fieldsIndex; + + /** + * 鍒嗙粍鍔╄鐮� + */ + @ApiModelProperty(value = "鍒嗙粍鍔╄鐮�") + private String groupCode; + + /** + * 瑙勫垯浠g爜 + */ + @ApiModelProperty(value= "鎵规瑙勫垯鏍囪瘑") + private Long rglarId; /** * ERP缂栫爜 */ @ApiModelProperty(value= "ERP缂栫爜") - private String erpCode; + private String platCode; /** * 瑙勬牸 @@ -99,14 +121,14 @@ /** * 闀�*瀹�*楂�(m) */ - @ApiModelProperty(value= "闀�*瀹�*楂�(m)") + @ApiModelProperty(value= "灏哄(m)") private String size; /** * 鎻忚堪 */ @ApiModelProperty(value= "鎻忚堪") - private String desc; + private String describle; /** * 鏍囧寘鏁伴噺 @@ -124,7 +146,7 @@ * 閲囪喘鍗曚綅 */ @ApiModelProperty(value= "閲囪喘鍗曚綅") - private String purchaseUnit; + private String purUnit; /** * 搴撲綅鍗曚綅 @@ -136,13 +158,61 @@ * 鍑哄叆搴撲紭鍏堢骇鍒� 0: A 1: B 2: C */ @ApiModelProperty(value= "鍑哄叆搴撲紭鍏堢骇鍒� 0: A 1: B 2: C ") - private Short stockLeval; + private Short stockLevel; /** * 鏄惁鏍囩绠$悊(*) 0: 鍚� 1: 鏄� */ @ApiModelProperty(value= "鏄惁鏍囩绠$悊(*) 0: 鍚� 1: 鏄� ") - private Short isLabelMange; + private Short flagLabelMange; + + /** + * 瀹夊叏搴撳瓨 + */ + @ApiModelProperty(value= "瀹夊叏搴撳瓨") + private Double safeQty; + + /** + * 鏈�灏忓簱瀛橀璀﹀�� + */ + @ApiModelProperty(value= "鏈�灏忓簱瀛橀璀﹀��") + private Double minQty; + + /** + * 鏈�澶у簱瀛橀璀﹀�� + */ + @ApiModelProperty(value= "鏈�澶у簱瀛橀璀﹀��") + private Double maxQty; + + /** + * 鍋滄粸澶╂暟 + */ + @ApiModelProperty(value= "鍋滄粸澶╂暟") + private Integer stagn; + + /** + * 淇濊川鏈熷ぉ鏁� + */ + @ApiModelProperty(value= "淇濊川鏈熷ぉ鏁�") + private Integer valid; + + /** + * 鏉″舰鐮� + */ + @ApiModelProperty(value = "鏉″舰鐮�") + private String barcode; + + /** + * 鏁堟湡棰勮闃堝�� + */ + @ApiModelProperty(value= "鏁堟湡棰勮闃堝��") + private Integer validWarn; + + /** + * 鏄惁鍏嶆 + */ + @ApiModelProperty(value= "鏄惁鍏嶆") + private Short flagCheck; /** * 鐘舵�� 1: 姝e父 0: 鍐荤粨 @@ -154,8 +224,11 @@ * 鏄惁鍒犻櫎 1: 鏄� 0: 鍚� */ @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄� 0: 鍚� ") - @TableLogic private Integer deleted; + + @ApiModelProperty("鍔ㄦ�佹墿灞曞瓧娈�") + @TableField(exist = false) + private Map<String, String> extendFields; /** * 绉熸埛 @@ -174,6 +247,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; /** @@ -187,6 +261,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; /** @@ -195,27 +270,41 @@ @ApiModelProperty(value= "澶囨敞") private String memo; + /** + * 澶囨敞 + */ + @ApiModelProperty(value= "鍒嗙被鍒楄〃") + @TableField(exist = false) + private List<Matnr> children; + public Matnr() {} - public Matnr(String uuid,Long shipperId,String name,String code,Long groupId,String erpCode,String spec,String model,Double weight,String color,String size,String desc,Integer nromNum,String unit,String purchaseUnit,String stockUnit,Short stockLeval,Short isLabelMange,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { - this.uuid = uuid; - this.shipperId = shipperId; + 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.erpCode = erpCode; + this.rglarId = rglarId; + this.platCode = platCode; this.spec = spec; this.model = model; this.weight = weight; this.color = color; this.size = size; - this.desc = desc; + this.describle = describle; this.nromNum = nromNum; this.unit = unit; - this.purchaseUnit = purchaseUnit; + this.purUnit = purUnit; this.stockUnit = stockUnit; - this.stockLeval = stockLeval; - this.isLabelMange = isLabelMange; + this.stockLevel = stockLevel; + this.flagLabelMange = flagLabelMange; + this.safeQty = safeQty; + this.minQty = minQty; + this.maxQty = maxQty; + this.stagn = stagn; + this.valid = valid; + this.validWarn = validWarn; + this.flagCheck = flagCheck; this.status = status; this.deleted = deleted; this.tenantId = tenantId; @@ -227,11 +316,11 @@ } // Matnr matnr = new Matnr( -// null, // 鏍囪瘑 -// null, // 璐т富ID // null, // 鍚嶇О // null, // 缂栫爜 -// null, // 鍒嗙粍ID +// null, // 璐т富ID +// null, // 鍒嗙粍ID(*) +// null, // 瑙勫垯浠g爜 // null, // ERP缂栫爜 // null, // 瑙勬牸 // null, // 鍨嬪彿 @@ -245,6 +334,13 @@ // null, // 搴撲綅鍗曚綅 // null, // 鍑哄叆搴撲紭鍏堢骇鍒玔闈炵┖] // null, // 鏄惁鏍囩绠$悊(*)[闈炵┖] +// null, // 瀹夊叏搴撳瓨 +// null, // 鏈�灏忓簱瀛橀璀﹀�� +// null, // 鏈�澶у簱瀛橀璀﹀�� +// null, // 鍋滄粸澶╂暟 +// null, // 淇濊川鏈熷ぉ鏁� +// null, // 鏁堟湡棰勮闃堝�� +// null, // 鏄惁鍏嶆 // null, // 鐘舵�乕闈炵┖] // null, // 鏄惁鍒犻櫎[闈炵┖] // null, // 绉熸埛 @@ -256,26 +352,34 @@ // ); 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; } -// public String getGroupId$(){ -// MatnrGroupService service = SpringUtils.getBean(MatnrGroupService.class); -// MatnrGroup matnrGroup = service.getById(this.groupId); -// if (!Cools.isEmpty(matnrGroup)){ -// return String.valueOf(matnrGroup.getCode()); + public String getGroupId$(){ + MatnrGroupService service = SpringUtils.getBean(MatnrGroupService.class); + MatnrGroup matnrGroup = service.getById(this.groupId); + if (!Cools.isEmpty(matnrGroup)){ + return String.valueOf(matnrGroup.getName()); + } + 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.stockLeval){ return null; } - switch (this.stockLeval){ + if (null == this.stockLevel){ return null; } + switch (this.stockLevel){ case 0: return " A"; case 1: @@ -283,19 +387,19 @@ case 2: return "C"; default: - return String.valueOf(this.stockLeval); + return String.valueOf(this.stockLevel); } } - public String getIsLabelMange$(){ - if (null == this.isLabelMange){ return null; } - switch (this.isLabelMange){ + public String getFlagLabelMange$(){ + if (null == this.flagLabelMange){ return null; } + switch (this.flagLabelMange){ case 0: return " 鍚�"; case 1: return " 鏄�"; default: - return String.valueOf(this.isLabelMange); + return String.valueOf(this.flagLabelMange); } } -- Gitblit v1.9.1