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