|
|
@@ -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("采集完成!");
|
|
|
}
|
|
|
|