| | |
| | |
|
| | | @Override
|
| | | public List<GiveVIPApplyInfo> listByTargetUid(Long uid, int page, int pageSize) {
|
| | | return giveVIPApplyInfoDao.list(uid, null, (page - 1) * pageSize, pageSize);
|
| | | return giveVIPApplyInfoDao.listByTargetUid(uid, null, (page - 1) * pageSize, pageSize);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long countByTargetUid(Long uid) {
|
| | | return giveVIPApplyInfoDao.count(uid, null);
|
| | | return giveVIPApplyInfoDao.countByTargetUid(uid, null);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<GiveVIPApplyInfo> listByStateAndTargetUid(Long targetUid,Integer state, int page, int pageSize) {
|
| | | return giveVIPApplyInfoDao.list(targetUid, state, (page - 1) * pageSize, pageSize);
|
| | | public List<GiveVIPApplyInfo> listByStateAndTargetUid(Long targetUid, Integer state, int page, int pageSize) {
|
| | | return giveVIPApplyInfoDao.listByTargetUid(targetUid, state, (page - 1) * pageSize, pageSize);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long countByStateAndTargetUid(Long targetUid,Integer state) {
|
| | | return giveVIPApplyInfoDao.count(targetUid, state);
|
| | | public long countByStateAndTargetUid(Long targetUid, Integer state) {
|
| | | return giveVIPApplyInfoDao.countByTargetUid(targetUid, state);
|
| | | }
|
| | |
|
| | | @Override
|
| | |
| | | if (info == null)
|
| | | throw new GiveVIPApplyInfoException(1, "记录不存在");
|
| | |
|
| | | // if (info.getState() == GiveVIPApplyInfo.STATE_NO_INFO)
|
| | | // throw new GiveVIPApplyInfoException(2, "用户未提交资料");
|
| | | // if (info.getState() == GiveVIPApplyInfo.STATE_NO_INFO)
|
| | | // throw new GiveVIPApplyInfoException(2, "用户未提交资料");
|
| | |
|
| | | if (info.getState() == GiveVIPApplyInfo.STATE_REJECT)
|
| | | throw new GiveVIPApplyInfoException(3, "已经被拒绝");
|
| | |
| | | info.getLevel().getName(), reason);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<GiveVIPApplyInfo> listBySourceUid(Long uid, int page, int pageSize) {
|
| | | return giveVIPApplyInfoDao.listBySourceUid(uid, null, (page - 1) * pageSize, pageSize);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long countBySourceUid(Long uid) {
|
| | | return giveVIPApplyInfoDao.countBySourceUid(uid, null);
|
| | | }
|
| | |
|
| | | }
|