From 4240cf25c0d08b55f0c5853226dfdf58c759a499 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 3 Jan 2025 14:24:49 +0800 Subject: [PATCH 1/3] =?UTF-8?q?[fix]=20=E5=B7=A5=E7=A8=8B=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20=E5=94=AE=E5=90=8E=E7=AE=A1=E7=90=86=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=B7=BB=E5=8A=A0Bom=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E7=89=A9=E6=96=99=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20=E4=BF=AE=E5=A4=8D=E5=94=AE?= =?UTF-8?q?=E5=90=8E=E5=87=BA=E5=BA=93=E7=A1=AE=E8=AE=A4=E9=AA=8C=E6=94=B6?= =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=E5=94=AE=E5=90=8E=E7=BB=B4=E6=8A=A4=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E5=AD=90=E8=A1=A8=E7=9A=84=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=92=8C=E4=BF=AE=E6=94=B9=E6=96=B9=E6=B3=95=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E7=9A=84=E8=AE=BE=E5=A4=87id=E5=92=8Csn?= =?UTF-8?q?=E5=8F=B7=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/AftersalesOutOrderServiceImpl.java | 4 ++-- .../mapper/system/SysSalesShippingInformDetailMapper.xml | 8 -------- .../src/main/resources/templates/erp/material/select.html | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesOutOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesOutOrderServiceImpl.java index 014d49d2..55fb5fc1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesOutOrderServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesOutOrderServiceImpl.java @@ -780,13 +780,13 @@ public class AftersalesOutOrderServiceImpl implements IAftersalesOutOrderService } private void confirmCheckUpdateSalesOrderChild(List shippingInformDetailList, SysSalesShippingInform sysSalesShippingInform) { - // 根据 shipping_inform_detail_id 分组,并合计每组的 getThisReceivingNum + // 根据 shipping_inform_detail_id 分组,并合计每组的 getThisCheckNum Map groupedDetails = shippingInformDetailList.stream() .collect(Collectors.toMap( SysSalesShippingInformDetail::getShippingInformDetailId, Function.identity(), (existing, replacement) -> { - existing.setThisReceivingNum(existing.getThisReceivingNum() + replacement.getThisReceivingNum()); + existing.setThisReceivingNum(existing.getThisCheckNum() + replacement.getThisCheckNum()); return existing; }, LinkedHashMap::new // 保持插入顺序 diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformDetailMapper.xml index 1aef07ac..c98d6f70 100644 --- a/ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformDetailMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformDetailMapper.xml @@ -97,8 +97,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" has_complete_num, this_receiving_num, has_receiving_num, - sn_code, - shipping_device_id, shared_stock_allocated_num, fixed_stock_allocated_num, create_time, @@ -130,8 +128,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{hasCompleteNum}, #{thisReceivingNum}, #{hasReceivingNum}, - #{snCode}, - #{shippingDeviceId}, #{sharedStockAllocatedNum}, #{fixedStockAllocatedNum}, #{createTime}, @@ -167,8 +163,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" has_complete_num = #{hasCompleteNum}, this_receiving_num = #{thisReceivingNum}, has_receiving_num = #{hasReceivingNum}, - sn_code = #{snCode}, - shipping_device_id = #{shippingDeviceId}, shared_stock_allocated_num = #{sharedStockAllocatedNum}, fixed_stock_allocated_num = #{fixedStockAllocatedNum}, create_time = #{createTime}, @@ -207,8 +201,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" has_complete_num = #{hasCompleteNum}, this_receiving_num = #{thisReceivingNum}, has_receiving_num = #{hasReceivingNum}, - sn_code = #{snCode}, - shipping_device_id = #{shippingDeviceId}, shared_stock_allocated_num = #{sharedStockAllocatedNum}, fixed_stock_allocated_num = #{fixedStockAllocatedNum}, create_time = #{createTime}, diff --git a/ruoyi-admin/src/main/resources/templates/erp/material/select.html b/ruoyi-admin/src/main/resources/templates/erp/material/select.html index 326683d8..39defb56 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/material/select.html +++ b/ruoyi-admin/src/main/resources/templates/erp/material/select.html @@ -42,7 +42,7 @@ var auditStatusDatas = [[${@dict.getType('auditStatus')}]]; var useStatusDatas = [[${@dict.getType('useStatus')}]]; var processMethodDatas = [[${@dict.getType('processMethod')}]]; - var sysUnitClassDatas = [[${@dict.getType('sysUnitClassDatas')}]]; + var sysUnitClassDatas = [[${@dict.getType('sys_unit_class')}]]; var warehouseDeptDatas = [[${@dict.getType('warehouseDept')}]]; var materialTypeDatas = [[${@category.getChildByCode('materialType')}]]; var prefix = ctx + "erp/material"; From 18ceb374c46b17a7925d7bb19e3c9a187912d32d Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 3 Jan 2025 15:11:06 +0800 Subject: [PATCH 2/3] =?UTF-8?q?[feat]=20=E9=87=87=E8=B4=AD=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20=E9=87=87=E8=B4=AD=E6=8A=A5=E4=BB=B7=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=A1=A8=E3=80=81=E5=AE=9E=E4=BD=93=E7=B1=BB?= =?UTF-8?q?=E3=80=81=E5=89=8D=E7=AB=AF=E6=89=80=E6=9C=89=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E3=80=81mapper.xml=E5=B1=82=E7=9A=84=E6=89=80=E6=9C=89?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=96=B0=E5=A2=9E=E7=89=A9=E6=96=99=E5=9E=8B?= =?UTF-8?q?=E5=8F=B7=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/purchase/domain/PurchaseQuoteChild.java | 15 +++++++++++++++ .../mapper/purchase/PurchaseQuoteChildMapper.xml | 8 ++++++-- .../templates/purchase/purchaseQuote/add.html | 2 ++ .../templates/purchase/purchaseQuote/detail.html | 1 + .../templates/purchase/purchaseQuote/edit.html | 2 ++ .../purchase/purchaseQuote/taskCgjlVerify.html | 1 + .../purchase/purchaseQuote/taskFzjlVerify.html | 1 + .../purchase/purchaseQuote/taskModifyApply.html | 2 ++ 8 files changed, 30 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseQuoteChild.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseQuoteChild.java index d1e987fe..751969ef 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseQuoteChild.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseQuoteChild.java @@ -42,6 +42,11 @@ public class PurchaseQuoteChild extends BaseEntity @Excel(name = "物料的加工方式") private String processMethod; + + /** 物料的型号 */ + @Excel(name = "物料的型号") + private String materialModel; + /** 物料的品牌 */ @Excel(name = "物料的品牌") private String brand; @@ -294,6 +299,15 @@ public class PurchaseQuoteChild extends BaseEntity public String getCorrelationCode() { return correlationCode; } + + public String getMaterialModel() { + return materialModel; + } + + public void setMaterialModel(String materialModel) { + this.materialModel = materialModel; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) @@ -304,6 +318,7 @@ public class PurchaseQuoteChild extends BaseEntity .append("materialName", getMaterialName()) .append("materialType", getMaterialType()) .append("processMethod", getProcessMethod()) + .append("materialModel", getMaterialModel()) .append("brand", getBrand()) .append("photoUrl", getPhotoUrl()) .append("describe", getDescribe()) diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteChildMapper.xml index d0d84d89..a8a70d03 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteChildMapper.xml @@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -34,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select purchase_quote_child_id, purchase_quote_code, material_id, material_code, - material_name, material_type, processMethod, brand, photoUrl, `describe`, tax_rate, usd_rate, + material_name, material_type, processMethod, material_model, brand, photoUrl, `describe`, tax_rate, usd_rate, material_num, material_sole, material_rmb, material_noRmb,supplier_code, supplier_name, create_by, create_time, update_by, update_time, remark, use_status, audit_status, del_flag from purchase_quote_child @@ -42,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"