|
@@ -449,7 +449,8 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
return CommonResult.fail("第" + h + "行,不存在该院系");
|
|
return CommonResult.fail("第" + h + "行,不存在该院系");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Optional<WelcomeOrg> omwo = wos.stream().filter(e -> e.getName().equals(major)).findFirst();
|
|
|
|
|
|
|
+// 专业
|
|
|
|
|
+ Optional<WelcomeOrg> omwo = wos.stream().filter(e -> e.getName().equals(major) && e.getParentId().equals(owo.get().getId())).findFirst();
|
|
|
if (omwo != null && omwo.isPresent()) {
|
|
if (omwo != null && omwo.isPresent()) {
|
|
|
bedData.setMajor(major);
|
|
bedData.setMajor(major);
|
|
|
bedData.setMajorId(omwo.get().getId());
|
|
bedData.setMajorId(omwo.get().getId());
|
|
@@ -458,7 +459,8 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
return CommonResult.fail("第" + h + "行,不存在该专业");
|
|
return CommonResult.fail("第" + h + "行,不存在该专业");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Optional<WelcomeOrg> ocwo = wos.stream().filter(e -> e.getName().equals(classstr)).findFirst();
|
|
|
|
|
|
|
+// 班级
|
|
|
|
|
+ Optional<WelcomeOrg> ocwo = wos.stream().filter(e -> e.getName().equals(classstr) && e.getParentId().equals(omwo.get().getId())).findFirst();
|
|
|
if (ocwo != null && ocwo.isPresent()) {
|
|
if (ocwo != null && ocwo.isPresent()) {
|
|
|
bedData.setClassstr(classstr);
|
|
bedData.setClassstr(classstr);
|
|
|
bedData.setClassstrId(ocwo.get().getId());
|
|
bedData.setClassstrId(ocwo.get().getId());
|
|
@@ -642,7 +644,8 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
return CommonResult.fail("第" + h + "行,不存在该院系");
|
|
return CommonResult.fail("第" + h + "行,不存在该院系");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Optional<WelcomeOrg> omwo = wos.stream().filter(e -> e.getName().equals(major)).findFirst();
|
|
|
|
|
|
|
+// 专业
|
|
|
|
|
+ Optional<WelcomeOrg> omwo = wos.stream().filter(e -> e.getName().equals(major) && e.getParentId().equals(owo.get().getId())).findFirst();
|
|
|
if (omwo != null && omwo.isPresent()) {
|
|
if (omwo != null && omwo.isPresent()) {
|
|
|
bedData.setMajor(major);
|
|
bedData.setMajor(major);
|
|
|
bedData.setMajorId(omwo.get().getId());
|
|
bedData.setMajorId(omwo.get().getId());
|
|
@@ -651,7 +654,8 @@ public class WelcomeBedController implements WelcomeBedControllerAPI {
|
|
|
return CommonResult.fail("第" + h + "行,不存在该专业");
|
|
return CommonResult.fail("第" + h + "行,不存在该专业");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Optional<WelcomeOrg> ocwo = wos.stream().filter(e -> e.getName().equals(classstr)).findFirst();
|
|
|
|
|
|
|
+// 班级
|
|
|
|
|
+ Optional<WelcomeOrg> ocwo = wos.stream().filter(e -> e.getName().equals(classstr) && e.getParentId().equals(omwo.get().getId())).findFirst();
|
|
|
if (ocwo != null && ocwo.isPresent()) {
|
|
if (ocwo != null && ocwo.isPresent()) {
|
|
|
bedData.setClassstr(classstr);
|
|
bedData.setClassstr(classstr);
|
|
|
bedData.setClassstrId(ocwo.get().getId());
|
|
bedData.setClassstrId(ocwo.get().getId());
|