Bladeren bron

加入测试通用充电协议

Your Name 3 jaren geleden
bovenliggende
commit
dcd72d12a9

+ 8 - 0
service-common/src/main/java/com/java110/common/cmd/chargeMachine/StartChargeCmd.java

@@ -23,6 +23,7 @@ import com.java110.intf.user.IUserV1InnerServiceSMO;
 import com.java110.po.accountDetail.AccountDetailPo;
 import com.java110.po.chargeMachineOrder.ChargeMachineOrderPo;
 import com.java110.po.chargeMachineOrderAcct.ChargeMachineOrderAcctPo;
+import com.java110.po.chargeMachinePort.ChargeMachinePortPo;
 import com.java110.utils.exception.CmdException;
 import com.java110.utils.util.Assert;
 import com.java110.utils.util.DateUtil;
@@ -163,6 +164,13 @@ public class StartChargeCmd extends Cmd {
             return;
         }
 
+        // todo 修改端口状态
+        ChargeMachinePortPo chargeMachinePortPo = new ChargeMachinePortPo();
+        chargeMachinePortPo.setPortId(chargeMachinePortDtos.get(0).getPortId());
+        chargeMachinePortPo.setCommunityId(chargeMachinePortDtos.get(0).getCommunityId());
+        chargeMachinePortPo.setState(ChargeMachinePortDto.STATE_WORKING);
+        chargeMachinePortV1InnerServiceSMOImpl.updateChargeMachinePort(chargeMachinePortPo);
+
         // todo 生成 充电订单
         ChargeMachineOrderPo chargeMachineOrderPo = new ChargeMachineOrderPo();
         chargeMachineOrderPo.setAmount("0");