Explorar el Código

抽取专家赋值错误

tags/24080901
WendyYang hace 1 año
padre
commit
99a320a0a1
Se han modificado 2 ficheros con 10 adiciones y 10 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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("已通知");


Cargando…
Cancelar
Guardar