|  |  |  | 
|---|
|  |  |  | import com.ruoyi.common.core.dto.ChargingOrderGroup; | 
|---|
|  |  |  | import com.ruoyi.common.core.dto.ChargingPercentProvinceDto; | 
|---|
|  |  |  | import com.ruoyi.order.api.feignClient.ChargingOrderClient; | 
|---|
|  |  |  | import com.ruoyi.order.api.model.ChargingListQuery; | 
|---|
|  |  |  | import com.ruoyi.order.api.model.TChargingOrder; | 
|---|
|  |  |  | import com.ruoyi.order.api.model.TSettlementConfirm; | 
|---|
|  |  |  | import com.ruoyi.order.api.query.TChargingCountQuery; | 
|---|
|  |  |  | import com.ruoyi.order.api.query.UploadRealTimeMonitoringDataQuery; | 
|---|
|  |  |  | import com.ruoyi.order.api.vo.*; | 
|---|
|  |  |  | import org.slf4j.Logger; | 
|---|
|  |  |  | import org.slf4j.LoggerFactory; | 
|---|
|  |  |  | import org.springframework.cloud.openfeign.FallbackFactory; | 
|---|
|  |  |  | import org.springframework.stereotype.Component; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PathVariable; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return new ChargingOrderClient() { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<String> queryOrderByGunId(String id) { | 
|---|
|  |  |  | return R.fail("远程调用根据枪id 查询最新的订单id 用户后台结束充电" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<Long> useOrderCount(Long userId) { | 
|---|
|  |  |  | return R.fail("订单计数:" + throwable.getMessage()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<ChargingBillVO> chargingBillListR(ChargingListQuery dto) { | 
|---|
|  |  |  | return R.fail("查询充电算帐单失败" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<Long> getCar() { | 
|---|
|  |  |  | public R<Long> getCar(@PathVariable("id")String id) { | 
|---|
|  |  |  | return R.fail("获取用户最近使用车辆充电的车辆id:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void chargeMonitoring(UploadRealTimeMonitoringDataQuery query) { | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<TChargingOrder> getOrderByCode(String code) { | 
|---|
|  |  |  | return R.fail("通过流水号查询订单调用失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void endCharge(String code) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void excelEndCharge(String code) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<TChargingOrder> getChargingOrderByLicensePlate(GetChargingOrderByLicensePlate query) { | 
|---|
|  |  |  | return R.fail("根据车牌号和时间查询有效的充电数据失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<TSettlementConfirm> downloadSettlement(String uid) { | 
|---|
|  |  |  | return R.fail("通过id查询结算确认失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<SettlementTotalVO> settlementTotalR(String time) { | 
|---|
|  |  |  | return R.fail("查询结算汇总表导出列表失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<String> updateChargingOrder(TChargingOrder chargingOrder) { | 
|---|
|  |  |  | return R.fail("修改充电订单失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<String> stopCharging(String id) { | 
|---|
|  |  |  | return R.fail("手动停止充电失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void chargingOrderWXCallback(String out_trade_no, String transaction_id, String attach) { | 
|---|
|  |  |  | log.error("充电支付成功回调通知失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void chargingOrderStartupFailureWxRefund(String out_refund_no, String refund_id, String tradeState, String success_time) { | 
|---|
|  |  |  | log.error("远程启动失败后退款通知失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void shoppingOrderWxRefund(String out_refund_no, String refund_id, String tradeState, String success_time) { | 
|---|
|  |  |  | log.error("购物订单退款回调通知失败:" + throwable.getMessage()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void securityDetection(SecurityDetectionVO securityDetection) { | 
|---|
|  |  |  | log.error("修改安全检测数据失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void startChargeSuccessfully(PlatformStartChargingReplyMessageVO message) { | 
|---|
|  |  |  | log.error("远程启动充电应答失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void terminateSuccessfulResponse(PlatformStopChargingReplyVO platformStopChargingReply) { | 
|---|
|  |  |  | log.error("停止充电应答处理失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void endChargeBillingCharge(TransactionRecordMessageVO vo) { | 
|---|
|  |  |  | log.error("停止充电返回账单后计算费用处理失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public R<List<TChargingOrder>> getChargingOrder(TChargingOrderVo order) { | 
|---|
|  |  |  | return R.fail("获取充电订单数据失败:" + throwable.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|