|  | @@ -166,7 +166,7 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
 | 
	
		
			
				|  |  |              query.between("create_time", tMonitoringRetrievalPlan.getParams().get("beginTime"), tMonitoringRetrievalPlan.getParams().get("endTime"));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          query.orderByAsc(PARENT_ID);
 | 
	
		
			
				|  |  | -        query.orderByDesc("create_time");
 | 
	
		
			
				|  |  | +        query.orderByDesc("update_time");
 | 
	
		
			
				|  |  |          //获取数据
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          page = tMonitoringRetrievalPlanMapper.selectPageList(page, tMonitoringRetrievalPlan, SecurityUtils.getLoginUser().getOrgId());
 | 
	
	
		
			
				|  | @@ -1285,6 +1285,8 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          TMonitoringRetrievalPlan tMonitoringRetrievalPlan = new TMonitoringRetrievalPlan();
 | 
	
		
			
				|  |  |          BeanUtils.copyProperties(tMonitoringRetrievalPlanDto, tMonitoringRetrievalPlan);
 | 
	
		
			
				|  |  | +        tMonitoringRetrievalPlan.setCreateTime(DateUtils.getNowDate());
 | 
	
		
			
				|  |  | +        tMonitoringRetrievalPlan.setUpdateTime(DateUtils.getNowDate());
 | 
	
		
			
				|  |  |          int result = insertTMonitoringRetrievalPlan(tMonitoringRetrievalPlan);
 | 
	
		
			
				|  |  |          batchSavePlanToExecOrg(tMonitoringRetrievalPlanDto.getPlanExecOrgIdList(), tMonitoringRetrievalPlan.getId());
 | 
	
		
			
				|  |  |          return result;
 | 
	
	
		
			
				|  | @@ -1434,6 +1436,7 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
 | 
	
		
			
				|  |  |                  SysRole sysRole = remoteRoleService.getRoleById(newPlan.getRoleId(), SecurityConstants.INNER);
 | 
	
		
			
				|  |  |                  newPlan.setRoleName(sysRole.getRoleName());
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            newPlan.setUpdateTime(DateUtils.getNowDate());
 | 
	
		
			
				|  |  |              BeanUtils.copyProperties(newPlan, oldPlan);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              // 草稿状态 下的计划不存在任务和子计划  直接修改
 |