|
|
@@ -157,6 +157,7 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
SysOrg org = new SysOrg();
|
|
|
org.setType(3);
|
|
|
org.setPath(topOrg.getPath());
|
|
|
+ //查询符合的机构,需求是先把行社加入
|
|
|
List<SysOrg> list = remoteOrgService.listByParentIdAndType(org, SecurityConstants.INNER);
|
|
|
Integer i = ZERO;
|
|
|
List<TMonitoringRetrievalPlan> tMonitoringRetrievalPlans = new ArrayList<>();
|
|
|
@@ -183,6 +184,7 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
monitoringRetrievalPlan.setParentId(tMonitoringRetrievalPlan.getId());
|
|
|
monitoringRetrievalPlan.setIsDistribute("1");
|
|
|
i = tMonitoringRetrievalPlanMapper.insert(monitoringRetrievalPlan);
|
|
|
+ //如果是行社直接新增,如果不是就要查询下面的机构
|
|
|
if (tMonitoringRetrievalPlan.getOrgType().equals("3")) {
|
|
|
tMonitoringRetrievalPlans.add(monitoringRetrievalPlan);
|
|
|
} else {
|
|
|
@@ -210,7 +212,7 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
plan.setDescription(tMonitoringRetrievalPlan.getDescription());
|
|
|
plan.setCreateType(1);
|
|
|
plan.setId(IdWorker.getId());
|
|
|
- plan.setParentId(monitoringRetrievalPlan.getId());
|
|
|
+ plan.setParentId(tMonitoringRetrievalPlan.getId());
|
|
|
plan.setIsDistribute("1");
|
|
|
i = tMonitoringRetrievalPlanMapper.insert(plan);
|
|
|
tMonitoringRetrievalPlans.add(plan);
|
|
|
@@ -361,6 +363,7 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
CoreMonitoringRetrievalTask coreMonitoringRetrievalTask = new CoreMonitoringRetrievalTask();
|
|
|
coreMonitoringRetrievalTask.setPlanId(p.getId());
|
|
|
coreMonitoringRetrievalTask.setStatus("0");
|
|
|
+ //根据计划查询未完成的任务
|
|
|
List<CoreMonitoringRetrievalTask> coreMonitoringRetrievalTasks = iCoreMonitoringRetrievalTaskService.selectCoreMonitoringRetrievalTaskList(coreMonitoringRetrievalTask);
|
|
|
List<Long> collect = coreMonitoringRetrievalTasks.stream().map(CoreMonitoringRetrievalTask::getId).distinct().collect(Collectors.toList());
|
|
|
if (CollectionUtils.isNotEmpty(collect)) {
|
|
|
@@ -369,7 +372,7 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
iCoreMonitoringRetrievalTaskService.deleteCoreMonitoringRetrievalTaskByIds(arr);
|
|
|
}
|
|
|
//删除带调阅任务
|
|
|
- iCoreMonitoringRetrievalTaskService.deleteWaitTaskByPlanId(p.getId());
|
|
|
+ // iCoreMonitoringRetrievalTaskService.deleteWaitTaskByPlanId(p.getId());
|
|
|
p.setIsDeleted(2L);
|
|
|
i = tMonitoringRetrievalPlanMapper.updateTMonitoringRetrievalPlan(p);
|
|
|
if (i < 1) {
|