update 酒店联系人 非必填

This commit is contained in:
lijiarao
2021-12-29 16:41:05 +08:00
parent d761c99974
commit 8178ad05fa
2 changed files with 8 additions and 15 deletions
@@ -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("请核实酒店联系人/电话是否存在!");
}