|
@@ -15,7 +15,6 @@ import com.ningdatech.pmapi.expert.model.cmd.ExpertFullInfoSaveCmd; |
|
|
import com.ningdatech.pmapi.expert.model.cmd.ExpertRecommendProofSaveCmd; |
|
|
import com.ningdatech.pmapi.expert.model.cmd.ExpertRecommendProofSaveCmd; |
|
|
import com.ningdatech.pmapi.expert.model.dto.ExpertDictionaryDTO; |
|
|
import com.ningdatech.pmapi.expert.model.dto.ExpertDictionaryDTO; |
|
|
import com.ningdatech.pmapi.expert.model.dto.ExpertFullInfoAllDTO; |
|
|
import com.ningdatech.pmapi.expert.model.dto.ExpertFullInfoAllDTO; |
|
|
import com.ningdatech.pmapi.expert.model.req.ExpertRecommendProofSubmitRequest; |
|
|
|
|
|
import com.ningdatech.pmapi.expert.model.req.ExpertUserBasicInfoSubmitRequest; |
|
|
import com.ningdatech.pmapi.expert.model.req.ExpertUserBasicInfoSubmitRequest; |
|
|
import com.ningdatech.pmapi.expert.model.vo.ExpertFullInfoVO; |
|
|
import com.ningdatech.pmapi.expert.model.vo.ExpertFullInfoVO; |
|
|
import com.ningdatech.pmapi.expert.service.ExpertInfoService; |
|
|
import com.ningdatech.pmapi.expert.service.ExpertInfoService; |
|
@@ -84,10 +83,16 @@ public class ExpertManage { |
|
|
.buildExpertFullInfoSaveCmd(userId, basicInfo, eduInfo, jobInfo, professionalInfo); |
|
|
.buildExpertFullInfoSaveCmd(userId, basicInfo, eduInfo, jobInfo, professionalInfo); |
|
|
expertInfoService.saveExpertInfo(expertFullInfoSaveCmd); |
|
|
expertInfoService.saveExpertInfo(expertFullInfoSaveCmd); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 推荐证明材料 |
|
|
|
|
|
List<DictionaryFieldInfo> recommendedWay = request.getRecommendedWay(); |
|
|
|
|
|
// 推荐方式 |
|
|
|
|
|
List<FileBasicInfo> recommendProofFile = request.getRecommendProofFile(); |
|
|
|
|
|
expertRecommendProofSubmit(recommendedWay, recommendProofFile); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void expertRecommendProofSubmit(ExpertRecommendProofSubmitRequest request) { |
|
|
|
|
|
|
|
|
public void expertRecommendProofSubmit(List<DictionaryFieldInfo> recommendedWay, List<FileBasicInfo> recommendProofFile) { |
|
|
// 用户id |
|
|
// 用户id |
|
|
Long expertUserId = LoginUserUtil.getUserId(); |
|
|
Long expertUserId = LoginUserUtil.getUserId(); |
|
|
ExpertUserFullInfo expertUserFullInfo = iExpertUserFullInfoService.getByUserId(expertUserId); |
|
|
ExpertUserFullInfo expertUserFullInfo = iExpertUserFullInfoService.getByUserId(expertUserId); |
|
@@ -97,20 +102,15 @@ public class ExpertManage { |
|
|
|| ExpertUserInfoStepEnum.EVIDENCE_HAS_BEEN_SUBMITTED.getKey().equals(expertUserFullInfo.getUserInfoStep())) { |
|
|
|| ExpertUserInfoStepEnum.EVIDENCE_HAS_BEEN_SUBMITTED.getKey().equals(expertUserFullInfo.getUserInfoStep())) { |
|
|
throw new BizException("当前状态无法提交证明材料"); |
|
|
throw new BizException("当前状态无法提交证明材料"); |
|
|
} |
|
|
} |
|
|
// 根据用户id 获取用户信息,获取手机号校验 验证码是否正确 |
|
|
|
|
|
String phoneNo = expertUserFullInfo.getPhoneNo(); |
|
|
|
|
|
String verificationCode = request.getVerificationCode(); |
|
|
|
|
|
|
|
|
|
|
|
// 证明材料提交 |
|
|
// 证明材料提交 |
|
|
List<FileBasicInfo> recommendProofFile = request.getRecommendProofFile(); |
|
|
|
|
|
List<DictionaryFieldInfo> recommendedWayList = request.getRecommendedWay(); |
|
|
|
|
|
ExpertRecommendProofSaveCmd expertRecommendProofSaveCmd = new ExpertRecommendProofSaveCmd(); |
|
|
ExpertRecommendProofSaveCmd expertRecommendProofSaveCmd = new ExpertRecommendProofSaveCmd(); |
|
|
if (CollectionUtils.isNotEmpty(recommendProofFile)) { |
|
|
if (CollectionUtils.isNotEmpty(recommendProofFile)) { |
|
|
expertRecommendProofSaveCmd.setRecommendationProofFileIdList(recommendProofFile.stream().map(FileBasicInfo::getFileId).collect(Collectors.toList())); |
|
|
expertRecommendProofSaveCmd.setRecommendationProofFileIdList(recommendProofFile.stream().map(FileBasicInfo::getFileId).collect(Collectors.toList())); |
|
|
} |
|
|
} |
|
|
List<ExpertDictionaryDTO> recommendedWayDictionaryDTOList = new ArrayList<>(); |
|
|
List<ExpertDictionaryDTO> recommendedWayDictionaryDTOList = new ArrayList<>(); |
|
|
if (CollectionUtils.isNotEmpty(recommendedWayList)) { |
|
|
|
|
|
recommendedWayDictionaryDTOList = recommendedWayList.stream().map(r -> { |
|
|
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(recommendedWay)) { |
|
|
|
|
|
recommendedWayDictionaryDTOList = recommendedWay.stream().map(r -> { |
|
|
ExpertDictionaryDTO expertDictionaryDTO = new ExpertDictionaryDTO(); |
|
|
ExpertDictionaryDTO expertDictionaryDTO = new ExpertDictionaryDTO(); |
|
|
expertDictionaryDTO.setDictionaryCode(r.getDictionaryCode()); |
|
|
expertDictionaryDTO.setDictionaryCode(r.getDictionaryCode()); |
|
|
expertDictionaryDTO.setExpertInfoField(DictExpertInfoTypeEnum.RECOMMENDED_WAY.getKey()); |
|
|
expertDictionaryDTO.setExpertInfoField(DictExpertInfoTypeEnum.RECOMMENDED_WAY.getKey()); |
|
@@ -133,5 +133,6 @@ public class ExpertManage { |
|
|
} |
|
|
} |
|
|
List<Long> fileIdList = expertInfoCommonHelper.getExpertFileIdList(expertUserFullInfoAll); |
|
|
List<Long> fileIdList = expertInfoCommonHelper.getExpertFileIdList(expertUserFullInfoAll); |
|
|
List<AttachFileVo> attachFiles = fileService.getByIds(fileIdList); |
|
|
List<AttachFileVo> attachFiles = fileService.getByIds(fileIdList); |
|
|
return expertUserInfoAssembler.buildExpertFullInfoVO(attachFiles, expertUserFullInfoAll); } |
|
|
|
|
|
|
|
|
return expertUserInfoAssembler.buildExpertFullInfoVO(attachFiles, expertUserFullInfoAll); |
|
|
|
|
|
} |
|
|
} |
|
|
} |