|
|
@@ -215,12 +215,17 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
// 当学院为空
|
|
|
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();
|
|
|
+ String aClassstrId = account.getCollegeId();
|
|
|
+ String[] split = aClassstrId.split(",");
|
|
|
+ List<String> collegeIds = new ArrayList<>();
|
|
|
+
|
|
|
+ for (String s : split) {
|
|
|
+ collegeIds.add(s);
|
|
|
+ }
|
|
|
result = welcomeBedService.queryPageWelcomeBedsC(currentPage, pageCount, schoolId, buildId, dormitoryId, sex, isCheck, collegeIds, majorId, classstrId,retentionState);
|
|
|
}else {
|
|
|
result = welcomeBedService.queryPageWelcomeBeds(currentPage, pageCount, schoolId, buildId, dormitoryId, sex, isCheck, collegeId, majorId, classstrId,retentionState);
|
|
|
@@ -681,12 +686,17 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
// 当学院为空
|
|
|
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();
|
|
|
+ String aClassstrId = account.getCollegeId();
|
|
|
+ String[] split = aClassstrId.split(",");
|
|
|
+ List<String> collegeIds = new ArrayList<>();
|
|
|
+
|
|
|
+ for (String s : split) {
|
|
|
+ collegeIds.add(s);
|
|
|
+ }
|
|
|
result = welcomeBedService.queryPageWelcomeBedsS(schoolId, buildId, dormitoryId, sex, isCheck, collegeIds, majorId, classstrId,retentionState);
|
|
|
}else {
|
|
|
result = welcomeBedService.queryPageWelcomeBeds(schoolId, buildId, dormitoryId, sex, isCheck, collegeId, majorId, classstrId,retentionState);
|
|
|
@@ -1089,12 +1099,17 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
// 当学院为空
|
|
|
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();
|
|
|
+ String aClassstrId = account.getCollegeId();
|
|
|
+ String[] split = aClassstrId.split(",");
|
|
|
+ List<String> collegeIds = new ArrayList<>();
|
|
|
+
|
|
|
+ for (String s : split) {
|
|
|
+ collegeIds.add(s);
|
|
|
+ }
|
|
|
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);
|
|
|
@@ -1107,12 +1122,17 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
// 当学院为空
|
|
|
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();
|
|
|
+ String aClassstrId = account.getCollegeId();
|
|
|
+ String[] split = aClassstrId.split(",");
|
|
|
+ List<String> collegeIds = new ArrayList<>();
|
|
|
+
|
|
|
+ for (String s : split) {
|
|
|
+ collegeIds.add(s);
|
|
|
+ }
|
|
|
result =welcomeBedService.studentAccommodationListS( schoolId, buildId, dormitoryId,collegeIds, majorId, classstrId,name);
|
|
|
}else {
|
|
|
result = welcomeBedService.studentAccommodationList( schoolId, buildId, dormitoryId,collegeId, majorId, classstrId,name);
|