update 酒店联系人 非必填
This commit is contained in:
+4
-11
@@ -120,23 +120,16 @@ public class HotelManagementServiceImpl extends ServiceImpl<HotelManagementMappe
|
||||
}
|
||||
|
||||
public void ifEntityIsEmpty(HotelManagement hotelManagement) {
|
||||
if (StringUtils.isBlank(hotelManagement.getHotelName())) {
|
||||
throw new JeroBootException("请核实酒店名称是否存在!");
|
||||
} else {
|
||||
if (hotelManagement.getHotelName().length()>50) {
|
||||
if (StringUtils.isNotBlank(hotelManagement.getHotelName())) {
|
||||
if (hotelManagement.getHotelName().length() > 50) {
|
||||
throw new JeroBootException("酒店名称输入超过限定长度!");
|
||||
}
|
||||
}
|
||||
if (StringUtils.isBlank(hotelManagement.getAddress())) {
|
||||
throw new JeroBootException("请核实酒店地址是否存在!");
|
||||
} else {
|
||||
if (hotelManagement.getAddress().length()>50) {
|
||||
if (StringUtils.isNotBlank(hotelManagement.getAddress())) {
|
||||
if (hotelManagement.getAddress().length() > 50) {
|
||||
throw new JeroBootException("酒店地址输入超过限定长度!");
|
||||
}
|
||||
}
|
||||
if (hotelManagement.getHotelList().isEmpty()) {
|
||||
throw new JeroBootException("请核实酒店联系人/电话是否存在!");
|
||||
}
|
||||
/* if (hotelManagement.getHotelList().isEmpty()) {
|
||||
throw new JeroBootException("请核实酒店联系人/电话是否存在!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user