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 @@
  • - + + + + + +
  • - +