|
|
@@ -846,8 +846,8 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
//如果计划下面的任务都是没完成就删除所有任务,有完成就只修改
|
|
|
TMonitoringRetrievalPlan plan = baseMapper.selectById(tMonitoringRetrievalPlan.getId());
|
|
|
BeanUtils.copyProperties(tMonitoringRetrievalPlan, plan);
|
|
|
- // SysRole sysRole = remoteRoleService.getRoleById(tMonitoringRetrievalPlan.getRoleId(), SecurityConstants.INNER);
|
|
|
- // plan.setRoleName(sysRole.getRoleName());
|
|
|
+ SysRole sysRole = remoteRoleService.getRoleById(tMonitoringRetrievalPlan.getRoleId(), SecurityConstants.INNER);
|
|
|
+ plan.setRoleName(sysRole.getRoleName());
|
|
|
int i = tMonitoringRetrievalPlanMapper.updateById(plan);
|
|
|
iCoreMonitoringRetrievalTaskService.updateComplete(isComplete, tMonitoringRetrievalPlan, plan);
|
|
|
return i;
|