Ver código fonte

修复会议详情为空

tags/24080901
WendyYang 1 ano atrás
pai
commit
f85672cc0f
2 arquivos alterados com 15 adições e 9 exclusões
  1. +7
    -8
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/helper/MeetingManageHelper.java
  2. +8
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java

+ 7
- 8
pmapi/src/main/java/com/ningdatech/pmapi/meeting/helper/MeetingManageHelper.java Ver arquivo

@@ -10,6 +10,9 @@ import com.ningdatech.pmapi.common.util.BizUtils;
import com.ningdatech.pmapi.common.util.StrUtils;
import com.ningdatech.pmapi.expert.constant.ExpertAccountStatusEnum;
import com.ningdatech.pmapi.expert.entity.ExpertUserFullInfo;
import com.ningdatech.pmapi.expert.model.dto.ExpertDictionaryDTO;
import com.ningdatech.pmapi.expert.model.dto.ExpertFullInfoAllDTO;
import com.ningdatech.pmapi.expert.model.dto.ExpertUserFullInfoDTO;
import com.ningdatech.pmapi.expert.service.ExpertInfoService;
import com.ningdatech.pmapi.expert.service.IExpertUserFullInfoService;
import com.ningdatech.pmapi.meeting.entity.domain.ExpertInviteAvoidRule;
@@ -26,16 +29,14 @@ import com.ningdatech.pmapi.meeting.entity.vo.MeetingByManagerVO;
import com.ningdatech.pmapi.meeting.service.IExpertInviteAvoidRuleService;
import com.ningdatech.pmapi.meeting.service.IExpertInviteRuleService;
import com.ningdatech.pmapi.meeting.service.IMeetingExpertService;
import com.ningdatech.pmapi.meta.constant.DictExpertInfoTypeEnum;
import com.ningdatech.pmapi.meta.helper.DictionaryCache;
import com.ningdatech.pmapi.meta.model.dto.DictionaryDTO;
import lombok.AllArgsConstructor;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Component;

import java.util.Collection;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.*;

/**
* <p>
@@ -152,7 +153,7 @@ public class MeetingManageHelper {
* @author WendyYang
**/
public Map<Long, ExpertBasicInfoVO> getExpertBasicInfo(List<Long> userIds) {
/*List<ExpertFullInfoAllDTO> expertInfos = expertInfoService.listExpertUserFullInfoAll(userIds);
List<ExpertFullInfoAllDTO> expertInfos = expertInfoService.listExpertUserFullInfoAll(userIds);
return CollUtils.listToMap(expertInfos, ExpertFullInfoAllDTO::getUserId, w -> {
ExpertBasicInfoVO basicInfoVo = new ExpertBasicInfoVO();
ExpertUserFullInfoDTO userInfo = w.getExpertUserInfoDTO();
@@ -171,9 +172,7 @@ public class MeetingManageHelper {
}
basicInfoVo.setCompanyType("");
return basicInfoVo;
});*/
// TODO
return null;
});
}

public AvoidRuleDTO getAvoidInfoDto(Long meetingId) {


+ 8
- 1
pmapi/src/main/java/com/ningdatech/pmapi/meeting/manage/MeetingManage.java Ver arquivo

@@ -14,6 +14,7 @@ import com.ningdatech.basic.exception.BizException;
import com.ningdatech.basic.model.IdVo;
import com.ningdatech.basic.model.PageVo;
import com.ningdatech.basic.util.CollUtils;
import com.ningdatech.basic.util.StrPool;
import com.ningdatech.basic.util.ValidUtil;
import com.ningdatech.cache.lock.DistributedLock;
import com.ningdatech.pmapi.common.helper.RegionCacheHelper;
@@ -90,6 +91,12 @@ public class MeetingManage {

private static final String MEETING_CREATE_KEY = "MEETING_CREATE:";

private String getDictName(String dictType){
return Optional.ofNullable(dictionaryCache.getByCode(dictType))
.flatMap(w -> Optional.of(w.getName()))
.orElse(StrPool.EMPTY);
}

/**
* 锁定时间10 * 60秒
*/
@@ -351,7 +358,7 @@ public class MeetingManage {
.meetingName(meeting.getName())
.meetingType(meeting.getType())
.meetingAddress(meeting.getMeetingAddress())
.typeName(dictionaryCache.getByCode(meeting.getType()).getName())
.typeName(getDictName(meeting.getType()))
.startTime(meeting.getStartTime())
.judgesAttendanceTime(meeting.getJudgesAttendanceTime())
.meetingUsageTime(meeting.getMeetingUsageTime())


Carregando…
Cancelar
Salvar