update 会议发布

This commit is contained in:
lijiarao
2021-12-29 16:56:32 +08:00
parent 4b8020ba3d
commit c4ce3e56e2
@@ -291,6 +291,8 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
String id = payMeetingVO.getId(); String id = payMeetingVO.getId();
if (id != null) { if (id != null) {
wrapper.ne(PayMeeting::getId, id); wrapper.ne(PayMeeting::getId, id);
}else {
payMeetingVO.setIsRelease(MeetingCommon.REMIND_0);
} }
if (count(wrapper) > 0) { if (count(wrapper) > 0) {
throw new JeroBootException("会议名称不能重复"); throw new JeroBootException("会议名称不能重复");
@@ -390,7 +392,6 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
// ValidUtil.validate(hotelContacts, StandardMeeting.class); // ValidUtil.validate(hotelContacts, StandardMeeting.class);
//} //}
BeanUtils.copyProperties(payMeetingVO, payMeeting); BeanUtils.copyProperties(payMeetingVO, payMeeting);
payMeeting.setIsRelease(MeetingCommon.REMIND_0);
return payMeeting; return payMeeting;
} }