|
|
@ -12,6 +12,14 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.functionx.entity.Functionx; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.functionx.service.IFunctionxService; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.rulex.entity.Rulex; |
|
|
|
|
|
|
|
import org.jeecg.modules.demo.rulex.service.IRulexService; |
|
|
|
|
|
|
|
import org.jeecg.modules.modulex.entity.Modulex; |
|
|
|
|
|
|
|
import org.jeecg.modules.modulex.service.IModulexService; |
|
|
|
|
|
|
|
import org.jeecg.modules.projectx.entity.Projectx; |
|
|
|
|
|
|
|
import org.jeecg.modules.projectx.service.IProjectxService; |
|
|
|
import org.jeecg.modules.taskSkill.entity.TaskSkill; |
|
|
|
import org.jeecg.modules.taskSkill.entity.TaskSkill; |
|
|
|
import org.jeecg.modules.taskSkill.service.ITaskSkillService; |
|
|
|
import org.jeecg.modules.taskSkill.service.ITaskSkillService; |
|
|
|
|
|
|
|
|
|
|
@ -49,6 +57,15 @@ import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
public class TaskSkillController extends JeecgController<TaskSkill, ITaskSkillService> { |
|
|
|
public class TaskSkillController extends JeecgController<TaskSkill, ITaskSkillService> { |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private ITaskSkillService taskSkillService; |
|
|
|
private ITaskSkillService taskSkillService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IProjectxService projectxService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IModulexService modulexService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IFunctionxService functionxService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private IRulexService rulexService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 分页列表查询 |
|
|
|
* 分页列表查询 |
|
|
@ -69,6 +86,25 @@ public class TaskSkillController extends JeecgController<TaskSkill, ITaskSkillSe |
|
|
|
QueryWrapper<TaskSkill> queryWrapper = QueryGenerator.initQueryWrapper(taskSkill, req.getParameterMap()); |
|
|
|
QueryWrapper<TaskSkill> queryWrapper = QueryGenerator.initQueryWrapper(taskSkill, req.getParameterMap()); |
|
|
|
Page<TaskSkill> page = new Page<TaskSkill>(pageNo, pageSize); |
|
|
|
Page<TaskSkill> page = new Page<TaskSkill>(pageNo, pageSize); |
|
|
|
IPage<TaskSkill> pageList = taskSkillService.page(page, queryWrapper); |
|
|
|
IPage<TaskSkill> pageList = taskSkillService.page(page, queryWrapper); |
|
|
|
|
|
|
|
for (TaskSkill taskSkill1 : pageList.getRecords()){ |
|
|
|
|
|
|
|
// 任务类型 项目0 模块1 功能2 规则3
|
|
|
|
|
|
|
|
if (taskSkill1.getTaskType() == 0){ |
|
|
|
|
|
|
|
Projectx projectx = projectxService.getById(taskSkill1.getTaskId()); |
|
|
|
|
|
|
|
taskSkill1.setTaskId(projectx.getProjectName()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (taskSkill1.getTaskType() == 1){ |
|
|
|
|
|
|
|
Modulex modulex = modulexService.getById(taskSkill1.getTaskId()); |
|
|
|
|
|
|
|
taskSkill1.setTaskId(modulex.getModuleName()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (taskSkill1.getTaskType() == 2){ |
|
|
|
|
|
|
|
Functionx functionx = functionxService.getById(taskSkill1.getTaskId()); |
|
|
|
|
|
|
|
taskSkill1.setTaskId(functionx.getFunctionName()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (taskSkill1.getTaskType() == 3){ |
|
|
|
|
|
|
|
Rulex rulex = rulexService.getById(taskSkill1.getTaskId()); |
|
|
|
|
|
|
|
taskSkill1.setTaskId(rulex.getRuleCode()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return Result.OK(pageList); |
|
|
|
return Result.OK(pageList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|