From 0dee81f06575d115d64adde8fc3a4ea94607f9ef Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 06 Aug 2021 11:44:17 +0800
Subject: [PATCH] 1.考试报名新增判断,同一人,同一场考试,已报名且未考试,审核通过和待审核的不能再次报名 2.考试接口修改
---
src/main/java/org/springblade/modules/apply/controller/ExamPaymentController.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/apply/controller/ExamPaymentController.java b/src/main/java/org/springblade/modules/apply/controller/ExamPaymentController.java
index 6cffd3a..d4f8120 100644
--- a/src/main/java/org/springblade/modules/apply/controller/ExamPaymentController.java
+++ b/src/main/java/org/springblade/modules/apply/controller/ExamPaymentController.java
@@ -4,6 +4,7 @@
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
+import org.springblade.common.utils.arg;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
@@ -70,7 +71,8 @@
* @param examPayment 考试缴费信息对象
*/
@PostMapping("/submit")
- public R submit(@RequestBody ExamPayment examPayment) {
+ public R submit(@RequestBody ExamPayment examPayment) throws Exception {
+ arg.test01(arg.url+"/examPayment/submit",examPayment);
return R.status(examPaymentService.saveOrUpdate(examPayment));
}
@@ -81,6 +83,7 @@
*/
@PostMapping("/remove")
public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) {
+ arg.sendPostRemoveByIds(arg.url+"/examPayment/remove",ids);
return R.status(examPaymentService.removeByIds(Func.toLongList(ids)));
}
--
Gitblit v1.9.3