智慧保安后台管理-外网项目备份
Administrator
2021-08-16 767f8e4c5b8bdb9b87c7529fe01220f7fa3671b1
src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
@@ -115,7 +115,7 @@
               user1.setIsApply(1);
               userService.updateById(user1);
            }else {
               if (user1.getIsApply()==2) {
               if (user1.getIsApply()==2 || -1==user.getIsApply()) {
                  Apply apply1 = new Apply();
                  apply1.setApplyStatus(2);
                  //默认为未考试状态
@@ -423,4 +423,14 @@
         trainingRegistrationService.updateById(trainingRegistration);
      }
   }
   /**
    * 查询报名信息,取最新的一条(即当前userId,)applyId最大的一条记录
    * @param userId
    * @return
    */
   @Override
   public Apply getMaxApplyIdByUserIdInfo(Long userId) {
      return baseMapper.getMaxApplyIdByUserIdInfo(userId);
   }
}