fix 工作组成员修改联系人逻辑后工作组会议发布报错
This commit is contained in:
+11
-23
@@ -52,7 +52,9 @@ import com.jero.modules.oss.entity.OSSFile;
|
|||||||
import com.jero.modules.oss.service.IOSSFileService;
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import com.jero.project.entity.PayWorkingGroup;
|
import com.jero.project.entity.PayWorkingGroup;
|
||||||
import com.jero.project.entity.PayWorkingGroupSubItem;
|
import com.jero.project.entity.PayWorkingGroupSubItem;
|
||||||
|
import com.jero.project.entity.PayWorkingGroupSubItemContacts;
|
||||||
import com.jero.project.service.IPayWorkingGroupService;
|
import com.jero.project.service.IPayWorkingGroupService;
|
||||||
|
import com.jero.project.service.IPayWorkingGroupSubItemContactsService;
|
||||||
import com.jero.project.service.IPayWorkingGroupSubItemService;
|
import com.jero.project.service.IPayWorkingGroupSubItemService;
|
||||||
import com.jero.standards.xuanguan.stablecrosstraining.entity.StableCrossTraining;
|
import com.jero.standards.xuanguan.stablecrosstraining.entity.StableCrossTraining;
|
||||||
import com.jero.standards.xuanguan.stablecrosstraining.service.IStableCrossTrainingService;
|
import com.jero.standards.xuanguan.stablecrosstraining.service.IStableCrossTrainingService;
|
||||||
@@ -125,6 +127,8 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
|
|||||||
private IPayMeetingContactsService meetingContactsService;
|
private IPayMeetingContactsService meetingContactsService;
|
||||||
@Resource
|
@Resource
|
||||||
private PayMeetingContactsMapper meetingContactsMapper;
|
private PayMeetingContactsMapper meetingContactsMapper;
|
||||||
|
@Resource
|
||||||
|
private IPayWorkingGroupSubItemContactsService workingGroupSubItemContactsService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增会议
|
* 新增会议
|
||||||
@@ -568,32 +572,16 @@ public class PayMeetingServiceImpl extends ServiceImpl<PayMeetingMapper, PayMeet
|
|||||||
for (PayWorkingGroupSubItem payWorkingGroupSubItem : payWorkingGroupSubItems) {
|
for (PayWorkingGroupSubItem payWorkingGroupSubItem : payWorkingGroupSubItems) {
|
||||||
workingGroupId = payWorkingGroupSubItem.getWorkingGroupId();
|
workingGroupId = payWorkingGroupSubItem.getWorkingGroupId();
|
||||||
String groupSubItemId = payWorkingGroupSubItem.getId();
|
String groupSubItemId = payWorkingGroupSubItem.getId();
|
||||||
String contactsIdOne = payWorkingGroupSubItem.getContactsIdOne();
|
LambdaQueryWrapper<PayWorkingGroupSubItemContacts> wrapper1 = new LambdaQueryWrapper<>();
|
||||||
if (StringUtils.isNotBlank(contactsIdOne)) {
|
wrapper1.eq(PayWorkingGroupSubItemContacts::getWorkingGroupSubId, groupSubItemId);
|
||||||
contactsIdList.add(contactsIdOne);
|
List<PayWorkingGroupSubItemContacts> groupSubItemContactsList = workingGroupSubItemContactsService.list(wrapper1);
|
||||||
|
for (PayWorkingGroupSubItemContacts payWorkingGroupSubItemContacts : groupSubItemContactsList) {
|
||||||
|
String contactsId = payWorkingGroupSubItemContacts.getContactsId();
|
||||||
|
contactsIdList.add(contactsId);
|
||||||
meetingRemindRecordList.add(
|
meetingRemindRecordList.add(
|
||||||
new PayMeetingRemindRecord()
|
new PayMeetingRemindRecord()
|
||||||
.setSubitemId(groupSubItemId)
|
.setSubitemId(groupSubItemId)
|
||||||
.setContactId(contactsIdOne)
|
.setContactId(contactsId)
|
||||||
);
|
|
||||||
|
|
||||||
}
|
|
||||||
String contactsIdTwo = payWorkingGroupSubItem.getContactsIdTwo();
|
|
||||||
if (StringUtils.isNotBlank(contactsIdTwo)) {
|
|
||||||
contactsIdList.add(contactsIdTwo);
|
|
||||||
meetingRemindRecordList.add(
|
|
||||||
new PayMeetingRemindRecord()
|
|
||||||
.setSubitemId(groupSubItemId)
|
|
||||||
.setContactId(contactsIdTwo)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
String contactsIdThree = payWorkingGroupSubItem.getContactsIdThree();
|
|
||||||
if (StringUtils.isNotBlank(contactsIdThree)) {
|
|
||||||
contactsIdList.add(contactsIdThree);
|
|
||||||
meetingRemindRecordList.add(
|
|
||||||
new PayMeetingRemindRecord()
|
|
||||||
.setSubitemId(groupSubItemId)
|
|
||||||
.setContactId(contactsIdThree)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-10
@@ -62,6 +62,8 @@ import com.jero.payment.entity.PayPaymentRecord;
|
|||||||
import com.jero.payment.service.IPayPaymentRecordService;
|
import com.jero.payment.service.IPayPaymentRecordService;
|
||||||
import com.jero.project.common.PayProjectCommon;
|
import com.jero.project.common.PayProjectCommon;
|
||||||
import com.jero.project.entity.PayWorkingGroupSubItem;
|
import com.jero.project.entity.PayWorkingGroupSubItem;
|
||||||
|
import com.jero.project.entity.PayWorkingGroupSubItemContacts;
|
||||||
|
import com.jero.project.service.IPayWorkingGroupSubItemContactsService;
|
||||||
import com.jero.project.service.IPayWorkingGroupSubItemService;
|
import com.jero.project.service.IPayWorkingGroupSubItemService;
|
||||||
import com.jero.standards.memberinfo.service.IMemberInfoService;
|
import com.jero.standards.memberinfo.service.IMemberInfoService;
|
||||||
import com.jero.temporary.service.IPayCompanyManagementTemporaryService;
|
import com.jero.temporary.service.IPayCompanyManagementTemporaryService;
|
||||||
@@ -138,6 +140,8 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
private IOSSFileService ossFileService;
|
private IOSSFileService ossFileService;
|
||||||
@Resource
|
@Resource
|
||||||
private IPayMeetingContactsService meetingContactsService;
|
private IPayMeetingContactsService meetingContactsService;
|
||||||
|
@Resource
|
||||||
|
private IPayWorkingGroupSubItemContactsService workingGroupSubItemContactsService;
|
||||||
|
|
||||||
|
|
||||||
private static final String[] CAN_MODIFY_LIST =
|
private static final String[] CAN_MODIFY_LIST =
|
||||||
@@ -1215,16 +1219,10 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
|||||||
payMeetingSituation1.setRegisterCheckResult(MeetingSubitemCommon.SIGNUP_STATUS_1);
|
payMeetingSituation1.setRegisterCheckResult(MeetingSubitemCommon.SIGNUP_STATUS_1);
|
||||||
//如果是工作组会议或者分标委会议或理事会会议,判断是否为成员
|
//如果是工作组会议或者分标委会议或理事会会议,判断是否为成员
|
||||||
if (meetingType.equals(MeetingCommon.WORKING_GROUP_MEETING_INT)) {
|
if (meetingType.equals(MeetingCommon.WORKING_GROUP_MEETING_INT)) {
|
||||||
LambdaQueryWrapper<PayWorkingGroupSubItem> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<PayWorkingGroupSubItemContacts> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.eq(PayWorkingGroupSubItem::getWorkingGroupId, payMeeting.getWorkingGroupId());
|
wrapper.eq(PayWorkingGroupSubItemContacts::getWorkingGroupId, payMeeting.getWorkingGroupId());
|
||||||
wrapper.eq(PayWorkingGroupSubItem::getChargeCompanyId, payMeetingSituation1.getCompanyId());
|
wrapper.eq(PayWorkingGroupSubItemContacts::getContactsId, payMeetingSituation1.getCompanyContactId());
|
||||||
wrapper.and(i -> i.eq(PayWorkingGroupSubItem::getContactsIdOne, payMeetingSituation1.getCompanyContactId())
|
int count = workingGroupSubItemContactsService.count(wrapper);
|
||||||
.or()
|
|
||||||
.eq(PayWorkingGroupSubItem::getContactsIdTwo, payMeetingSituation1.getCompanyContactId())
|
|
||||||
.or()
|
|
||||||
.eq(PayWorkingGroupSubItem::getContactsIdThree, payMeetingSituation1.getCompanyContactId())
|
|
||||||
);
|
|
||||||
int count = payWorkingGroupSubItemService.count(wrapper);
|
|
||||||
if (count <= 0) {
|
if (count <= 0) {
|
||||||
payMeetingSituation1.setRegisterCheckResult(MeetingSubitemCommon.SIGNUP_STATUS_0);
|
payMeetingSituation1.setRegisterCheckResult(MeetingSubitemCommon.SIGNUP_STATUS_0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user