| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.common.charge.IChargeFactoryAdapt; |
| | | import com.java110.common.charge.factory.dingding.DingdingChargeUtils; |
| | | import com.java110.dto.chargeMachine.ChargeMachineDto; |
| | | import com.java110.dto.chargeMachineOrder.NotifyChargeOrderDto; |
| | | import com.java110.dto.chargeMachineOrder.NotifyChargePortDto; |
| | | import com.java110.dto.chargeMachinePort.ChargeMachinePortDto; |
| | | import com.java110.dto.chargeMachine.NotifyChargeOrderDto; |
| | | import com.java110.dto.chargeMachine.NotifyChargePortDto; |
| | | import com.java110.dto.chargeMachine.ChargeMachinePortDto; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | body.put("chargeId", orderId); |
| | | String paramOut = null; |
| | | try { |
| | | paramOut = DingdingChargeUtils.execute("net.equip.charge.slow.run", body.toJSONString(), HttpMethod.GET); |
| | | paramOut = KeHangChargeUtils.execute("net.equip.charge.slow.run", body.toJSONString(), HttpMethod.GET); |
| | | } catch (Exception e) { |
| | | throw new IllegalArgumentException(e.getMessage()); |
| | | } |
| | |
| | | body.put("port", chargeMachinePortDto.getPortCode()); |
| | | String paramOut = null; |
| | | try { |
| | | paramOut = DingdingChargeUtils.execute("net.equip.charge.slow.run.stop", body.toJSONString(), HttpMethod.GET); |
| | | paramOut = KeHangChargeUtils.execute("net.equip.charge.slow.run.stop", body.toJSONString(), HttpMethod.GET); |
| | | } catch (Exception e) { |
| | | throw new IllegalArgumentException(e.getMessage()); |
| | | } |
| | |
| | | body.put("equipCd", chargeMachineDto.getMachineCode()); |
| | | String paramOut = null; |
| | | try { |
| | | paramOut = DingdingChargeUtils.execute("net.equip.charge.slow.port.query", body.toJSONString(), HttpMethod.GET); |
| | | paramOut = KeHangChargeUtils.execute("net.equip.charge.slow.port.query", body.toJSONString(), HttpMethod.GET); |
| | | } catch (Exception e) { |
| | | throw new IllegalArgumentException(e.getMessage()); |
| | | } |
| | |
| | | body.put("equipCd", chargeMachineDto.getMachineCode()); |
| | | String paramOut = null; |
| | | try { |
| | | paramOut = DingdingChargeUtils.execute("net.equip.online.query", body.toJSONString(), HttpMethod.GET); |
| | | paramOut = KeHangChargeUtils.execute("net.equip.online.query", body.toJSONString(), HttpMethod.GET); |
| | | } catch (Exception e) { |
| | | throw new IllegalArgumentException(e.getMessage()); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public void workHeartbeat(ChargeMachineDto chargeMachineDto, String bodyParam) { |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<NotifyChargePortDto> getChargeHeartBeatParam(NotifyChargeOrderDto notifyChargeOrderDto) { |
| | | return null; |
| | | } |