Browse Source

# 站点所属机构删除错误日志打印

zhongwei
haungxing 2 years ago
parent
commit
8df9104757
  1. 6
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java

6
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java

@ -138,8 +138,10 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn
// 删除所属机构 // 删除所属机构
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())) {
logger.error("hzims-operational:station:removeStation", stationEntity.getRefDept() + "所属机构删除失败,报错信息为:" + dataDelete.getMsg()); R<Void> projectResult = deptClient.deleteDeptById(stationEntity.getRefDept());
deptClient.deleteDeptById(stationEntity.getRefDept()); if(!projectResult.isSuccess()) {
logger.info("hzims-operational:station:removeStation", stationEntity.getRefDept() + "所属机构删除失败,报错信息为:" + projectResult.getMsg());
}
} }
// 删除智能诊断站点 // 删除智能诊断站点
questionClient.deleteStationInfo(stationEntity.getCode()); questionClient.deleteStationInfo(stationEntity.getCode());

Loading…
Cancel
Save