Browse Source

# 解决站点新增站点报错问题

zhongwei
haungxing 1 year ago
parent
commit
3325fc93a9
  1. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java

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

@ -147,7 +147,6 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn
if (Func.isEmpty(req.getSecretKey()) || Func.isEmpty(req.getDataSource())) {
return true;
}
if (super.updateById(req)) {
ProjectDTO projectDTO = new ProjectDTO();
projectDTO.setName(req.getName());
projectDTO.setSource(1);
@ -158,8 +157,6 @@ public class StationServiceImpl extends BaseServiceImpl<StationMapper, StationEn
logger.info("operational:station:buildStation:" + req.getCode(), JSON.toJSONString(result));
return result.getCode() == ResultCode.SUCCESS.getCode() && result.isSuccess();
}
return false;
}
@Override
@Transactional(rollbackFor = Exception.class)

Loading…
Cancel
Save