Commit bff41a44 authored by shiyu's avatar shiyu

统计团购人数,只统计付款成功的

parent 4574b71d
......@@ -71,6 +71,7 @@ public class GroupPurchaseRecordDaoImpl implements GroupPurchaseRecordDao {
GroupPurchaseRecordExample.Criteria criteria = example.createCriteria();
JdbcHelper.ifPresent(dto.getItemId(), criteria::andItemIdEqualTo);
JdbcHelper.ifPresent(dto.getUserId(), criteria::andUserIdEqualTo);
criteria.andStateEqualTo(1);
return groupPurchaseRecordMapper.summaryItemNum(example);
}
......@@ -81,6 +82,7 @@ public class GroupPurchaseRecordDaoImpl implements GroupPurchaseRecordDao {
GroupPurchaseRecordExample.Criteria criteria = example.createCriteria();
JdbcHelper.ifPresent(dto.getItemId(), criteria::andItemIdEqualTo);
JdbcHelper.ifPresent(dto.getUserId(), criteria::andUserIdEqualTo);
criteria.andStateEqualTo(1);
return groupPurchaseRecordMapper.selectByExampleSelective(example, GroupPurchaseRecord.Column.userId);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment