|
@@ -618,8 +618,11 @@ public class RoomBedServiceImpl extends MPJBaseServiceImpl<RoomBedMapper, RoomBe
|
|
|
roomMapper.updateById(updRoom);
|
|
roomMapper.updateById(updRoom);
|
|
|
}else{
|
|
}else{
|
|
|
Room updRoom = roomMapper.selectById(roomClassCountVo.getId());
|
|
Room updRoom = roomMapper.selectById(roomClassCountVo.getId());
|
|
|
- updRoom.setIsMax(0);
|
|
|
|
|
- roomMapper.updateById(updRoom);
|
|
|
|
|
|
|
+ if(updRoom != null){
|
|
|
|
|
+ updRoom.setIsMax(0);
|
|
|
|
|
+ roomMapper.updateById(updRoom);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|