参数无法识别问题处理

This commit is contained in:
Chopper 2022-09-02 20:02:39 +08:00
parent 9517f0eedf
commit 37cfcde476

View File

@ -63,7 +63,7 @@ public interface StoreFlowStatisticsMapper extends BaseMapper<StoreFlow> {
@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(String storeId, Date startTime, Date endTime);
Long countPayers(@Param("storeId") String storeId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
/**
* 统计付款人数
@ -75,7 +75,7 @@ public interface StoreFlowStatisticsMapper extends BaseMapper<StoreFlow> {
@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(Date startTime, Date endTime);
Long countPayers(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}