Forráskód Böngészése

老师入驻申请接口问题修改

weifanli 3 éve
szülő
commit
a37d606f5d

+ 9 - 0
cooleshow-user/user-admin/src/main/java/com/yonge/cooleshow/admin/controller/TeacherController.java

@@ -63,6 +63,15 @@ public class TeacherController extends BaseController {
     }
 
     /**
+     * 启用/冻结
+     */
+    /*@PostMapping("/submit")
+    @ApiOperation(value = "新增或修改", notes = "传入teacher")
+    public HttpResponseResult<Boolean> submit(@RequestBody TeacherSubmitReq teacherSubmitReq) {
+        return teacherService.submit(teacherSubmitReq);
+    }*/
+
+    /**
      * 删除
      */
     @PostMapping("/remove")

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/TeacherAuthEntryRecordMapper.xml

@@ -48,7 +48,7 @@
             <if test="param.gender != null">
                 gender_ = #{param.gender},
             </if>
-            <if test="param.birthdate != null and param.birthdate != ''">
+            <if test="param.birthdate != null">
                 birthdate_ = #{param.birthdate},
             </if>
         </set>