diff --git a/file-center/src/main/java/com/ho/filecenter/controller/OrderSendController.java b/file-center/src/main/java/com/ho/filecenter/controller/OrderSendController.java index a30c56b..9f055eb 100644 --- a/file-center/src/main/java/com/ho/filecenter/controller/OrderSendController.java +++ b/file-center/src/main/java/com/ho/filecenter/controller/OrderSendController.java @@ -163,12 +163,7 @@ public class OrderSendController { return DataResult.success(heartbeatResp); } log.info("指令下发正常开始下发"); - List snList = MqttConfigUtil.getSnList(); - if(snList.contains(sn)){ - orderSendService.orderIssued(vo); - }else{ - anotherOrderSendService.orderIssued(vo); - } + orderSendService.orderIssued(vo); if(vo.getPlanTemId() != null){ String hourValue =""; String minuteValue =""; @@ -332,14 +327,7 @@ public class OrderSendController { // @LogAnnotation(title = "命令下发曲线", action = "命令下发曲线") @TokenIgnore public DataResult sendPlanPowerOrder(@RequestBody OrderPlanPowerReq vo) { - String sn = vo.getSn(); - List snList = MqttConfigUtil.getSnList(); - HeartbeatResp heartbeatResp = null; - if(snList.contains(sn)){ - heartbeatResp = orderSendService.sendPlanPowerOrder(vo); - }else{ - heartbeatResp = anotherOrderSendService.sendPlanPowerOrder(vo); - } + HeartbeatResp heartbeatResp = orderSendService.sendPlanPowerOrder(vo); return DataResult.success(heartbeatResp); }