master
parent
6e0c6608f2
commit
b8c09f1ac9
|
@ -157,13 +157,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="selectDoctor" resultType="com.health.system.common.domain.Doctor">
|
||||
select * from tb_doctor where doctor_id=#{userId}
|
||||
</select>
|
||||
<select id="checkEmail" resultType="com.health.system.common.domain.User">
|
||||
<include refid="selectUser">
|
||||
where email=#{email}
|
||||
</include>
|
||||
<select id="checkEmail" resultType="com.health.system.common.domain.User">
|
||||
select user_id,name,email,avatar,status from tb_user where email=#{email}
|
||||
</select>
|
||||
|
||||
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
||||
|
||||
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
||||
insert into sys_user(
|
||||
<if test="userId != null and userId != 0">user_id,</if>
|
||||
<if test="deptId != null and deptId != 0">dept_id,</if>
|
||||
|
|
Loading…
Reference in New Issue