fix 无法报名

This commit is contained in:
lijiarao
2021-09-29 15:41:22 +08:00
parent 1527ed897d
commit 8442a5c856
@@ -263,29 +263,32 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
saveMeetingSituation(payMeetingSituation1); saveMeetingSituation(payMeetingSituation1);
//处理打包 //处理打包
handlePack(payMeetingSituation1); handlePack(payMeetingSituation1);
Integer identity = payMeetingSituation1.getIdentity();
if (meetingType.equals(Integer.parseInt(MeetingCommon.WORKING_GROUP_MEETING))) { //如果是参会人判断是上传了缴费凭证
//工作组以公司为维度 if (identity.equals(MeetingSubitemCommon.CAN_HUI_REN)){
LambdaQueryWrapper<PayWorkingGroupSubItem> wrapper = new LambdaQueryWrapper<>(); if (meetingType.equals(Integer.parseInt(MeetingCommon.WORKING_GROUP_MEETING))) {
wrapper.eq(PayWorkingGroupSubItem::getWorkingGroupId, payMeeting.getWorkingGroupId()); //工作组以公司为维度
wrapper.eq(PayWorkingGroupSubItem::getChargeCompanyId, payMeetingSituation1.getCompanyId()); LambdaQueryWrapper<PayWorkingGroupSubItem> wrapper = new LambdaQueryWrapper<>();
boolean isSubItem = payWorkingGroupSubItemService.count(wrapper) > 0; wrapper.eq(PayWorkingGroupSubItem::getWorkingGroupId, payMeeting.getWorkingGroupId());
judgeSend(payMeeting, payMeetingSituation1, isSubItem); wrapper.eq(PayWorkingGroupSubItem::getChargeCompanyId, payMeetingSituation1.getCompanyId());
boolean isSubItem = payWorkingGroupSubItemService.count(wrapper) > 0;
judgeSend(payMeeting, payMeetingSituation1, isSubItem);
} else if (meetingType.equals(Integer.parseInt(MeetingCommon.COMMITTEE_MEETING))) { } else if (meetingType.equals(Integer.parseInt(MeetingCommon.COMMITTEE_MEETING))) {
//分标委以人为维度 //分标委以人为维度
LambdaQueryWrapper<PayCaseCommitteeSubitem> wrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<PayCaseCommitteeSubitem> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(PayCaseCommitteeSubitem::getCommitteeId, payMeeting.getCaseCommitteeId()); wrapper.eq(PayCaseCommitteeSubitem::getCommitteeId, payMeeting.getCaseCommitteeId());
wrapper.eq(PayCaseCommitteeSubitem::getContactsId, payMeetingSituation1.getCompanyContactId()); wrapper.eq(PayCaseCommitteeSubitem::getContactsId, payMeetingSituation1.getCompanyContactId());
int count = payCaseCommitteeSubitemService.count(wrapper); int count = payCaseCommitteeSubitemService.count(wrapper);
if (count > 0) { if (count > 0) {
payMeetingSituation1.setRegisterCheckResult(MeetingSubitemCommon.SIGNUP_STATUS_0); payMeetingSituation1.setRegisterCheckResult(MeetingSubitemCommon.SIGNUP_STATUS_0);
}
} }
//上传付款凭证发送邮件提醒审批
SendPaymentRecordMessage(payMeetingSituation1, payMeeting);
} }
//上传付款凭证发送邮件提醒审批
SendPaymentRecordMessage(payMeetingSituation1, payMeeting);
} }
/** /**