From aa7b48d8ad02f7b07fbf475553bfbd661aae80d7 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Thu, 16 May 2024 19:10:01 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E9=87=87=E8=B4=AD:=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SysSupplierController.java | 10 ++++ .../templates/system/supplier/add.html | 59 +++++++++++++++++-- .../templates/system/supplier/supplier.html | 2 +- 3 files changed, 66 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java index b3ae544a..0bd8e730 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSupplierController.java @@ -113,6 +113,14 @@ public class SysSupplierController extends BaseController return prefix + "/edit"; } + @GetMapping("/detail/{supplierId}") + public String detail(@PathVariable("supplierId") Long supplierId, ModelMap mmap) + { + SysSupplier sysSupplier = sysSupplierService.selectSysSupplierById(supplierId); + mmap.put("sysSupplier", sysSupplier); + return prefix + "/detail"; + } + /** * 修改保存供应商资料 */ @@ -199,4 +207,6 @@ public class SysSupplierController extends BaseController public Result getId() throws Exception { return Result.getSuccessResult(sysSupplierService.getId()); } + + } diff --git a/ruoyi-admin/src/main/resources/templates/system/supplier/add.html b/ruoyi-admin/src/main/resources/templates/system/supplier/add.html index 88a365f0..8272a91e 100644 --- a/ruoyi-admin/src/main/resources/templates/system/supplier/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/supplier/add.html @@ -6,7 +6,7 @@ -
+
@@ -253,11 +253,62 @@