数据同步,新增电站
This commit is contained in:
@@ -19,7 +19,5 @@ public interface UserReportFeignClient {
|
||||
@GetMapping("/updateUserReportStatus")
|
||||
HttpResult<Object> updateUserReportStatus(@RequestParam("businessKey") String businessKey, @RequestParam("status")Integer status);
|
||||
|
||||
@GetMapping("/updateUserStatus")
|
||||
HttpResult<Object> updateUserStatus(String businessKey,Integer userStatus) ;
|
||||
|
||||
}
|
||||
|
||||
@@ -33,11 +33,6 @@ public class UserReportFeignClientFallbackFactory implements FallbackFactory<Use
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Object> updateUserStatus(String businessKey, Integer userStatus) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "更新干扰源用户状态", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,6 +205,7 @@ public class SupervisionDevMainReportPOServiceImpl extends ServiceImpl<Supervisi
|
||||
* @Date: 2024/5/11
|
||||
*/
|
||||
private void checkIp(SupervisionDevMainReportParam supervisionDevMainReportParam, boolean isExcludeSelf) {
|
||||
|
||||
LambdaQueryWrapper<SupervisionTempDeviceReport> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
lambdaQueryWrapper
|
||||
.eq(SupervisionTempDeviceReport::getSubstation,supervisionDevMainReportParam.getSupervisionTempDeviceReportParam().getSubstation())
|
||||
|
||||
@@ -247,8 +247,10 @@ public class SupervisionTempLineDebugPOServiceImpl extends ServiceImpl<Supervisi
|
||||
syncTerminalParam.setSubVoltageParam(subVoltageParam);
|
||||
syncTerminalParam.setLineParam(lineParam);
|
||||
|
||||
terminalBaseClient.terminalSync(syncTerminalParam);
|
||||
String substation = terminalBaseClient.terminalSync(syncTerminalParam).getData();
|
||||
this.updateStatus(id,5);
|
||||
tempDevice.setSubstation(substation);
|
||||
supervisionTempDeviceReportService.updateById(tempDevice);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user