longz
2026-08-04 14ac49d64602ddcf3b5057601e829f29f078b2f2
ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/TChargingOrderService.java
@@ -14,8 +14,12 @@
import com.ruoyi.order.api.vo.*;
import com.ruoyi.order.dto.*;
import com.ruoyi.order.vo.ChargingOrderListInfoVO;
import com.ruoyi.order.vo.ChargingSimulationVO;
import com.ruoyi.order.vo.IcbcAdminSubOrderVO;
import com.ruoyi.order.vo.EndOfChargePageInfo;
import com.ruoyi.order.vo.StatisticsOfBatteryVO;
import com.ruoyi.order.vo.LargeChargingPowerVo;
import com.ruoyi.order.vo.ReservationRecommendationVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@@ -24,6 +28,9 @@
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import com.ruoyi.payment.api.vo.IcbcPaymentResp;
import com.ruoyi.payment.api.vo.IcbcRefundResp;
import com.ruoyi.payment.api.vo.IcbcSubOrderRefundResp;
/**
 * <p>
@@ -34,6 +41,8 @@
 * @since 2024-08-07
 */
public interface TChargingOrderService extends IService<TChargingOrder> {
   ReservationRecommendationVO getReservationRecommendation(Integer siteId);
   
   
   /**
@@ -66,6 +75,20 @@
    * @return
    */
   AjaxResult paymentChargingOrder(AddChargingOrder addChargingOrder);
   AjaxResult confirmIcbcPayment(String orderCode);
   ChargingSimulationVO getCurrentSimulationOrder(Integer gunId);
   ChargingSimulationVO completeSimulation(ChargingSimulationReq request);
   IcbcPaymentResp queryIcbcAdminPayment(String orderCode);
   IcbcRefundResp refundIcbcAdminPayment(IcbcAdminFundOperationReq request);
   List<IcbcAdminSubOrderVO> queryIcbcAdminSubOrders(String orderCode);
   IcbcSubOrderRefundResp refundIcbcAdminSubOrder(IcbcAdminFundOperationReq request);
   
   
   /**
@@ -144,17 +167,30 @@
   TCharingOrderVO chargingOrder(ChargingOrderQuery dto);
   PageInfo<ChargingOrderVO> chargingOrderList(ChargingOrderQuery dto);
   TCharingOrderVO chargingOrderSummary(ChargingOrderQuery dto);
   List<ChargingOrderBalanceIncomeDetailVO> balanceIncomeDetail(ChargingOrderQuery dto);
   R<PageInfo<PayOrderDto>> payOrderQuery(PayOrderQueryDto payOrderQueryDto);
   R<PageInfo<EnterpriseChargingAnalysisVO>> enterpriseChargingAnalysis(EnterpriseChargingAnalysisQuery query);
   R<PageInfo<EnterpriseChargingDetailVO>> enterpriseChargingDetail(EnterpriseChargingAnalysisQuery query);
   List<EnterpriseChargingDetailVO> enterpriseChargingDetailExport(EnterpriseChargingAnalysisQuery query);
    R<PageInfo<TChargingOrderRefund>> getRefundList(ChargingRefundDto chargingRefundDto);
    List<ChargingOrderGroup> chargingOrderGroup(ChargingPercentProvinceDto chargingPercentProvinceDto);
   List<SixChargingDto> charge(LocalDate sixBefore, List<Integer> siteIds);
   List<SixChargingDto> charge(LocalDate sixBefore, List<Integer> siteIds, Boolean partnerView);
   List<SixCircleDto> circle(List<Integer> siteIds,LocalDate sixBefore);
   List<SixCircleDto> circle(List<Integer> siteIds,LocalDate sixBefore, Boolean partnerView);
   Map<String, Object> countAll(List<Integer> siteIds);
   Map<String, Object> countAll(List<Integer> siteIds, Boolean partnerView);
   List<SixIncomeCircleDto> payTypeCircle(LocalDate sixBefore, List<Integer> siteIds, Boolean partnerView);
    List<Map<String, Object>> getSumByType(LocalDate start,LocalDate end,List<Integer> siteIds);
@@ -168,11 +204,21 @@
    ChargingOrderTimeVO chargingList(ChargingListQuery dto);
    PageInfo<ChargingOrderListVO> chargingListPage(ChargingListQuery dto);
    ChargingOrderTimeVO chargingListSummary(ChargingListQuery dto);
   List<ChargingOrderListVO> export(ChargingListQuery dto);
   R payRefund(PayOrderRefundDto payOrderQueryDto);
   R<PayOrderInfoDto> getSpecialRefundOrder(PayOrderRefundDto payOrderQueryDto);
   R specialRefund(PayOrderRefundDto payOrderQueryDto);
   BigDecimal getManualRefundableAmount(Long chargingOrderId);
   ChargingOrderListInfoVO chargingInfo(String uid);
@@ -266,6 +312,30 @@
   List<Map<String, Object>> needElec(List<Integer> siteIds, ChargingStatisticsQueryDto statisticsQueryDto);
    Map<String, Object> getChargingOrderCount(List<Integer> siteIds, String time);
    Map<String, Object> getLargeScreenSummary(List<Integer> siteIds);
    List<SixChargingDto> getLargeScreenIncomeTrend(List<Integer> siteIds, LocalDate sixBefore);
    List<LargeChargingPowerVo> getLargeScreenChargingPower(List<Integer> siteIds, LocalDateTime startTime, LocalDateTime endTime);
    /**
     * 大屏累计充电量(与 /large-screen/summary 同口径: 已结束+已支付订单, 读预聚合表 M 行)
     */
    BigDecimal getLargeScreenTotalCapacity(List<Integer> siteIds);
    /**
     * 重建大屏预聚合表(每日全量: 全部月份切片 + 近90天日切片 + 全局注册用户数)
     */
    void rebuildLargeScreenStat();
    /**
     * 刷新大屏预聚合表(每10分钟: 当月切片 + 今日日切片 + 全局注册用户数)
     */
    void refreshLargeScreenStat();
   List<Map<String, Object>> getHourType(List<Integer> siteIds, ChargingDetailQueryDto statisticsQueryDto);
   List<Map<String, Object>> getDateType(List<Integer> siteIds, ChargingDetailQueryDto statisticsQueryDto);
@@ -335,9 +405,14 @@
   /**
    * 大屏-新能源汽车电池安全检测次数统计
    */
    R<StatisticsOfBatteryVO> getStatisticsOfBattery();
    R<StatisticsOfBatteryVO> getStatisticsOfBattery(List<Integer> siteIds);
   Double getSumDegreeBySiteIds(List<Integer> siteIds);
   /**
    * 查询指定站点中实际发生过充电的用户ID
    */
   List<Long> getAppUserIdsBySiteIds(List<Integer> siteIds);
   
   /**
    * 获取启动失败且时间超过1小时的订单
@@ -387,5 +462,18 @@
    * @param endTime
    * @return
    */
   List<Map<String, Object>> getAccountSettlementStatement(String startTime, String endTime, Integer rechargePaymentType);
   List<Map<String, Object>> getAccountSettlementStatement(String startTime, String endTime);
    /**
     * 手动处理退款数据
     * @param refund_out_trade_no 退款商户单号
     */
    void orderQueryRefund(Long orderId, String refund_out_trade_no);
    /**
     * 手动添加完善订单费用明细
     * @param orderId
     */
    void addOrderExpenseBreakdown(Long orderId);
}