| | |
| | | package com.ruoyi.order.api.factory; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | 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.ChargingBillVO; |
| | | import com.ruoyi.order.api.vo.GetChargingOrderByLicensePlate; |
| | | import com.ruoyi.order.api.vo.SettlementTotalVO; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.cloud.openfeign.FallbackFactory; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 充电订单服务降级处理 |
| | |
| | | return R.fail("订单计数:" + throwable.getMessage()); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public R<ChargingBillVO> chargingBillListR(ChargingListQuery dto) { |
| | | return R.fail("查询充电算帐单失败" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<TChargingOrder> orderDetail(Long orderId) { |
| | | return R.fail("订单详情:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<List<TChargingOrder>> getList(Integer siteId) { |
| | | return R.fail("根据站点id查询充电订单:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<List<ChargingOrderGroup>> getBySiteIdAndTime(ChargingPercentProvinceDto chargingPercentProvinceDto) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public R<Integer> getChargingCount(TChargingCountQuery req) { |
| | | return R.fail("根据会员id和有效期查询有效期内享受充电折扣次数:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<TChargingOrder> getOrderDetailByGunId(Integer chargingGunId) { |
| | | return R.fail("根据充电枪获取正在充电的订单:" + throwable.getMessage()); |
| | | } |
| | | |
| | | @Override |
| | | public R<Long> getCar() { |
| | | 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()); |
| | | } |
| | | }; |
| | | } |
| | | } |