| | |
| | | @Override |
| | | public long count(LiJinExpendRecord obj) { |
| | | ExpendRecordQuery query = new ExpendRecordQuery(); |
| | | // query.appId = appId; |
| | | // query.uid = uid; |
| | | query.uid = obj.getUid(); |
| | | query.accountId = obj.getAccountId(); |
| | | query.goodsId = obj.getGoodsId(); |
| | | query.money = obj.getMoney(); |
| | | query.title = obj.getTitle(); |
| | | query.rightsId = obj.getRightsId(); |
| | | return liJinExpendRecordMapper.count(query); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public List<LiJinExpendRecord> listByPage(int page, int pageSize, LiJinExpendRecord obj) { |
| | | ExpendRecordQuery query = new ExpendRecordQuery(); |
| | | // query.appId = appId; |
| | | // query.uid = uid; |
| | | // query.drawStateList = Arrays.asList(new Integer[]{LuckyActivityJoinRecord.DRAW_STATE_UNOPEN}); |
| | | query.uid = obj.getUid(); |
| | | query.accountId = obj.getAccountId(); |
| | | query.goodsId = obj.getGoodsId(); |
| | | query.money = obj.getMoney(); |
| | | query.title = obj.getTitle(); |
| | | query.rightsId = obj.getRightsId(); |
| | | query.start = (page - 1) * pageSize; |
| | | query.count = pageSize; |
| | | return liJinExpendRecordMapper.listByPage(query); |