From 58c6720f606cfb775b14d7f3a70eb0c0584caae3 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Mon, 3 Mar 2025 18:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=B1=BB=E5=88=AB=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/customer/controller/CustPsnTypeController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/controller/CustPsnTypeController.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/controller/CustPsnTypeController.java index 94d7d8ba..80c4c90d 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/controller/CustPsnTypeController.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/customer/controller/CustPsnTypeController.java @@ -60,7 +60,9 @@ public class CustPsnTypeController extends BaseController { @DeleteMapping({"/deletePsnTypeById"}) @ApiOperation("根据id删除人员类别") - public AjaxResult deletePsnTypeById(@RequestBody @Valid DeletePsnTypeDTO dto) { + public AjaxResult deletePsnTypeById(@Valid Long id) { + DeletePsnTypeDTO dto = new DeletePsnTypeDTO(); + dto.setId(id); this.custPsnTypeService.deletePsnTypeById(dto); return success(); }