夏文涛 1 år sedan
förälder
incheckning
5b900aa500

+ 4 - 0
src/main/java/com/template/api/WelcomeStudentControllerAPI.java

@@ -80,4 +80,8 @@ public interface WelcomeStudentControllerAPI {
     @GetMapping(value = "/queryStudentByToken")
     @ApiOperation(value = "学生住宿情况", notes = "学生住宿情况", httpMethod = "GET")
     CommonResult queryStudentByToken(@RequestAttribute String userId);
+
+    @GetMapping(value = "/queryStudentInfo")
+    @ApiOperation(value = "查询学生信息", notes = "查询学生信息", httpMethod = "GET")
+    CommonResult queryStudentInfo(@RequestParam String admissNum);
 }

+ 5 - 0
src/main/java/com/template/controller/WelcomeStudentController.java

@@ -1608,5 +1608,10 @@ public class WelcomeStudentController implements WelcomeStudentControllerAPI {
         }
         return CommonResult.ok(student);
     }
+
+    @Override
+    public CommonResult queryStudentInfo(String admissNum) {
+        return null;
+    }
 }
 

+ 1 - 1
src/main/resources/mapper/template/WelcomeStudentMapper.xml

@@ -36,7 +36,7 @@
             and ws.classstr_id = #{classstrId}
         </if>
         <if test="trafficMethod != null and trafficMethod != ''">
-            and ws.trafficMethod = #{trafficMethod}
+            and ws.traffic_method = #{trafficMethod}
         </if>
         <if test="name != null and name != ''">
             and ws.name like '%' #{name} '%'