|
@@ -17,6 +17,7 @@ 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.ExpertUserBasicInfoSubmitRequest; |
|
|
import com.ningdatech.pmapi.expert.model.req.ExpertUserBasicInfoSubmitRequest; |
|
|
|
|
|
import com.ningdatech.pmapi.expert.model.req.MetaApplyResultRequest; |
|
|
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; |
|
|
import com.ningdatech.pmapi.expert.service.IExpertUserFullInfoService; |
|
|
import com.ningdatech.pmapi.expert.service.IExpertUserFullInfoService; |
|
@@ -53,6 +54,7 @@ public class ExpertManage { |
|
|
private final FileService fileService; |
|
|
private final FileService fileService; |
|
|
private final ExpertUserInfoAssembler expertUserInfoAssembler; |
|
|
private final ExpertUserInfoAssembler expertUserInfoAssembler; |
|
|
private final IUserInfoService iUserInfoService; |
|
|
private final IUserInfoService iUserInfoService; |
|
|
|
|
|
private final ExpertMetaApplyManage expertMetaApplyManage; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@@ -98,12 +100,19 @@ public class ExpertManage { |
|
|
List<DictionaryFieldInfo> recommendedWay = recommendInfo.getRecommendedWay(); |
|
|
List<DictionaryFieldInfo> recommendedWay = recommendInfo.getRecommendedWay(); |
|
|
// 推荐方式 |
|
|
// 推荐方式 |
|
|
List<FileBasicInfo> recommendProofFile = recommendInfo.getRecommendationProofFile(); |
|
|
List<FileBasicInfo> recommendProofFile = recommendInfo.getRecommendationProofFile(); |
|
|
expertRecommendProofSubmit(recommendedWay, recommendProofFile, userId); |
|
|
|
|
|
|
|
|
Long applyId = expertRecommendProofSubmit(recommendedWay, recommendProofFile, userId); |
|
|
|
|
|
|
|
|
|
|
|
// 批量通过专家管理员审核 |
|
|
|
|
|
MetaApplyResultRequest applyResult = new MetaApplyResultRequest(); |
|
|
|
|
|
applyResult.setApplyId(applyId); |
|
|
|
|
|
applyResult.setAuditOpinion("同意"); |
|
|
|
|
|
applyResult.setApplyResult(true); |
|
|
|
|
|
expertMetaApplyManage.metaApplyResult(applyResult); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void expertRecommendProofSubmit(List<DictionaryFieldInfo> recommendedWay, List<FileBasicInfo> recommendProofFile, Long expertUserId) { |
|
|
|
|
|
|
|
|
public Long expertRecommendProofSubmit(List<DictionaryFieldInfo> recommendedWay, List<FileBasicInfo> recommendProofFile, Long expertUserId) { |
|
|
// 用户id |
|
|
// 用户id |
|
|
ExpertUserFullInfo expertUserFullInfo = iExpertUserFullInfoService.getByUserId(expertUserId); |
|
|
ExpertUserFullInfo expertUserFullInfo = iExpertUserFullInfoService.getByUserId(expertUserId); |
|
|
// 判断专家状态,是否可以进行证明材料提交 |
|
|
// 判断专家状态,是否可以进行证明材料提交 |
|
@@ -129,7 +138,8 @@ public class ExpertManage { |
|
|
} |
|
|
} |
|
|
expertRecommendProofSaveCmd.setRecommendedWay(recommendedWayDictionaryDTOList); |
|
|
expertRecommendProofSaveCmd.setRecommendedWay(recommendedWayDictionaryDTOList); |
|
|
expertRecommendProofSaveCmd.setUserId(expertUserId); |
|
|
expertRecommendProofSaveCmd.setUserId(expertUserId); |
|
|
expertInfoService.expertRecommendProofSave(expertRecommendProofSaveCmd); |
|
|
|
|
|
|
|
|
Long applyId = expertInfoService.expertRecommendProofSave(expertRecommendProofSaveCmd); |
|
|
|
|
|
return applyId; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ExpertFullInfoVO getExpertFullInfoDetail(Long expertUserId) { |
|
|
public ExpertFullInfoVO getExpertFullInfoDetail(Long expertUserId) { |
|
|