From f08d0d681326df42a8bb9a6e57a7819dde1e9cbd Mon Sep 17 00:00:00 2001 From: chengyufei <1932574737@qq.com> Date: Thu, 13 Jul 2023 16:20:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=BB=BB=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/taskType/controller/TaskTypeController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/controller/TaskTypeController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/controller/TaskTypeController.java index 8c57cfc..5048c1f 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/controller/TaskTypeController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/taskType/controller/TaskTypeController.java @@ -60,13 +60,13 @@ public class TaskTypeController extends JeecgController pair = new Pair<>(typeName, id); + Pair pair = new Pair<>(id, typeName); //准备map的value - List list = taskTypeService.query().eq("id", id).list(); + List list = taskTypeService.query().eq("pid", id).list(); List> pairList = new ArrayList<>(); for (TaskType type : list) - pairList.add(new Pair<>(type.getTypeName(), type.getId())); + pairList.add(new Pair<>(type.getId(), type.getTypeName())); //放入数据到map map.put(pair, pairList);