|
|
|
@ -147,18 +147,15 @@ 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); |
|
|
|
|
projectDTO.setSecretKey(req.getSecretKey()); |
|
|
|
|
projectDTO.setListenKind(req.getDataSource()); |
|
|
|
|
projectDTO.setId(req.getCode()); |
|
|
|
|
Result result = projectClient.saveOrUpdate(projectDTO); |
|
|
|
|
logger.info("operational:station:buildStation:" + req.getCode(), JSON.toJSONString(result)); |
|
|
|
|
return result.getCode() == ResultCode.SUCCESS.getCode() && result.isSuccess(); |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
ProjectDTO projectDTO = new ProjectDTO(); |
|
|
|
|
projectDTO.setName(req.getName()); |
|
|
|
|
projectDTO.setSource(1); |
|
|
|
|
projectDTO.setSecretKey(req.getSecretKey()); |
|
|
|
|
projectDTO.setListenKind(req.getDataSource()); |
|
|
|
|
projectDTO.setId(req.getCode()); |
|
|
|
|
Result result = projectClient.saveOrUpdate(projectDTO); |
|
|
|
|
logger.info("operational:station:buildStation:" + req.getCode(), JSON.toJSONString(result)); |
|
|
|
|
return result.getCode() == ResultCode.SUCCESS.getCode() && result.isSuccess(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|