|
@@ -241,9 +241,25 @@ public class ExpertMetaApplyManage { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void metaApplyRevoke(Long applyId) { |
|
|
public void metaApplyRevoke(Long applyId) { |
|
|
|
|
|
|
|
|
|
|
|
Long userId = LoginUserUtil.getUserId(); |
|
|
|
|
|
ExpertMetaApply expertMetaApply = iMetaApplyService.getById(applyId); |
|
|
|
|
|
if (Objects.isNull(expertMetaApply)) { |
|
|
|
|
|
throw new BizException("apply not exist"); |
|
|
|
|
|
} |
|
|
|
|
|
if (!expertMetaApply.getUserId().equals(userId)) { |
|
|
|
|
|
throw new BizException("has not right to operate"); |
|
|
|
|
|
} |
|
|
|
|
|
String applyStatus = expertMetaApply.getApplyStatus(); |
|
|
|
|
|
ExpertApplyStatusEnum expertApplyStatusEnum = ExpertApplyStatusEnum.of(applyStatus); |
|
|
|
|
|
if (!ExpertApplyStatusEnum.PENDING_REVIEW.equals(expertApplyStatusEnum)) { |
|
|
|
|
|
throw new BizException("apply is already deal"); |
|
|
|
|
|
} |
|
|
|
|
|
expertMetaApply.setApplyStatus(ExpertApplyStatusEnum.REVOKED.getKey()); |
|
|
|
|
|
expertMetaApply.setUpdateOn(LocalDateTime.now()); |
|
|
|
|
|
iMetaApplyService.updateById(expertMetaApply); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void buildIntentionApplyDisplayVO(MetaApplyResultVo metaApplyResultVo, ExpertMetaApply metaApply, ExpertApplyTypeEnum applyTypeEnum) { |
|
|
private void buildIntentionApplyDisplayVO(MetaApplyResultVo metaApplyResultVo, ExpertMetaApply metaApply, ExpertApplyTypeEnum applyTypeEnum) { |
|
|
String regionCode = metaApply.getRegionCode(); |
|
|
String regionCode = metaApply.getRegionCode(); |
|
|
Integer regionLevel = metaApply.getRegionLevel(); |
|
|
Integer regionLevel = metaApply.getRegionLevel(); |
|
|