瀏覽代碼

申请撤销

tags/24080901
liuxinxin 1 年之前
父節點
當前提交
f285d86fff
共有 2 個文件被更改,包括 17 次插入2 次删除
  1. +0
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/expert/controller/ExpertMetaApplyController.java
  2. +17
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertMetaApplyManage.java

+ 0
- 1
pmapi/src/main/java/com/ningdatech/pmapi/expert/controller/ExpertMetaApplyController.java 查看文件

@@ -58,5 +58,4 @@ public class ExpertMetaApplyController {
}



}

+ 17
- 1
pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertMetaApplyManage.java 查看文件

@@ -241,9 +241,25 @@ public class ExpertMetaApplyManage {


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) {
String regionCode = metaApply.getRegionCode();
Integer regionLevel = metaApply.getRegionLevel();


Loading…
取消
儲存