From a45f9e7843d4204f79da3d3eaa06aca07cd58c09 Mon Sep 17 00:00:00 2001 From: Chopper Date: Fri, 2 Sep 2022 20:43:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E5=96=B5=E7=9A=84=20mybatis=20bug?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=90=8D=E9=87=8D=E5=A4=8D=E4=BC=9A=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E9=97=AE=E9=A2=98=EF=BC=8C=E5=94=89=E6=9C=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/statistics/mapper/StoreFlowStatisticsMapper.java | 4 ++-- .../serviceimpl/StoreFlowStatisticsServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/statistics/mapper/StoreFlowStatisticsMapper.java b/framework/src/main/java/cn/lili/modules/statistics/mapper/StoreFlowStatisticsMapper.java index cd793293..19dbc6f7 100644 --- a/framework/src/main/java/cn/lili/modules/statistics/mapper/StoreFlowStatisticsMapper.java +++ b/framework/src/main/java/cn/lili/modules/statistics/mapper/StoreFlowStatisticsMapper.java @@ -63,7 +63,7 @@ public interface StoreFlowStatisticsMapper extends BaseMapper { @Select("SELECT count(0) AS num FROM (SELECT count(0) FROM li_store_flow " + " where store_id = #{storeId} and flow_type='PAY' and create_time >=#{startTime} and create_time < #{endTime}" + " GROUP BY member_id) t") - Long countPayers(@Param("storeId") String storeId, @Param("startTime") Date startTime, @Param("endTime") Date endTime); + Long countPayersByStore(String storeId, Date startTime, Date endTime); /** * 统计付款人数 @@ -75,7 +75,7 @@ public interface StoreFlowStatisticsMapper extends BaseMapper { @Select("SELECT count(0) AS num FROM (SELECT count(0) FROM li_store_flow " + " where flow_type='PAY' and create_time >=#{startTime} and create_time < #{endTime}" + " GROUP BY member_id) t") - Long countPayers(@Param("startTime") Date startTime, @Param("endTime") Date endTime); + Long countPayers(Date startTime, Date endTime); } \ No newline at end of file diff --git a/framework/src/main/java/cn/lili/modules/statistics/serviceimpl/StoreFlowStatisticsServiceImpl.java b/framework/src/main/java/cn/lili/modules/statistics/serviceimpl/StoreFlowStatisticsServiceImpl.java index 56139712..376514cc 100644 --- a/framework/src/main/java/cn/lili/modules/statistics/serviceimpl/StoreFlowStatisticsServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/statistics/serviceimpl/StoreFlowStatisticsServiceImpl.java @@ -163,7 +163,7 @@ public class StoreFlowStatisticsServiceImpl extends ServiceImpl