|
|
@@ -49,10 +49,7 @@ import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Objects; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
/** |
|
|
@@ -66,25 +63,16 @@ public class ExpertMetaApplyManage { |
|
|
|
|
|
|
|
private final IExpertMetaApplyService iMetaApplyService; |
|
|
|
private final IExpertDictionaryService expertDictionaryService; |
|
|
|
|
|
|
|
// private final IExpertAdminManageService ExpertAdminManageService; |
|
|
|
private final RegionCacheHelper regionCacheHelper; |
|
|
|
private final IExpertUserFullInfoService userFullInfoService; |
|
|
|
private final DictionaryCache dictionaryCache; |
|
|
|
|
|
|
|
private final ExpertInfoService expertInfoService; |
|
|
|
|
|
|
|
private final UserInfoHelper userInfoHelper; |
|
|
|
|
|
|
|
private final RegionLimitHelper regionLimitHelper; |
|
|
|
|
|
|
|
private final ExpertUserInfoHelper expertUserInfoHelper; |
|
|
|
|
|
|
|
private final ExpertAdminManageService expertAdminManageService; |
|
|
|
|
|
|
|
private final IExpertDictionaryService iExpertDictionaryService; |
|
|
|
|
|
|
|
|
|
|
|
public PageVo<ExpertApplyMetaVO> metaApplyListQuery(MetaApplyListQuery req) { |
|
|
|
Long expertAdminUserId = LoginUserUtil.getUserId(); |
|
|
|
// 筛选符合专家类型的用户id |
|
|
@@ -596,11 +584,13 @@ public class ExpertMetaApplyManage { |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void autoPassExpertApply(Long expertUserId) { |
|
|
|
List<ExpertMetaApply> expertIntentionJoinApplyList = iMetaApplyService.list(Wrappers.lambdaQuery(ExpertMetaApply.class) |
|
|
|
final List<String> applyTypes = Arrays.asList(ExpertApplyTypeEnum.EXPERT_INTENTION_JOIN.getKey(), |
|
|
|
ExpertApplyTypeEnum.EXPERT_STORAGE.getKey()); |
|
|
|
LambdaQueryWrapper<ExpertMetaApply> query = Wrappers.lambdaQuery(ExpertMetaApply.class) |
|
|
|
.eq(ExpertMetaApply::getUserId, expertUserId) |
|
|
|
.in(ExpertMetaApply::getApplyType, ExpertApplyTypeEnum.EXPERT_INTENTION_JOIN.getKey(), ExpertApplyTypeEnum.EXPERT_STORAGE.getKey()) |
|
|
|
.eq(ExpertMetaApply::getApplyStatus, ExpertApplyStatusEnum.PENDING_REVIEW.getKey())); |
|
|
|
|
|
|
|
.in(ExpertMetaApply::getApplyType, applyTypes) |
|
|
|
.eq(ExpertMetaApply::getApplyStatus, ExpertApplyStatusEnum.PENDING_REVIEW.getKey()); |
|
|
|
List<ExpertMetaApply> expertIntentionJoinApplyList = iMetaApplyService.list(query); |
|
|
|
for (ExpertMetaApply expertMetaApply : expertIntentionJoinApplyList) { |
|
|
|
MetaApplyResultRequest applyResult = new MetaApplyResultRequest(); |
|
|
|
applyResult.setApplyId(expertMetaApply.getId()); |
|
|
|