浏览代码

add 考级报名缴费

周箭河 5 年之前
父节点
当前提交
665c3a2751
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      mec-student/src/main/java/com/ym/mec/student/controller/DegreeController.java

+ 11 - 2
mec-student/src/main/java/com/ym/mec/student/controller/DegreeController.java

@@ -55,8 +55,17 @@ public class DegreeController extends BaseController {
     public HttpResponseResult pay(DegreeRegistration degreeRegistration) throws Exception {
         if (degreeRegistration == null ||
                 degreeRegistration.getSporadicId() == null ||
-                degreeRegistration.getName() == null) {
-            throw new BizException("参数校验失败");
+                degreeRegistration.getName() == null ||
+                degreeRegistration.getGender() == null ||
+                degreeRegistration.getIdcard() == null ||
+                degreeRegistration.getCity() == null ||
+                degreeRegistration.getSchool() == null ||
+                degreeRegistration.getSubject() == null ||
+                degreeRegistration.getTheoryLevel() == null ||
+                degreeRegistration.getMobile() == null
+
+        ) {
+            throw new BizException("必填参数不能为空");
         }
 
         SporadicChargeInfo info = sporadicChargeInfoDao.get(degreeRegistration.getSporadicId());