|
|
@@ -184,8 +184,8 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult queryPageStudents(int currentPage, int pageCount, String college, String major, String classstr, String trafficMethod, String name) {
|
|
|
- PageUtils<StudentPageVo> result = welcomeStudentService.queryStudentPageList(currentPage, pageCount, college, major, classstr, trafficMethod, name);
|
|
|
+ public CommonResult queryPageStudents(int currentPage, int pageCount, Integer collegeId, Integer majorId, Integer classstrId, String trafficMethod, String name) {
|
|
|
+ PageUtils<StudentPageVo> result = welcomeStudentService.queryStudentPageList(currentPage, pageCount, collegeId, majorId, classstrId, trafficMethod, name);
|
|
|
return CommonResult.ok(result);
|
|
|
}
|
|
|
|
|
|
@@ -347,7 +347,7 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
ws.setArrive(icr.getArrive());
|
|
|
ws.setArrvieDate(icr.getArrvieDate());
|
|
|
ws.setArriveTimeId(icr.getArriveTimeId());
|
|
|
-
|
|
|
+ ws.setFillStatus("已填报");
|
|
|
//家庭成员
|
|
|
List<WelcomeFamily> wfs = new ArrayList<>();
|
|
|
if(icr.getFvs() != null && icr.getFvs().size() > 0){
|
|
|
@@ -397,5 +397,35 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
|
|
|
|
|
|
return CommonResult.ok("采集完成!");
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = {Exception.class})
|
|
|
+ public CommonResult deleteStudentInfo( int id) throws Exception {
|
|
|
+
|
|
|
+ WelcomeStudent ws = welcomeStudentService.getManageById(id);
|
|
|
+ if(ws == null){
|
|
|
+ return CommonResult.fail("学生信息已失效,无法进行删除操作!");
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ //删除学生数据
|
|
|
+ int deleteStudent = welcomeStudentService.deleteWelcomeStudentById(id);
|
|
|
+ if(deleteStudent <= 0){
|
|
|
+ logger.error("删除学生信息失败,id参数:" + JSON.toJSON(id));
|
|
|
+ throw new Exception("删除学生信息失败!");
|
|
|
+ }
|
|
|
+ //删除宿舍数据
|
|
|
+ int deleteSd = welcomeStudentDormitoryService.deleteWelcomeStudentDormitoryByCard(ws.getCardId());
|
|
|
+ //删除同行人员
|
|
|
+ int deleteWa = welcomeAccompanyService.deleteWelcomeAccompanyByCard(ws.getCardId());
|
|
|
+ //删除家庭成员
|
|
|
+ int deletef = welcomeFamilyService.deleteWelcomeFamilyByCard(ws.getCardId());
|
|
|
+
|
|
|
+ }catch (Exception e){
|
|
|
+ logger.error(e.getMessage());
|
|
|
+ throw new Exception("删除失败!");
|
|
|
+ }
|
|
|
+
|
|
|
+ return CommonResult.ok("删除成功");
|
|
|
+ }
|
|
|
}
|
|
|
|