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