|
|
@@ -129,6 +129,11 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
TMonitoringRetrievalPlanVO tMonitoringRetrievalPlanVO = new TMonitoringRetrievalPlanVO();
|
|
|
TMonitoringRetrievalPlan plan = tMonitoringRetrievalPlanMapper.selectById(id);
|
|
|
BeanUtils.copyProperties(plan, tMonitoringRetrievalPlanVO);
|
|
|
+ tMonitoringRetrievalPlanVO.setParentFrequency(plan.getPlanFrequency());
|
|
|
+ if (null!=plan.getParentId()){
|
|
|
+ TMonitoringRetrievalPlan plan1 = tMonitoringRetrievalPlanMapper.selectById(plan.getParentId());
|
|
|
+ tMonitoringRetrievalPlanVO.setParentFrequency(plan1.getPlanFrequency());
|
|
|
+ }
|
|
|
boolean isEdit = false;
|
|
|
boolean isComplete = false;
|
|
|
if (plan.getParentId() != null) {
|
|
|
@@ -274,12 +279,15 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
for (SysOrg l : list) {
|
|
|
TMonitoringRetrievalPlan tMonitoringRetrievalPlan1 = new TMonitoringRetrievalPlan();
|
|
|
BeanUtils.copyProperties(tMonitoringRetrievalPlan, tMonitoringRetrievalPlan1);
|
|
|
+ //创建机构是顶级的
|
|
|
tMonitoringRetrievalPlan1.setOrgId(l.getId());
|
|
|
tMonitoringRetrievalPlan1.setOrgPath(l.getPath());
|
|
|
tMonitoringRetrievalPlan1.setParentId(id);
|
|
|
tMonitoringRetrievalPlan1.setIsDistribute("1");
|
|
|
tMonitoringRetrievalPlan1.setCreateType(1);
|
|
|
if (!tMonitoringRetrievalPlan.getOrgType().equals("3")) {
|
|
|
+ SysOrg sysOrg = remoteOrgService.selectSysOrgById(tMonitoringRetrievalPlan.getOrgId(), SecurityConstants.INNER);
|
|
|
+ tMonitoringRetrievalPlan1.setOrgName(sysOrg.getShortName());
|
|
|
i = insertTMonitoringRetrievalPlan(tMonitoringRetrievalPlan1);
|
|
|
}
|
|
|
if (tMonitoringRetrievalPlan.getOrgType().equals("3")) {
|
|
|
@@ -626,10 +634,10 @@ public class TMonitoringRetrievalPlanServiceImpl extends ServiceImpl<TMonitoring
|
|
|
} else {
|
|
|
data = remoteOrgService.selectSysOrgById(sysUser.getOrgId(), SecurityConstants.INNER);
|
|
|
}
|
|
|
- tMonitoringRetrievalPlan.setOrgName(data.getShortName());
|
|
|
- if (null == tMonitoringRetrievalPlan.getOrgId()) {
|
|
|
- tMonitoringRetrievalPlan.setOrgId(sysUser.getOrgId());
|
|
|
+ if (null==tMonitoringRetrievalPlan.getOrgName()){
|
|
|
+ tMonitoringRetrievalPlan.setOrgName(data.getShortName());
|
|
|
}
|
|
|
+ tMonitoringRetrievalPlan.setOrgId(data.getId());
|
|
|
tMonitoringRetrievalPlan.setCreateBy(SecurityUtils.getUsername());
|
|
|
tMonitoringRetrievalPlan.setUpdateTime(DateUtils.getNowDate());
|
|
|
tMonitoringRetrievalPlan.setUpdateBy(SecurityUtils.getUsername());
|