From bc8750e55ae35a58e3e282198fe47d13e8727023 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 07 四月 2023 16:37:05 +0800
Subject: [PATCH] optimize community publicity

---
 service-common/src/main/java/com/java110/common/cmd/chargeMachine/StopChargeCmd.java |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/service-common/src/main/java/com/java110/common/cmd/chargeMachine/StopChargeCmd.java b/service-common/src/main/java/com/java110/common/cmd/chargeMachine/StopChargeCmd.java
index e13aeca..11701c2 100644
--- a/service-common/src/main/java/com/java110/common/cmd/chargeMachine/StopChargeCmd.java
+++ b/service-common/src/main/java/com/java110/common/cmd/chargeMachine/StopChargeCmd.java
@@ -61,7 +61,6 @@
         Assert.hasKeyAndValue(reqJson, "communityId", "鏈寘鍚皬鍖轰俊鎭�");
         Assert.hasKeyAndValue(reqJson, "machineId", "鏈寘鍚厖鐢垫々");
         Assert.hasKeyAndValue(reqJson, "portId", "鏈寘鍚彃妲�");
-        Assert.hasKeyAndValue(reqJson, "orderId", "鏈寘鍚鍗曞彿");
 
         String userId = context.getReqHeaders().get("user-id");
         Assert.hasLength(userId, "鐢ㄦ埛涓嶅瓨鍦�");
@@ -98,7 +97,6 @@
         chargeMachinePortDto.setPortId(reqJson.getString("portId"));
         List<ChargeMachinePortDto> chargeMachinePortDtos = chargeMachinePortV1InnerServiceSMOImpl.queryChargeMachinePorts(chargeMachinePortDto);
 
-        String orderId = reqJson.getString("orderId");
         //璋冪敤鍏呯數妗╁厖鐢�
         ResultVo resultVo = chargeCoreImpl.stopCharge(chargeMachineDtos.get(0), chargeMachinePortDtos.get(0));
 
@@ -115,10 +113,11 @@
 //        chargeMachineOrderPo.setOrderId(orderId);
 //        chargeMachineOrderV1InnerServiceSMOImpl.updateChargeMachineOrder(chargeMachineOrderPo);
 
-        ChargeMachinePortPo chargeMachinePortPo = new ChargeMachinePortPo();
-        chargeMachinePortPo.setPortId(reqJson.getString("portId"));
-        chargeMachinePortPo.setState(ChargeMachinePortDto.STATE_FREE);
-        chargeMachinePortV1InnerServiceSMOImpl.updateChargeMachinePort(chargeMachinePortPo);
+        //todo  杩欓噷涓嶆搷浣� 浠ヨ澶囬�氱煡涓轰富
+//        ChargeMachinePortPo chargeMachinePortPo = new ChargeMachinePortPo();
+//        chargeMachinePortPo.setPortId(reqJson.getString("portId"));
+//        chargeMachinePortPo.setState(ChargeMachinePortDto.STATE_FREE);
+//        chargeMachinePortV1InnerServiceSMOImpl.updateChargeMachinePort(chargeMachinePortPo);
 
         context.setResponseEntity(ResultVo.createResponseEntity(resultVo));
     }

--
Gitblit v1.8.0