admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/GiveVIPApplyInfoServiceImpl.java
@@ -77,22 +77,22 @@
   @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
@@ -107,8 +107,8 @@
      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, "已经被拒绝");
@@ -188,4 +188,14 @@
                  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);
   }
}