From bfeca2cd7c418efe1df21d844f36a704794fec54 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 30 八月 2021 12:20:46 +0800 Subject: [PATCH] !84 全量保存或更新之前判断addList长度和updateList长度 Merge pull request !84 from 抓蛙师/dev --- ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestTreeController.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestTreeController.java b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestTreeController.java index 63b1743..c34c77c 100644 --- a/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestTreeController.java +++ b/ruoyi-demo/src/main/java/com/ruoyi/demo/controller/TestTreeController.java @@ -6,6 +6,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.validate.AddGroup; import com.ruoyi.common.core.validate.EditGroup; +import com.ruoyi.common.core.validate.QueryGroup; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.demo.domain.bo.TestTreeBo; @@ -46,7 +47,7 @@ @ApiOperation("鏌ヨ娴嬭瘯鏍戣〃鍒楄〃") @PreAuthorize("@ss.hasPermi('demo:tree:list')") @GetMapping("/list") - public AjaxResult<List<TestTreeVo>> list(@Validated TestTreeBo bo) { + public AjaxResult<List<TestTreeVo>> list(@Validated(QueryGroup.class) TestTreeBo bo) { List<TestTreeVo> list = iTestTreeService.queryList(bo); return AjaxResult.success(list); } -- Gitblit v1.9.3