From 69877822d757317e6472c09b82bd6dbc1390a7f4 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Fri, 31 May 2024 14:14:22 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E4=BF=AE=E6=94=B9=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=AD=90=E8=A1=A8=E6=96=B9=E6=B3=95mapper?= =?UTF-8?q?=E5=B1=82SQL=E6=96=B9=E6=B3=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PurchaseQuoteController.java | 6 +- .../mapper/PurchaseQuoteChildMapper.java | 10 +-- .../purchase/PurchasePlanChildMapper.xml | 10 ++- .../purchase/PurchaseQuoteChildMapper.xml | 26 +++---- .../mapper/purchase/PurchaseQuoteMapper.xml | 70 ++++++++++++++----- .../purchaseQuoteChild.html | 12 ++-- 6 files changed, 89 insertions(+), 45 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchaseQuoteController.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchaseQuoteController.java index 3b4a99db..d4cd9cc7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchaseQuoteController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchaseQuoteController.java @@ -89,10 +89,10 @@ public class PurchaseQuoteController extends BaseController /** * 修改采购报价单 */ - @GetMapping("/edit/{purchaseQuoteId}") - public String edit(@PathVariable("purchaseQuoteId") Long purchaseQuoteId, ModelMap mmap) + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) { - PurchaseQuote purchaseQuote = purchaseQuoteService.selectPurchaseQuoteById(purchaseQuoteId); + PurchaseQuote purchaseQuote = purchaseQuoteService.selectPurchaseQuoteById(id); mmap.put("purchaseQuote", purchaseQuote); return prefix + "/edit"; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseQuoteChildMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseQuoteChildMapper.java index 1fc3830f..d4223db0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseQuoteChildMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseQuoteChildMapper.java @@ -25,23 +25,23 @@ public interface PurchaseQuoteChildMapper * @param sysPurchaseQuoteChild 采购报价单物料信息 * @return 采购报价单物料信息集合 */ - public List selectPurchaseQuoteChildList(PurchaseQuoteChild sysPurchaseQuoteChild); + public List selectPurchaseQuoteChildList(PurchaseQuoteChild purchaseQuoteChild); /** * 新增采购报价单物料信息 * - * @param sysPurchaseQuoteChild 采购报价单物料信息 + * @param purchaseQuoteChild 采购报价单物料信息 * @return 结果 */ - public int insertPurchaseQuoteChild(PurchaseQuoteChild sysPurchaseQuoteChild); + public int insertPurchaseQuoteChild(PurchaseQuoteChild purchaseQuoteChild); /** * 修改采购报价单物料信息 * - * @param sysPurchaseQuoteChild 采购报价单物料信息 + * @param purchaseQuoteChild 采购报价单物料信息 * @return 结果 */ - public int updatePurchaseQuoteChild(PurchaseQuoteChild sysPurchaseQuoteChild); + public int updatePurchaseQuoteChild(PurchaseQuoteChild purchaseQuoteChild); /** * 删除采购报价单物料信息 diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchasePlanChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchasePlanChildMapper.xml index 93606865..4d598673 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchasePlanChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchasePlanChildMapper.xml @@ -30,7 +30,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select purchase_plan_child_id, purchase_plan_code, material_id, material_code, material_name, material_type, process_method, brand, photoUrl, describe, material_num, material_sole, material_rmb, material_noRmb, create_by, create_time, update_by, update_time, remark, use_status, audit_status, del_flag from purchase_plan_child + select purchase_plan_child_id, purchase_plan_code, material_id, + material_code, material_name, material_type, process_method, brand, + photoUrl, `describe`, material_num, material_sole, material_rmb, + material_noRmb, create_by, create_time, update_by, update_time, remark, + use_status, audit_status, del_flag from purchase_plan_child - + - + where purchase_quote_child_id = #{purchaseQuoteChildId} - - + + insert into purchase_quote_child purchase_quote_code, @@ -118,7 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + update purchase_quote_child purchase_quote_code = #{purchaseQuoteCode}, @@ -148,22 +148,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where purchase_quote_child_id = #{purchaseQuoteChildId} - + delete from purchase_quote_child where purchase_quote_child_id = #{purchaseQuoteChildId} - + delete from purchase_quote_child where purchase_quote_child_id in #{purchaseQuoteChildId} - + update purchase_quote_child set del_flag = '1' where purchase_quote_child_id = #{purchaseQuoteChildId} - + update purchase_quote_child set del_flag = '0' where purchase_quote_child_id = #{purchaseQuoteChildId} diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteMapper.xml index f7e447ed..74bdbac9 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseQuoteMapper.xml @@ -24,34 +24,70 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + - select purchase_quote_id, purchase_quote_code, purchaseBuyer, supplier_quote_code, supplier_name, tax_rate, material_amount, pricingDate, material_no, first_add_time, update_info_time, material_name, create_by, create_time, update_by, update_time, audit_status, use_status, remark from purchase_quote + select purchase_quote_id, purchase_quote_code, purchaseBuyer, + supplier_quote_code, supplier_name, tax_rate, material_amount, + pricingDate, material_no, first_add_time, update_info_time, + material_name, create_by, create_time, update_by, update_time, + audit_status, use_status, remark from purchase_quote diff --git a/ruoyi-admin/src/main/resources/templates/purchase/purchaseQuoteChild/purchaseQuoteChild.html b/ruoyi-admin/src/main/resources/templates/purchase/purchaseQuoteChild/purchaseQuoteChild.html index 8b3041e1..889f68a1 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchaseQuoteChild/purchaseQuoteChild.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseQuoteChild/purchaseQuoteChild.html @@ -28,13 +28,17 @@
  • - + + + + + +
  • - +