Commit a76ab001 authored by chicheng's avatar chicheng

待加工任务排除外协

parent a77cb536
......@@ -139,7 +139,13 @@ public class ProTaskMobController extends BaseController {
if(proTask == null){
proTask = new ProTaskQuery();
}
proTask.setWorkunitIdList(list.stream().map(mdWorkunitVo -> mdWorkunitVo.getWorkunitId()).collect(Collectors.toList()));
proTask.setWorkunitIdList(list.stream()
.map(MdWorkunitVo::getWorkunitId)
.filter(id -> !IMdWorkunitService.OUTSOURCE_WORKUNIT_ID.equals(id))
.collect(Collectors.toList()));
if (proTask.getWorkunitIdList().isEmpty()) {
return getDataTable(new ArrayList<>());
}
List<ProTask> rst = proTaskService.getTaskList(proTask);
return getDataTable(rst);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment