|
|
@@ -1069,39 +1069,16 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonResult studentAccommodationPage(int currentPage, int pageCount, Integer schoolId, Integer buildId, Integer dormitoryId, Integer collegeId, Integer majorId, Integer classstrId, String name,Integer accountId) {
|
|
|
+ public CommonResult studentAccommodationPage(int currentPage, int pageCount, Integer schoolId, Integer buildId, Integer dormitoryId, Integer collegeId, Integer majorId, Integer classstrId, String name) {
|
|
|
// 当学院为空
|
|
|
- PageUtils<WelcomeBed> result=null;
|
|
|
- if (ObjectUtils.isEmpty(collegeId)) {
|
|
|
- String collegeIds = "";
|
|
|
- WelcomeAccount account = welcomeAccountService.getById(accountId);
|
|
|
- if (ObjectUtils.isEmpty(account)) {
|
|
|
- return CommonResult.fail("当前账号不存在,请重新登入");
|
|
|
- }
|
|
|
- collegeIds = account.getCollegeId();
|
|
|
- result = welcomeBedService.studentAccommodationPageS(currentPage, pageCount, schoolId, buildId, dormitoryId,collegeIds, majorId, classstrId,name);
|
|
|
- }else {
|
|
|
- result = welcomeBedService.studentAccommodationPage(currentPage, pageCount, schoolId, buildId, dormitoryId,collegeId, majorId, classstrId,name);
|
|
|
- }
|
|
|
+ PageUtils<WelcomeBed> result = welcomeBedService.studentAccommodationPage(currentPage, pageCount, schoolId, buildId, dormitoryId,collegeId, majorId, classstrId,name);
|
|
|
return CommonResult.ok(result);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void studentAccommodationListExport(HttpServletResponse response, Integer schoolId, Integer buildId, Integer dormitoryId, Integer collegeId, Integer majorId, Integer classstrId, String name,Integer accountId) {
|
|
|
+ public void studentAccommodationListExport(HttpServletResponse response, Integer schoolId, Integer buildId, Integer dormitoryId, Integer collegeId, Integer majorId, Integer classstrId, String name) {
|
|
|
// 当学院为空
|
|
|
- List<WelcomeBed> result=null;
|
|
|
- if (ObjectUtils.isEmpty(collegeId)) {
|
|
|
- String collegeIds = "";
|
|
|
- WelcomeAccount account = welcomeAccountService.getById(accountId);
|
|
|
- if (ObjectUtils.isEmpty(account)) {
|
|
|
- throw new RuntimeException("当前账号不存在,请重新登入");
|
|
|
- }
|
|
|
- collegeIds = account.getCollegeId();
|
|
|
- result =welcomeBedService.studentAccommodationListS( schoolId, buildId, dormitoryId,collegeIds, majorId, classstrId,name);
|
|
|
- }else {
|
|
|
- result = welcomeBedService.studentAccommodationList( schoolId, buildId, dormitoryId,collegeId, majorId, classstrId,name);
|
|
|
- }
|
|
|
-
|
|
|
+ List<WelcomeBed> result = welcomeBedService.studentAccommodationList( schoolId, buildId, dormitoryId,collegeId, majorId, classstrId,name);
|
|
|
|
|
|
//导出
|
|
|
Workbook workbook = new XSSFWorkbook();
|