| | |
| | | @RequestParam(required = false) String orderByType, |
| | | @RequestParam Map<String, Object> param) { |
| | | String target = (String) param.get("items"); |
| | | String search = (String) param.get("id"); |
| | | param.remove("items"); |
| | | param.remove("id"); |
| | | |
| | | EntityWrapper<ProjectPlan> wrapper = new EntityWrapper<>(); |
| | | if (target != null && !target.equals("0")){ |
| | | wrapper.eq("item_id",target); |
| | |
| | | } |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | // HashSet<String> excludeItems = new HashSet<>(); |
| | | // excludeItems.add("id"); |
| | | // excludeItems.add("item_id"); |
| | | // excludeItems.add("weight_num"); |
| | | // excludeItems.add("create_time"); |
| | | // excludeItems.add("create_id"); |
| | | // excludeItems.add("modify_time"); |
| | | // excludeItems.add("modify_id"); |
| | | // |
| | | // allLike(ProjectPlan.class,excludeItems,wrapper, (String) param.get("id")); |
| | | wrapper.orderBy("item_id"); |
| | | // if (!Cools.isEmpty(orderByField)) { |
| | | // wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | // } |
| | | |
| | | wrapper.orderBy("item_id"); |
| | | return R.ok(projectPlanService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | |
| | | flows.add(flowsDTO); |
| | | } |
| | | itemsDTO.setNodes(flows); |
| | | itemsDTO.setItems(items); |
| | | itemsDTOs.add(itemsDTO); |
| | | } |
| | | return R.ok().add(itemsDTOs); |