|
|
@ -113,14 +113,14 @@ public class StationServiceImpl extends ServiceImpl<StationMapper, StationEntity |
|
|
|
// 删除数据平台项目
|
|
|
|
// 删除数据平台项目
|
|
|
|
Result dataDelete = projectClient.delete(stationEntity.getCode()); |
|
|
|
Result dataDelete = projectClient.delete(stationEntity.getCode()); |
|
|
|
if(dataDelete.isSuccess()) { |
|
|
|
if(dataDelete.isSuccess()) { |
|
|
|
log.error("hzims-operational:station:removeStation", stationEntity.getCode() + "删除失败,报错信息为:" + dataDelete.getMsg()); |
|
|
|
log.error("hzims-operational:station:removeStation : {}", stationEntity.getCode() + "删除失败,报错信息为:" + dataDelete.getMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
// 删除所属机构
|
|
|
|
// 删除所属机构
|
|
|
|
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())) { |
|
|
|
R<Void> projectResult = deptClient.deleteDeptById(stationEntity.getRefDept()); |
|
|
|
R<Void> projectResult = deptClient.deleteDeptById(stationEntity.getRefDept()); |
|
|
|
if (!projectResult.isSuccess()) { |
|
|
|
if (!projectResult.isSuccess()) { |
|
|
|
log.info("hzims-operational:station:removeStation", stationEntity.getRefDept() + "所属机构删除失败,报错信息为:" + projectResult.getMsg()); |
|
|
|
log.info("hzims-operational:station:removeStation : {}", stationEntity.getRefDept() + "所属机构删除失败,报错信息为:" + projectResult.getMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -144,6 +144,9 @@ public class StationServiceImpl extends ServiceImpl<StationMapper, StationEntity |
|
|
|
if (StringUtil.isNotBlank(req.getName())) { |
|
|
|
if (StringUtil.isNotBlank(req.getName())) { |
|
|
|
like(StationEntity::getName, "%".concat(req.getName()).concat("%")); |
|
|
|
like(StationEntity::getName, "%".concat(req.getName()).concat("%")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(req.getId())) { |
|
|
|
|
|
|
|
eq(StationEntity::getId, req.getId()); |
|
|
|
|
|
|
|
} |
|
|
|
if (ObjectUtil.isNotEmpty(req.getType())) { |
|
|
|
if (ObjectUtil.isNotEmpty(req.getType())) { |
|
|
|
eq(StationEntity::getType, req.getType()); |
|
|
|
eq(StationEntity::getType, req.getType()); |
|
|
|
} |
|
|
|
} |
|
|
|