From 3244b550596e0330031b3f4547356927df83b0ad Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期一, 19 五月 2025 11:48:35 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/iotda/controller/SendMessageController.java |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/iotda/controller/SendMessageController.java b/ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/iotda/controller/SendMessageController.java
index 53b62e4..34414fd 100644
--- a/ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/iotda/controller/SendMessageController.java
+++ b/ruoyi-service/ruoyi-integration/src/main/java/com/ruoyi/integration/iotda/controller/SendMessageController.java
@@ -1,5 +1,6 @@
 package com.ruoyi.integration.iotda.controller;
 
+import com.alibaba.fastjson.JSON;
 import com.ruoyi.integration.api.model.*;
 import com.ruoyi.integration.iotda.enums.ServiceIdMenu;
 import com.ruoyi.integration.iotda.utils.produce.IotMessageProduce;
@@ -116,10 +117,10 @@
      * @param confirmTransactionRecord 实体对象
      * @return
      */
-    @PostMapping("/confirmTransactionRecord")
-    public String confirmTransactionRecord(@RequestBody ConfirmTransactionRecord confirmTransactionRecord){
-        return  iotMessageProduce.sendMessage(confirmTransactionRecord.getTransaction_serial_number(), ServiceIdMenu.CONFIRM_TRANSACTION_RECORD.getKey(),messageUtil.confirmTransactionRecord(confirmTransactionRecord));
-    }
+//    @PostMapping("/confirmTransactionRecord")
+//    public String confirmTransactionRecord(@RequestBody ConfirmTransactionRecord confirmTransactionRecord){
+//        return  iotMessageProduce.sendMessage(confirmTransactionRecord.getTransaction_serial_number(), ServiceIdMenu.CONFIRM_TRANSACTION_RECORD.getKey(),messageUtil.confirmTransactionRecord(confirmTransactionRecord));
+//    }
 
     /**
      * 远程账户余额更新
@@ -228,5 +229,15 @@
     public String platformRemoteUpdate(@RequestBody PlatformRemoteUpdate platformRemoteUpdate){
         return  iotMessageProduce.sendMessage(platformRemoteUpdate.getCharging_pile_code(), ServiceIdMenu.PLATFORM_REMOTE_UPDATE.getKey(),messageUtil.platformRemoteUpdate(platformRemoteUpdate));
     }
+    /**
+     * 二维码下发
+     * @param qrCodeDelivery 实体对象
+     * @return
+     */
+    @PostMapping("/qrCodeDelivery")
+    public String qrCodeDelivery(@RequestBody QrCodeDelivery qrCodeDelivery){
+        log.info("二维码下发:{}", JSON.toJSONString(qrCodeDelivery));
+        return  iotMessageProduce.sendMessage(qrCodeDelivery.getCharging_pile_code(), ServiceIdMenu.QR_CODE_DELIVERY.getKey(),messageUtil.qrCodeDelivery(qrCodeDelivery));
+    }
 
 }

--
Gitblit v1.7.1