feat():下发钢卷设定值请求到模型程序

This commit is contained in:
Allenxy
2025-01-11 20:54:09 +08:00
parent 58e080264d
commit 383a8019a8

View File

@@ -64,7 +64,7 @@ public class RabbitQueueListener {
String messageId = (String) headers.get("amqp_messageId");
// 处理消息逻辑 todo
if ("someUniqueMessageId".equals(messageId)) {
if ("TOTAL_PRESET_DONE".equalsIgnoreCase(messageId)) {
List<ModSetupResultVO> setup = modSetupResultService.getSetupByCoilid(message);
@@ -74,8 +74,8 @@ public class RabbitQueueListener {
modSetupResultKeyVO.setLists(setup);
//socket
WebSocketUtil.sendMessage(WsTypeEnum.calc_setup_result,JSONUtil.toJsonStr(modSetupResultKeyVO));
} else {
// 默认的处理逻辑
} else if ("TOTAL_PRESET_FAILED".equalsIgnoreCase(messageId)) {
WebSocketUtil.sendMessage(WsTypeEnum.calc_setup_result,JSONUtil.toJsonStr("计算失败"));
}
}