特喵的 mybatis bug方法名重复会出现问题,唉服了
This commit is contained in:
parent
37cfcde476
commit
a45f9e7843
@ -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(@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<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(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
Long countPayers(Date startTime, Date endTime);
|
||||
|
||||
|
||||
}
|
@ -163,7 +163,7 @@ public class StoreFlowStatisticsServiceImpl extends ServiceImpl<StoreFlowStatist
|
||||
|
||||
//如果有店铺id传入,则查询店铺
|
||||
if (StringUtils.isNotEmpty(statisticsQueryParam.getStoreId())) {
|
||||
orderOverviewVO.setPaymentsNum(baseMapper.countPayers(statisticsQueryParam.getStoreId(), dates[0], dates[1]));
|
||||
orderOverviewVO.setPaymentsNum(baseMapper.countPayersByStore(statisticsQueryParam.getStoreId(), dates[0], dates[1]));
|
||||
} else {
|
||||
orderOverviewVO.setPaymentsNum(baseMapper.countPayers(dates[0], dates[1]));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user