|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package org.jeecg.modules.taskSkill.controller; |
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Arrays; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
@ -83,7 +84,38 @@ public class TaskSkillController extends JeecgController<TaskSkill, ITaskSkillSe |
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
List<String> strings = new ArrayList<>(); |
|
|
|
|
if (taskSkill.getTaskId() != null){ |
|
|
|
|
List<Projectx> projectlist = projectxService.list(new QueryWrapper<Projectx>().lambda().like(Projectx::getProjectName, taskSkill.getTaskId())); |
|
|
|
|
List<Modulex> modulelist = modulexService.list(new QueryWrapper<Modulex>().lambda().like(Modulex::getModuleName, taskSkill.getTaskId())); |
|
|
|
|
List<Functionx> functionlist = functionxService.list(new QueryWrapper<Functionx>().lambda().like(Functionx::getFunctionName, taskSkill.getTaskId())); |
|
|
|
|
List<Rulex> rulelist = rulexService.list(new QueryWrapper<Rulex>().lambda().like(Rulex::getRuleCode, taskSkill.getTaskId())); |
|
|
|
|
if (!projectlist.isEmpty()){ |
|
|
|
|
for (Projectx projectx : projectlist){ |
|
|
|
|
strings.add(projectx.getId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (!modulelist.isEmpty()){ |
|
|
|
|
for (Modulex modulex : modulelist){ |
|
|
|
|
strings.add(modulex.getId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (!functionlist.isEmpty()){ |
|
|
|
|
for (Functionx functionx : functionlist){ |
|
|
|
|
strings.add(functionx.getId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (!rulelist.isEmpty()){ |
|
|
|
|
for (Rulex rulex : rulelist){ |
|
|
|
|
strings.add(rulex.getId()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
taskSkill.setTaskId(null); |
|
|
|
|
} |
|
|
|
|
QueryWrapper<TaskSkill> queryWrapper = QueryGenerator.initQueryWrapper(taskSkill, req.getParameterMap()); |
|
|
|
|
if (!strings.isEmpty()){ |
|
|
|
|
queryWrapper.in("task_id",strings); |
|
|
|
|
} |
|
|
|
|
Page<TaskSkill> page = new Page<TaskSkill>(pageNo, pageSize); |
|
|
|
|
IPage<TaskSkill> pageList = taskSkillService.page(page, queryWrapper); |
|
|
|
|
for (TaskSkill taskSkill1 : pageList.getRecords()){ |
|
|
|
|