|
|
@@ -650,7 +650,17 @@ public class RoomBedServiceImpl extends MPJBaseServiceImpl<RoomBedMapper, RoomBe
|
|
|
moreBedMsg += moreBedStudents.get(j);
|
|
|
}
|
|
|
moreBedMsg += "被分配多个床位";
|
|
|
- throw new MyException(boyMsg + ";" + girlMsg + ";" + moreBedMsg);
|
|
|
+ String msg = "";
|
|
|
+ if(!boyStudents.isEmpty()){
|
|
|
+ msg += boyMsg + ";";
|
|
|
+ }
|
|
|
+ if(!girlStudents.isEmpty()){
|
|
|
+ msg += girlMsg + ";";
|
|
|
+ }
|
|
|
+ if(!moreBedStudents.isEmpty()){
|
|
|
+ msg += moreBedMsg + ";";
|
|
|
+ }
|
|
|
+ throw new MyException(msg);
|
|
|
}
|
|
|
return true;
|
|
|
}
|