Browse Source

fix 等级

he2802 3 years ago
parent
commit
7b040f3b86

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/mapper/UserProfileMapper.java

@@ -25,5 +25,5 @@ public interface UserProfileMapper extends BaseMapper<UserProfile> {
     Long selectCountProfile(@Param("userId") Long userId,@Param("goodsId") Long goodsId);
 
     Long selectGrade(@Param("userId") Long userId,@Param("goodsId") Long goodsId);
-    
+
 }

+ 3 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseSectionServiceImpl.java

@@ -196,9 +196,9 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
         String importNo = ServletUtils.getEncoded("IMPORT");
         int i=10;
         int Index = 0;
-        int size = sectionList.size();
+        int size = sectionList.size()+1;
         for (CourseSectionImport sectionImport : sectionList) {
-
+            Index++;
             CourseSectionAddBo bo = new CourseSectionAddBo();
             if(!Validator.isNotEmpty(sectionImport.getName())){
                errorLog+="第"+ (size - Index)+"条:"+"节标题空白。\r\n";
@@ -286,7 +286,7 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
             }
             errorLog = insertByAddBoImport(bo,errorLog,(size - Index));
             i++;
-            Index++;
+
         }
         return errorLog;
     }

+ 5 - 13
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserSubscribeServiceImpl.java

@@ -449,8 +449,10 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
             }
             update.setUpdateTime(DateUtils.getNowTime());
             b = this.updateById(update);
-            if(b&&Validator.isNotEmpty(update.getResult())){
+            if(Validator.isNotEmpty(update.getResult())){
+                System.out.println(userSubscribeVo.getResult()+"考试结果");
                 if(!update.getResult().equals(userSubscribeVo.getResult())){
+                    System.out.println("不相等");
                     //考试结果有变更,发送短信
                     UserSubscribe userSubscribe = BeanUtil.toBean(update, UserSubscribe.class);
                     sendExamPass(userSubscribe);
@@ -1288,18 +1290,6 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
             userSbusciEditBo.setApplyId(applyId);
 
 
-/*            if (!StringUtils.isEmpty(userSubscribeImport.getStudentTypeName())) {
-                if (userSubscribeImport.getStudentTypeName().equals("非补考学员")) {
-                    userSbusciEditBo.setStudentType(1);
-                } else {
-                    userSbusciEditBo.setStudentType(2);
-                }
-            } else {
-                userSubscribeImport.setCause("学员报名类型有误");
-                userSubscribeImports.add(userSubscribeImport);
-                continue;
-            }*/
-
             if (!StringUtils.isEmpty(userSubscribeImport.getApplySiteAddress())) {
                 userSbusciEditBo.setApplySiteAddress(userSubscribeImport.getApplySiteAddress());
             } else {
@@ -1422,11 +1412,13 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
         InformRemindVo informRemindVoPass = informRemindService.queryById(17L);
         InformRemindVo informRemindVo = informRemindService.queryById(18L);
         if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness())) {
+            System.out.println("不相等A");
             Long businessId = 0L;
             for (InformRemindBusinessVo informRemindBusiness : informRemindVo.getInformRemindBusiness()) {
                 businessId += baseMapper.queryBusinessId(bo.getSubscribeId(), informRemindBusiness.getBusinessId());
             }
             if (businessId > 0 &&Validator.isNotEmpty(userSubscribeVo.getResult())) {
+                System.out.println("不相等AC");
                 if (userSubscribeVo.getResult().equals(1)) {
                     if (informRemindVoPass.getWayStatus().equals(1)) {
                         InformUserAddBo informUserAddBo = new InformUserAddBo();