无关风月
1 天以前 cbf8b239ab852c52eb9db529333e9beb6add21ac
ruoyi-service/ruoyi-jianguan/src/main/java/com/ruoyi/jianguan/controller/ChargingMessageController.java
@@ -200,16 +200,51 @@
               chuanYiChongSuperviseUtil.notificationStationStatus(new Operator(), jsonObject);
               break;
            case 4:
               tempStatus=3;
               jsonObject.put("StartChargeSeqStat",tempStatus);
               if (startTime!=null){
                  jsonObject.put("StartTime",startTime.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
               }else{
                  LocalDateTime now = LocalDateTime.now();
                  // 转化为yyyy-MM-dd HH:mm:ss格式字符串
                  jsonObject.put("StartTime",now.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
               jsonObject.put("StartChargeSeqStat",4);
               int temp1 = 0;
               //充电枪状态(1=离线,2=空闲,3=占用(未充电),4=占用(充电中),5=占用(已充满),6=占用(预约锁定),7=故障)
               switch (chargingGun2.getStatus()){
                  case 1:
                     temp1 = 0;
                     break;
                  case 2:
                     temp1=1;
                     break;
                  case 3:
                     temp1=2;
                     break;
                  case 4:
                     temp1=3;
                     break;
                  case 5:
                     temp1=4;
                     break;
                  case 6:
                     temp1=4;
                     break;
                  case 7:
                     temp1 = 255;
                     break;
               }
               chuanYiChongSuperviseUtil.notificationStationStatus(new Operator(), jsonObject);
               jsonObject.put("ConnectorStatus",temp1);
               jsonObject.put("CurrentA",chargingOrder.getCurrent());
               jsonObject.put("VoltageA",chargingOrder.getVoltage());
               LocalDateTime startTime3 = chargingOrder.getStartTime();
               if (startTime3!=null){
                  jsonObject.put("StartTime",startTime3.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
               }else{
                  LocalDateTime now1 = LocalDateTime.now();
                  // 转化为yyyy-MM-dd HH:mm:ss格式字符串
                  jsonObject.put("StartTime",now1.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
               }
               LocalDateTime now1 = LocalDateTime.now();
               // 转化为yyyy-MM-dd HH:mm:ss格式字符串
               jsonObject.put("EndTime",now1.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
               jsonObject.put("TotalPower",chargingOrder.getElectricity());
               jsonObject.put("TotalMoney",chargingOrder.getOrderAmount());
               chuanYiChongSuperviseUtil.notificationSupEquipChargeStatus(new Operator(), jsonObject);
               break;
            case 5:
               jsonObject.put("StartChargeSeqStat",4);
@@ -239,11 +274,11 @@
                     break;
               }
               jsonObject.put("ConnectorStatus",temp);
               jsonObject.put("CurrentA",chargingOrder.getCurrent());
               jsonObject.put("VoltageA",chargingOrder.getVoltage());
               LocalDateTime startTime2 = chargingOrder.getStartTime();
               if (startTime2!=null){
                  jsonObject.put("StartTime",startTime2.format(java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
               }else{