|
|
@ -153,10 +153,9 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn |
|
|
|
if (saveFlag) { |
|
|
|
if (saveFlag) { |
|
|
|
// 删除数据平台项目
|
|
|
|
// 删除数据平台项目
|
|
|
|
Result dataDelete = projectClient.delete(stationEntity.getCode()); |
|
|
|
Result dataDelete = projectClient.delete(stationEntity.getCode()); |
|
|
|
Assert.isTrue(dataDelete.isSuccess(), () -> { |
|
|
|
if(dataDelete.isSuccess()) { |
|
|
|
logger.error("hzims-operational:station:removeStation", stationEntity.getCode() + "删除失败,报错信息为:" + dataDelete.getMsg()); |
|
|
|
logger.error("hzims-operational:station:removeStation", stationEntity.getCode() + "删除失败,报错信息为:" + dataDelete.getMsg()); |
|
|
|
throw new ServiceException("数据平台删除项目失败!"); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// 删除所属机构
|
|
|
|
// 删除所属机构
|
|
|
|
R<Dept> deptResult = sysClient.getDept(stationEntity.getRefDept()); |
|
|
|
R<Dept> deptResult = sysClient.getDept(stationEntity.getRefDept()); |
|
|
|
if (deptResult.isSuccess() && ObjectUtil.isNotEmpty(deptResult.getData())) { |
|
|
|
if (deptResult.isSuccess() && ObjectUtil.isNotEmpty(deptResult.getData())) { |
|
|
@ -165,8 +164,6 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn |
|
|
|
logger.info("hzims-operational:station:removeStation", stationEntity.getRefDept() + "所属机构删除失败,报错信息为:" + projectResult.getMsg()); |
|
|
|
logger.info("hzims-operational:station:removeStation", stationEntity.getRefDept() + "所属机构删除失败,报错信息为:" + projectResult.getMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 清空
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
new Thread(() -> { |
|
|
|
new Thread(() -> { |
|
|
|
// 删除站点下集中监控属性配置
|
|
|
|
// 删除站点下集中监控属性配置
|
|
|
|