|
@@ -13,6 +13,8 @@ import com.ningdatech.pmapi.expert.entity.ExpertUserFullInfo; |
|
|
import com.ningdatech.pmapi.expert.mapper.ExpertAdminManageMapper; |
|
|
import com.ningdatech.pmapi.expert.mapper.ExpertAdminManageMapper; |
|
|
import com.ningdatech.pmapi.expert.model.cmd.ExpertAdminExpertManageQueryCmd; |
|
|
import com.ningdatech.pmapi.expert.model.cmd.ExpertAdminExpertManageQueryCmd; |
|
|
import com.ningdatech.pmapi.expert.model.dto.ExpertAdminExpertManageListDTO; |
|
|
import com.ningdatech.pmapi.expert.model.dto.ExpertAdminExpertManageListDTO; |
|
|
|
|
|
import com.ningdatech.pmapi.expert.model.query.ExpertDictionaryQuery; |
|
|
|
|
|
import com.ningdatech.pmapi.expert.model.query.ExpertTagQuery; |
|
|
import com.ningdatech.pmapi.expert.model.query.ListExpertQuery; |
|
|
import com.ningdatech.pmapi.expert.model.query.ListExpertQuery; |
|
|
import com.ningdatech.pmapi.expert.service.ExpertAdminManageService; |
|
|
import com.ningdatech.pmapi.expert.service.ExpertAdminManageService; |
|
|
import com.ningdatech.pmapi.expert.service.IExpertUserFullInfoService; |
|
|
import com.ningdatech.pmapi.expert.service.IExpertUserFullInfoService; |
|
@@ -42,11 +44,28 @@ public class ExpertAdminManageServiceImpl implements ExpertAdminManageService { |
|
|
private final IExpertTagService iExpertTagService; |
|
|
private final IExpertTagService iExpertTagService; |
|
|
private final ExpertAdminManageMapper expertAdminManageMapper; |
|
|
private final ExpertAdminManageMapper expertAdminManageMapper; |
|
|
|
|
|
|
|
|
|
|
|
private List<Long> listExpertUserId(ListExpertQuery listExpertQuery) { |
|
|
|
|
|
List<Long> userIdList = expertAdminManageMapper.listExpertUserId(listExpertQuery); |
|
|
|
|
|
|
|
|
|
|
|
List<ExpertTagQuery> expertTagQueryList = listExpertQuery.getExpertTagQueryList(); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(expertTagQueryList)) { |
|
|
|
|
|
List<Long> tagUserIdList = expertAdminManageMapper.listExpertTagUserId(listExpertQuery); |
|
|
|
|
|
userIdList.retainAll(tagUserIdList); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<ExpertDictionaryQuery> expertDictionaryQueryList = listExpertQuery.getExpertDictionaryQueryList(); |
|
|
|
|
|
if (CollectionUtils.isNotEmpty(expertDictionaryQueryList)) { |
|
|
|
|
|
List<Long> dictionaryUserIdList = expertAdminManageMapper.listExpertDictionaryUserId(listExpertQuery); |
|
|
|
|
|
userIdList.retainAll(dictionaryUserIdList); |
|
|
|
|
|
} |
|
|
|
|
|
return userIdList; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public CommonPage<ExpertAdminExpertManageListDTO> getExpertLibraryList(ExpertAdminExpertManageQueryCmd req) { |
|
|
public CommonPage<ExpertAdminExpertManageListDTO> getExpertLibraryList(ExpertAdminExpertManageQueryCmd req) { |
|
|
ListExpertQuery listExpertQuery = buildListExpertQuery(req); |
|
|
ListExpertQuery listExpertQuery = buildListExpertQuery(req); |
|
|
List<Long> userIdList = expertAdminManageMapper.listExpertUserId(listExpertQuery); |
|
|
|
|
|
|
|
|
List<Long> userIdList = listExpertUserId(listExpertQuery); |
|
|
|
|
|
|
|
|
List<ExpertUserFullInfo> evidenceHasBeenSubmittedExpertInfoList = iExpertUserFullInfoService.list(Wrappers.lambdaQuery(ExpertUserFullInfo.class) |
|
|
List<ExpertUserFullInfo> evidenceHasBeenSubmittedExpertInfoList = iExpertUserFullInfoService.list(Wrappers.lambdaQuery(ExpertUserFullInfo.class) |
|
|
.eq(ExpertUserFullInfo::getUserInfoStep, ExpertUserInfoStepEnum.EVIDENCE_HAS_BEEN_SUBMITTED.getKey())); |
|
|
.eq(ExpertUserFullInfo::getUserInfoStep, ExpertUserInfoStepEnum.EVIDENCE_HAS_BEEN_SUBMITTED.getKey())); |
|
@@ -113,6 +132,6 @@ public class ExpertAdminManageServiceImpl implements ExpertAdminManageService { |
|
|
@Override |
|
|
@Override |
|
|
public List<Long> filterExpertUserIdList(ExpertAdminExpertManageQueryCmd queryCmd) { |
|
|
public List<Long> filterExpertUserIdList(ExpertAdminExpertManageQueryCmd queryCmd) { |
|
|
ListExpertQuery listExpertQuery = buildListExpertQuery(queryCmd); |
|
|
ListExpertQuery listExpertQuery = buildListExpertQuery(queryCmd); |
|
|
return expertAdminManageMapper.listExpertUserId(listExpertQuery); |
|
|
|
|
|
|
|
|
return listExpertUserId(listExpertQuery); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |