package com.dy.pipIrrRemote.rtuUpgrage;
|
|
import com.dy.common.softUpgrade.state.UpgradeInfo;
|
import com.dy.common.softUpgrade.state.UpgradeRtu;
|
import com.dy.common.webUtil.BaseResponse;
|
import io.swagger.v3.oas.annotations.Hidden;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.web.bind.annotation.*;
|
|
/**
|
* @Author: liurunyu
|
* @Date: 2024/11/12 9:24
|
* @Description
|
*/
|
@Slf4j
|
@Tag(name = "rtu远程升级任务通信中间件执行情况统计回收", description = "rtu远程升级任务通信中间件执行情况统计回收")
|
@RestController
|
@RequestMapping(path = "rtuUpgradeStateReceiver")
|
public class RtuUpgradeStateReceiverCtrl {
|
/**
|
* rtu远程升级任务通信中间件执行情况统计回收
|
* @param vo 数据
|
* @return 操作结果
|
*/
|
@Hidden //不公开接口,其只有通信中间件调用
|
@PostMapping(path = "/receive")
|
public BaseResponse<Boolean> receive(@RequestBody UpgradeInfo vo){
|
log.info("接收到的RTU远程升级状态数据为:{}",vo.toString());
|
if(vo.ugRtuStateList != null && vo.ugRtuStateList.size() > 0){
|
if(vo.ugRtuStateList.size() < 10){
|
for (UpgradeRtu upgradeRtu : vo.ugRtuStateList) {
|
log.info(upgradeRtu.toString());
|
}
|
}
|
}
|
return null;
|
}
|
}
|