|
@@ -44,6 +44,8 @@ public class SopServiceImpl extends ServiceImpl<SopMapper, SopDO> implements Sop
|
|
|
private SopGroupService sopGroupService;
|
|
private SopGroupService sopGroupService;
|
|
|
@Resource
|
|
@Resource
|
|
|
private WorkflowModeService workflowModeService;
|
|
private WorkflowModeService workflowModeService;
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private SopExecutionPlanService sopExecutionPlanService;
|
|
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
|
@Override
|
|
@Override
|
|
@@ -218,6 +220,13 @@ public class SopServiceImpl extends ServiceImpl<SopMapper, SopDO> implements Sop
|
|
|
PageResult<SopRespVO> respVOPageResult = new PageResult<>();
|
|
PageResult<SopRespVO> respVOPageResult = new PageResult<>();
|
|
|
respVOPageResult.setList(pageResult.getRecords());
|
|
respVOPageResult.setList(pageResult.getRecords());
|
|
|
respVOPageResult.setTotal(pageResult.getTotal());
|
|
respVOPageResult.setTotal(pageResult.getTotal());
|
|
|
|
|
+ for (SopRespVO record : pageResult.getRecords()) {
|
|
|
|
|
+ SopExecutionPlanDO one = sopExecutionPlanService.getOne(Wrappers.<SopExecutionPlanDO>lambdaQuery()
|
|
|
|
|
+ .eq(SopExecutionPlanDO::getSopId, record.getId()));
|
|
|
|
|
+ if (one != null) {
|
|
|
|
|
+ record.setNextExecutDate(one.getNextExecutDate());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
return respVOPageResult;
|
|
return respVOPageResult;
|
|
|
}
|
|
}
|
|
|
|
|
|