Commit b4a8ea77 by 彭祥礼

后台获取套餐信息和过学生ID查询学生信息需要的sql

parent edf8c4a8
...@@ -2,7 +2,6 @@ package com.winsun.mapper; ...@@ -2,7 +2,6 @@ package com.winsun.mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper; import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.winsun.bean.School; import com.winsun.bean.School;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
...@@ -20,4 +19,11 @@ public interface SchoolMapper extends BaseMapper<School> { ...@@ -20,4 +19,11 @@ public interface SchoolMapper extends BaseMapper<School> {
@Select("select school_id schoolId from `hhr_user_school` where user_id = #{partner}") @Select("select school_id schoolId from `hhr_user_school` where user_id = #{partner}")
String selectSchoolIdByUserId(String partner); String selectSchoolIdByUserId(String partner);
@Select("SELECT * FROM hh_student WHERE customer_name = #{name} AND id_card = #{idCard}")
Map<String,Object> selectStudentByNameAndIdCard(@Param("name")String name,@Param("idCard")String idCard);
@Select("SELECT * FROM hh_student WHERE id = #{id}")
Map<String,Object> getStuById(@Param("id")String id);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment