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
@@ -331,7 +331,7 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
payMeetingVO.setRemind(MeetingCommon.REMIND_0);
break;
case MeetingCommon.STANDARD_MEETING:
ValidUtil.validate(payMeetingVO, StandardMeeting.class);
//ValidUtil.validate(payMeetingVO, StandardMeeting.class);
//标协会议类型
String tbMeetingType = payMeetingVO.getTbMeetingType();
String standardMeetingType = sysBaseAPI.translateDict("standard_meeting_type", tbMeetingType);
@@ -386,9 +386,9 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
if (hotelContactsList==null){
throw new JeroBootException("酒店信息不能为空");
}
for (PayMeetingHotelContacts hotelContacts : hotelContactsList) {
ValidUtil.validate(hotelContacts, StandardMeeting.class);
}
//for (PayMeetingHotelContacts hotelContacts : hotelContactsList) {
// ValidUtil.validate(hotelContacts, StandardMeeting.class);
//}
BeanUtils.copyProperties(payMeetingVO, payMeeting);
payMeeting.setIsRelease(MeetingCommon.REMIND_0);
return payMeeting;
@@ -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("请核实酒店联系人/电话是否存在!");
}