Browse Source

去除定时

夏文涛 1 year ago
parent
commit
4f7b10d24c

+ 1 - 1
src/main/java/com/template/MybatisPlusApplication.java

@@ -10,7 +10,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
 @EnableCaching//开启缓存
 @SpringBootApplication
 @EnableTransactionManagement //开启事务回滚
-@EnableScheduling // 开启定时任务
+//@EnableScheduling // 开启定时任务
 //@EnableSwagger2
 public class MybatisPlusApplication {
 

+ 3 - 3
src/main/java/com/template/controller/LoginController.java

@@ -261,10 +261,10 @@ public class LoginController implements LoginControllerAPI {
             student.setSchool(campus);
             student.setSchoolId(campus == null ? 0 : eSchool.stringOf(campus));
             student.setSex(gender == 1 ? "男" : "女");
-            student.setCollege(college);
-            student.setMajor(profession);
+//            student.setCollege(college);
+//            student.setMajor(profession);
             student.setIdenType(idenType);
-            student.setClassstr(classStr);
+            //student.setClassstr(classStr);
             student.setCardId(id_card);//身份证号
 
             int num = welcomeStudentService.updateWelcomeStudent(student);

+ 6 - 0
src/main/java/com/template/controller/WelcomeStudentController.java

@@ -575,6 +575,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
     @Override
     @Transactional(rollbackFor = {Exception.class})
     public CommonResult infoCollection(InfoCollectionRequest icr, BindingResult bindingResult) throws Exception {
+        logger.info("采集学生信息失败,icr参数:" + JSON.toJSON(icr));
         if (bindingResult.hasErrors()) {
             String st = paramUtils.getParamError(bindingResult);
             return CommonResult.fail(st);
@@ -664,6 +665,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
                 System.out.println("信息采集1.1");
                 logger.error("采集学生信息失败,ws参数:" + JSON.toJSON(ws));
                 throw new Exception("采集学生信息失败!");
+                //return CommonResult.fail("采集学生信息失败1");
             }
             System.out.println("信息采集2");
             boolean resultWf = welcomeFamilyService.saveBatch(wfs);
@@ -672,6 +674,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
                 System.out.println("信息采集1.4");
                 logger.error("采集学生信息失败,wfs参数:" + JSON.toJSON(wfs));
                 throw new Exception("采集学生信息失败!");
+                //return CommonResult.fail("采集学生信息失败2");
             }
             System.out.println("信息采集3");
             boolean resultWa = welcomeAccompanyService.saveBatch(was);
@@ -680,13 +683,16 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
                 System.out.println("信息采集1.6");
                 logger.error("采集学生信息失败,was参数:" + JSON.toJSON(was));
                 throw new Exception("采集学生信息失败!");
+                //return CommonResult.fail("采集学生信息失败3");
             }
 
         } catch (Exception e) {
             logger.error(e.getMessage());
             throw new Exception("采集失败!");
+            //return CommonResult.fail("采集学生信息失败4");
         }
 
+        System.out.println("信息采集1.7");
         return CommonResult.ok("采集完成!");
     }