master
冯凯 2023-10-27 11:06:48 +08:00
parent 6e0c6608f2
commit b8c09f1ac9
1 changed files with 4 additions and 5 deletions

View File

@ -158,11 +158,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
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>