|
|
@@ -590,4 +590,20 @@ public class ExpertMetaApplyManage { |
|
|
|
expertIntentionApplyDealCmd.setExpertRegionLevel(expertMetaApply.getRegionLevel()); |
|
|
|
return expertIntentionApplyDealCmd; |
|
|
|
} |
|
|
|
|
|
|
|
public void autoPassExpertIntentionApply(Long expertUserId) { |
|
|
|
List<ExpertMetaApply> expertIntentionJoinApplyList = iMetaApplyService.list(Wrappers |
|
|
|
.lambdaQuery(ExpertMetaApply.class) |
|
|
|
.eq(ExpertMetaApply::getUserId, expertUserId) |
|
|
|
.eq(ExpertMetaApply::getApplyType, ExpertApplyTypeEnum.EXPERT_INTENTION_JOIN.getKey()) |
|
|
|
.eq(ExpertMetaApply::getApplyStatus, ExpertApplyStatusEnum.PENDING_REVIEW.getKey())); |
|
|
|
|
|
|
|
for (ExpertMetaApply expertMetaApply : expertIntentionJoinApplyList) { |
|
|
|
MetaApplyResultRequest applyResult = new MetaApplyResultRequest(); |
|
|
|
applyResult.setApplyId(expertMetaApply.getId()); |
|
|
|
applyResult.setAuditOpinion("同意"); |
|
|
|
applyResult.setApplyResult(true); |
|
|
|
metaApplyResult(applyResult); |
|
|
|
} |
|
|
|
} |
|
|
|
} |