Browse Source

抽取专家赋值错误

tags/24080901
WendyYang 1 year ago
parent
commit
99a320a0a1
2 changed files with 10 additions and 10 deletions
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/builder/ExpertInviteBuilder.java
  2. +9
    -9
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/meeting/builder/ExpertInviteBuilder.java View File

@@ -25,7 +25,7 @@ public class ExpertInviteBuilder {
MeetingExpert expert = new MeetingExpert();
expert.setMeetingId(meetingId);
expert.setMobile(user.getPhoneNo());
expert.setExpertId(user.getId());
expert.setExpertId(user.getUserId());
expert.setExpertName(user.getExpertName());
expert.setRuleId(ruleId);
expert.setInviteType(type.getCode());


+ 9
- 9
pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java View File

@@ -414,16 +414,16 @@ public class MeetingManage {
}
List<Long> expertIds = CollUtils.fieldList(experts, MeetingExpert::getExpertId);
Map<Long, ExpertBasicInfoVO> expertMap = meetingManageHelper.getExpertBasicInfo(expertIds);
Function<MeetingExpert, InviteExpertListItemVO> mapping = sme -> {
ExpertBasicInfoVO expert = expertMap.get(sme.getExpertId());
Function<MeetingExpert, InviteExpertListItemVO> mapping = me -> {
ExpertBasicInfoVO expert = expertMap.get(me.getExpertId());
InviteExpertListItemVO item = BeanUtil.copyProperties(expert, InviteExpertListItemVO.class);
item.setExpertMeetingId(sme.getId());
item.setMeetingId(sme.getMeetingId());
item.setStatus(sme.getStatus());
item.setMobile(sme.getMobile());
item.setNoticeTime(sme.getCreateOn());
item.setRuleId(sme.getRuleId());
if (ExpertAttendStatusEnum.NOTICING.eq(sme.getStatus())) {
item.setExpertMeetingId(me.getId());
item.setMeetingId(me.getMeetingId());
item.setStatus(me.getStatus());
item.setMobile(me.getMobile());
item.setNoticeTime(me.getCreateOn());
item.setRuleId(me.getRuleId());
if (ExpertAttendStatusEnum.NOTICING.eq(me.getStatus())) {
item.setNoticeStatus("通知中");
} else {
item.setNoticeStatus("已通知");


Loading…
Cancel
Save