Преглед на файлове

抽取专家赋值错误

master
WendyYang преди 1 година
родител
ревизия
99a320a0a1
променени са 2 файла, в които са добавени 10 реда и са изтрити 10 реда
  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 Целия файл

@@ -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 Целия файл

@@ -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…
Отказ
Запис