From dacef3363e50e04d1f4b70792e95092f2892a4cc Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 20 三月 2025 10:56:30 +0800
Subject: [PATCH] 充电桩bug修改

---
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/TChargingOrderServiceImpl.java |   37 +++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/TChargingOrderServiceImpl.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/TChargingOrderServiceImpl.java
index 66e4ed3..13328ff 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/TChargingOrderServiceImpl.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/service/impl/TChargingOrderServiceImpl.java
@@ -1287,7 +1287,6 @@
 			endTime2 = split[1];
 		}
 		PageInfo<ChargingOrderVO> pageInfo = new PageInfo<>(dto.getPageCurr(),dto.getPageSize());
-		PageInfo<ChargingOrderVO> pageInfo1 = new PageInfo<>(1,999999999);
 
 		if (StringUtils.hasLength(dto.getPhone())){
 			List<Long> data = appUserClient.getUserIdsByPhone(dto.getPhone()).getData();
@@ -1333,7 +1332,14 @@
 		if (siteIds.isEmpty())siteIds.add(-1);
 		dto.setSiteIds(siteIds);
 		List<ChargingOrderVO> list = this.baseMapper.chargingOrder(pageInfo,dto,startTime1,startTime2,endTime1,endTime2);
-		List<ChargingOrderVO> list1 = this.baseMapper.chargingOrder(pageInfo1,dto,startTime1,startTime2,endTime1,endTime2);
+		List<ChargingOrderVO> list1 = this.baseMapper.chargingOrderNolimit(dto,startTime1,startTime2,endTime1,endTime2);
+		 BigDecimal total = new BigDecimal("0");
+		 long time = 0L;
+		 BigDecimal electronicMoney = new BigDecimal("0");
+		 BigDecimal serviceMoney = new BigDecimal("0");
+		 BigDecimal commissionMoney = new BigDecimal("0");
+		 BigDecimal refundMoney = new BigDecimal("0");
+		 BigDecimal paymentMoney = new BigDecimal("0");
 		List<TChargingOrderAccountingStrategy> list3 = chargingOrderAccountingStrategyService.list();
 
 		for (ChargingOrderVO chargingOrderVO : list) {
@@ -1402,13 +1408,13 @@
 
 		List<TChargingOrderRefund> chargingOrderRefunds = chargingOrderRefundService.lambdaQuery()
 				.eq(TChargingOrderRefund::getRefundStatus,2).list();
-	
-	    BigDecimal total = new BigDecimal("0");
-	    long time = 0L;
-	    BigDecimal electronicMoney = new BigDecimal("0");
-	    BigDecimal serviceMoney = new BigDecimal("0");
-	    BigDecimal refundMoney = new BigDecimal("0");
-	    BigDecimal paymentMoney = new BigDecimal("0");
+
+//	    BigDecimal total = new BigDecimal("0");
+//	    long time = 0L;
+//	    BigDecimal electronicMoney = new BigDecimal("0");
+//	    BigDecimal serviceMoney = new BigDecimal("0");
+//	    BigDecimal refundMoney = new BigDecimal("0");
+//	    BigDecimal paymentMoney = new BigDecimal("0");
 		for (ChargingOrderVO chargingOrderVO : list1) {
 			if(null == chargingOrderVO.getStatus() || 5 != chargingOrderVO.getStatus()){
 				continue;
@@ -1493,8 +1499,8 @@
 	}
 
 	@Override
-	public Map<String, Object> countAll(LocalDateTime sixBefore,List<Integer> siteIds) {
-		return this.baseMapper.countAll(sixBefore,siteIds);
+	public Map<String, Object> countAll(List<Integer> siteIds) {
+		return this.baseMapper.countAll(siteIds);
 	}
 
 	@Override
@@ -2612,10 +2618,7 @@
 		return this.baseMapper.queryPowerLevel(siteIds,statisticsQueryDto);
 	}
 
-	@Override
-	public List<Map<String, Object>> queryOrderCountAndMoneyBySiteIdDate(List<Integer> siteIds) {
-		return this.baseMapper.queryOrderCountAndMoneyBySiteIdDate(siteIds);
-	}
+
 
 	@Override
 	public List<Map<String, Object>> usersDay(ChargingStatisticsQueryDto statisticsQueryDto) {
@@ -2938,9 +2941,7 @@
 
 		// 根据站点id和开始时间和结束时间和归属日期 查询充电订单列表
 		QueryWrapper<TChargingOrder> eq = new QueryWrapper<TChargingOrder>()
-				.eq("site_id", dto.getSiteId())
-				.eq("status", 5)
-				.eq("recharge_payment_status",2);
+				.eq("site_id", dto.getSiteId());
 		switch (dto.getType()){
 			case 1:
 				eq.between("pay_time", localDateTime, localDateTime1);

--
Gitblit v1.7.1