add 会议发布

This commit is contained in:
lijiarao
2021-12-29 15:45:46 +08:00
parent 6672f3f8d5
commit 433cb8c232
5 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
ALTER TABLE `pay_meeting`
ADD COLUMN `release` tinyint(1) NULL COMMENT '是否发布' AFTER `remind`;
ADD COLUMN is_release tinyint(1) NULL COMMENT '是否发布' AFTER `remind`;
INSERT INTO sys_dict (id, dict_name, dict_code, description, del_flag, create_by, create_time)
VALUES ('1476073127111663617', '发布状态', 'release', '', 0, 'LKGLZ', '2021-12-29 14:10:32');
@@ -265,7 +265,7 @@ public class PayMeeting implements Serializable {
/**发布状态*/
@ApiModelProperty(value = "发布状态")
@Dict(dicCode = "release")
private Integer release;
private Integer isRelease;
/**收款二维码*/
@ApiModelProperty(value = "收款二维码")
@@ -171,9 +171,8 @@
NULL AS check_result,
NULL AS check_in
FROM pay_meeting pm
WHERE (pm.meeting_type = 2
OR pm.meeting_type = 3
OR pm.meeting_type = 4)
WHERE
pm.is_release = 1
and pm.id not in (SELECT pm.id
FROM pay_meeting pm
LEFT JOIN pay_meeting_situation pms ON pm.id = pms.meeting_id
@@ -390,7 +390,7 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
ValidUtil.validate(hotelContacts, StandardMeeting.class);
}
BeanUtils.copyProperties(payMeetingVO, payMeeting);
payMeeting.setRelease(MeetingCommon.REMIND_0);
payMeeting.setIsRelease(MeetingCommon.REMIND_0);
return payMeeting;
}
@@ -688,17 +688,13 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
}
}
//可报名或者报名状态选择可报名
//可报名或者报名状态选择可报名 1可报名/2已报名
if (Objects.equals(meetingSignUpType, 1 + "")||Objects.equals(signUpStatus,8)) {
//queryWrapper.ne("pms.company_contact_id",contactId);
queryWrapper.ge("register_deadline", now);
queryWrapper.ge("end_time", now);
queryWrapper.and(
b -> b.eq("pm.meeting_type",MeetingCommon.STANDARD_MEETING)
.or()
.eq("pm.meeting_type",MeetingCommon.INTERNATIONAL_MEETING)
.or()
.eq("pm.meeting_type",MeetingCommon.OTHER_MEETING)
b -> b.eq("pm.is_release",MeetingCommon.REMIND_1)
.or()
.eq("pmrr.contact_id", contactId)
);
@@ -1024,6 +1020,6 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
List<String> meetingIds = publishReminderVO.getMeetingIds();
LambdaUpdateWrapper<PayMeeting> wrapper = new LambdaUpdateWrapper<>();
wrapper.in(PayMeeting::getId,meetingIds);
wrapper.set(PayMeeting::getRelease,MeetingCommon.REMIND_1);
wrapper.set(PayMeeting::getIsRelease,MeetingCommon.REMIND_1);
}
}
@@ -270,7 +270,7 @@ public class PayMeetingVO implements Serializable {
/**发布状态*/
@ApiModelProperty(value = "发布状态")
@Dict(dicCode = "release")
private Integer release;
private Integer isRelease;
/**收款二维码*/
@ApiModelProperty(value = "收款二维码")