计划曲线下发问题处理
This commit is contained in:
@ -163,12 +163,7 @@ public class OrderSendController {
|
|||||||
return DataResult.success(heartbeatResp);
|
return DataResult.success(heartbeatResp);
|
||||||
}
|
}
|
||||||
log.info("指令下发正常开始下发");
|
log.info("指令下发正常开始下发");
|
||||||
List<String> snList = MqttConfigUtil.getSnList();
|
orderSendService.orderIssued(vo);
|
||||||
if(snList.contains(sn)){
|
|
||||||
orderSendService.orderIssued(vo);
|
|
||||||
}else{
|
|
||||||
anotherOrderSendService.orderIssued(vo);
|
|
||||||
}
|
|
||||||
if(vo.getPlanTemId() != null){
|
if(vo.getPlanTemId() != null){
|
||||||
String hourValue ="";
|
String hourValue ="";
|
||||||
String minuteValue ="";
|
String minuteValue ="";
|
||||||
@ -332,14 +327,7 @@ public class OrderSendController {
|
|||||||
// @LogAnnotation(title = "命令下发曲线", action = "命令下发曲线")
|
// @LogAnnotation(title = "命令下发曲线", action = "命令下发曲线")
|
||||||
@TokenIgnore
|
@TokenIgnore
|
||||||
public DataResult<HeartbeatResp> sendPlanPowerOrder(@RequestBody OrderPlanPowerReq vo) {
|
public DataResult<HeartbeatResp> sendPlanPowerOrder(@RequestBody OrderPlanPowerReq vo) {
|
||||||
String sn = vo.getSn();
|
HeartbeatResp heartbeatResp = orderSendService.sendPlanPowerOrder(vo);
|
||||||
List<String> snList = MqttConfigUtil.getSnList();
|
|
||||||
HeartbeatResp heartbeatResp = null;
|
|
||||||
if(snList.contains(sn)){
|
|
||||||
heartbeatResp = orderSendService.sendPlanPowerOrder(vo);
|
|
||||||
}else{
|
|
||||||
heartbeatResp = anotherOrderSendService.sendPlanPowerOrder(vo);
|
|
||||||
}
|
|
||||||
return DataResult.success(heartbeatResp);
|
return DataResult.success(heartbeatResp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user