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 id="selectDoctor" resultType="com.health.system.common.domain.Doctor">
|
||||||
select * from tb_doctor where doctor_id=#{userId}
|
select * from tb_doctor where doctor_id=#{userId}
|
||||||
</select>
|
</select>
|
||||||
<select id="checkEmail" resultType="com.health.system.common.domain.User">
|
<select id="checkEmail" resultType="com.health.system.common.domain.User">
|
||||||
<include refid="selectUser">
|
select user_id,name,email,avatar,status from tb_user where email=#{email}
|
||||||
where email=#{email}
|
|
||||||
</include>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
|
||||||
|
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
||||||
insert into sys_user(
|
insert into sys_user(
|
||||||
<if test="userId != null and userId != 0">user_id,</if>
|
<if test="userId != null and userId != 0">user_id,</if>
|
||||||
<if test="deptId != null and deptId != 0">dept_id,</if>
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|
||||||
|
|
Loading…
Reference in New Issue