考试申请审核功能修改。

This commit is contained in:
Renpc-kilig 2021-05-05 14:51:34 +08:00
parent 3d73403c72
commit 79e078f3dd
2 changed files with 25 additions and 3 deletions

View File

@ -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
*

View File

@ -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<String, Object> 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<String, Object> params = HashMapUtil.beanToMap(examApplyVO);