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/AsnOrder.java | 83 ++++++++++++++++++++++++++--------------- 1 files changed, 53 insertions(+), 30 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/AsnOrder.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/AsnOrder.java index e07af37..1017e0e 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/AsnOrder.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/AsnOrder.java @@ -1,8 +1,12 @@ package com.vincent.rsf.server.manager.entity; import java.text.SimpleDateFormat; -import java.util.Date; +import java.util.*; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +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 com.baomidou.mybatisplus.annotation.TableLogic; @@ -95,16 +99,20 @@ private Date arrTime; /** + * 璐ㄦ涓婃姤鐘舵�� + */ + @ApiModelProperty("涓婃姤鐘舵�� 0锛氭湭涓婃姤, 1锛氬凡涓婃姤") + private Integer ntyStatus; + + /** * 閲婃斁鐘舵�� 0: 姝e父 1: 宸查噴鏀� */ @ApiModelProperty(value= "閲婃斁鐘舵�� 0: 姝e父 1: 宸查噴鏀� ") private Short rleStatus; - /** - * 鍚嶇О - */ - @ApiModelProperty(value= "鍚嶇О") - private String name; + + @ApiModelProperty("鎵ц鐘舵��") + private Short exceStatus; /** * 鐘舵�� 1: 姝e父 0: 鍐荤粨 @@ -116,7 +124,6 @@ * 鏄惁鍒犻櫎 1: 鏄� 0: 鍚� */ @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄� 0: 鍚� ") - @TableLogic private Integer deleted; /** @@ -159,7 +166,7 @@ public AsnOrder() {} - public AsnOrder(String code,String poCode,Long poId,String type,String wkType,Double anfme,Double qty,String logisNo,Date arrTime,Short rleStatus,String name,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { + public AsnOrder(String code,String poCode,Long poId,String type,String wkType,Double anfme,Double qty,String logisNo,Date arrTime,Short rleStatus,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { this.code = code; this.poCode = poCode; this.poId = poId; @@ -170,7 +177,6 @@ this.logisNo = logisNo; this.arrTime = arrTime; this.rleStatus = rleStatus; - this.name = name; this.status = status; this.deleted = deleted; this.tenantId = tenantId; @@ -181,27 +187,44 @@ this.memo = memo; } -// AsnOrder asnOrder = new AsnOrder( -// null, // 缂栧彿 -// null, // PO鍗曞彿 -// null, // PO鍗曟嵁鏍囪瘑 -// null, // 鍗曟嵁绫诲瀷[闈炵┖] -// null, // 涓氬姟绫诲瀷[闈炵┖] -// null, // 閫佽揣鏁伴噺[闈炵┖] -// null, // 宸叉敹鏁伴噺[闈炵┖] -// null, // 鐗╂祦鍗曞彿 -// null, // 棰勮鍒拌揪鏃堕棿 -// null, // 閲婃斁鐘舵�乕闈炵┖] -// null, // 鍚嶇О -// null, // 鐘舵�乕闈炵┖] -// null, // 鏄惁鍒犻櫎[闈炵┖] -// null, // 绉熸埛 -// null, // 娣诲姞浜哄憳 -// null, // 娣诲姞鏃堕棿[闈炵┖] -// null, // 淇敼浜哄憳 -// null, // 淇敼鏃堕棿[闈炵┖] -// null // 澶囨敞 -// ); + public String getExceStatus$() { + if (Cools.isEmpty(this.exceStatus)){ + return ""; + } + DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); + DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>() + .eq(DictData::getDictTypeCode, DictTypeCode.DICT_ASN_EXCE_STATUS) + .eq(DictData::getValue, this.exceStatus)); + if (Objects.isNull(dictData)) { + return null; + } + return dictData.getLabel(); + } + + public String getType$(){ + if (Cools.isEmpty(this.type)){ + return ""; + } + DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); + DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_ORDER_TYPE).eq(DictData::getValue, this.type)); + if (Objects.isNull(dictData)) { + return null; + } + return dictData.getLabel(); + } + + public String getWkType$(){ + if (Cools.isEmpty(this.wkType)){ + return ""; + } + DictDataService dictDataService = SpringUtils.getBean(DictDataService.class); + DictData dictData = dictDataService.getOne(new LambdaQueryWrapper<DictData>().eq(DictData::getDictTypeCode, DictTypeCode.DICT_SYS_BUSINESS_TYPE).eq(DictData::getValue, this.wkType)); + if (Objects.isNull(dictData)) { + return null; + } + return dictData.getLabel(); + } + public String getArrTime$(){ if (Cools.isEmpty(this.arrTime)){ -- Gitblit v1.9.1