From 79e078f3dd9734a1e57f4f94b524800e08bb1b06 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Wed, 5 May 2021 14:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95=E7=94=B3=E8=AF=B7=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/examapply/IExamApplyService.java | 9 +++++++++ .../examapply/impl/ExamApplyServiceImpl.java | 19 ++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/main/java/cn/com/tenlion/service/examapply/IExamApplyService.java b/src/main/java/cn/com/tenlion/service/examapply/IExamApplyService.java index 3397574..9822057 100644 --- a/src/main/java/cn/com/tenlion/service/examapply/IExamApplyService.java +++ b/src/main/java/cn/com/tenlion/service/examapply/IExamApplyService.java @@ -87,6 +87,15 @@ public interface IExamApplyService { */ void update(String examApplyId, ExamApplyVO examApplyVO); + /** + * 修改考场分配状态 + * + * @param planId + * @param examApplyVO + * @return + */ + void updateStatus(String planId, ExamApplyVO examApplyVO); + /** * 修改应急管理局-考试申请表-renpc * diff --git a/src/main/java/cn/com/tenlion/service/examapply/impl/ExamApplyServiceImpl.java b/src/main/java/cn/com/tenlion/service/examapply/impl/ExamApplyServiceImpl.java index 1f6ae65..114aed3 100644 --- a/src/main/java/cn/com/tenlion/service/examapply/impl/ExamApplyServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/examapply/impl/ExamApplyServiceImpl.java @@ -8,8 +8,6 @@ import cn.com.tenlion.pojo.vos.distribution.DistributionSaveVO; import cn.com.tenlion.pojo.vos.examapply.ExamApplyVO; import cn.com.tenlion.service.examapply.IExamApplyService; import cn.com.tenlion.service.examination.distribution.IDistributionService; -import ink.wgink.annotation.CheckNullAnnotation; -import ink.wgink.annotation.CheckNumberAnnotation; import ink.wgink.common.base.DefaultBaseService; import ink.wgink.pojo.ListPage; import ink.wgink.pojo.result.SuccessResultList; @@ -17,7 +15,6 @@ import ink.wgink.util.map.HashMapUtil; import ink.wgink.util.UUIDUtil; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; -import io.swagger.annotations.ApiModelProperty; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -97,6 +94,22 @@ public class ExamApplyServiceImpl extends DefaultBaseService implements IExamApp update(null, examApplyId, examApplyVO); } + @Override + public void updateStatus(String planId, ExamApplyVO examApplyVO) { + updateStatus(planId, null, examApplyVO); + } + + private void updateStatus(String planId, String token, ExamApplyVO examApplyVO) { + Map params = new HashMap<>(1); + params.put("examId", planId); + if (StringUtils.isBlank(token)) { + setUpdateInfo(params); + } else { + setAppUpdateInfo(token, params); + } + examApplyDao.update(params); + } + @Override public void update(String token, String examApplyId, ExamApplyVO examApplyVO) { Map params = HashMapUtil.beanToMap(examApplyVO);