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);