linhw 2024-05-07 19:59:24 +08:00
parent 041a6a68a6
commit 9684302ae9
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
s.name as "schoolName" s.name as "schoolName"
from app_user a from app_user a
left join app_school s on s.id = a.school left join app_school s on s.id = a.school
where <where>
<if test="isMember != null "> and a.is_member = #{isMember}</if> <if test="isMember != null "> and a.is_member = #{isMember}</if>
<if test="appId != null "> and a.id != #{appId}</if> <if test="appId != null "> and a.id != #{appId}</if>
<if test="school != null and school != ''"> and a.school = #{school}</if> <if test="school != null and school != ''"> and a.school = #{school}</if>
@ -157,6 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item} #{item}
</foreach> </foreach>
</if> </if>
</where>
</select> </select>
<insert id="insertAppUser" parameterType="AppUser" useGeneratedKeys="true" keyProperty="id"> <insert id="insertAppUser" parameterType="AppUser" useGeneratedKeys="true" keyProperty="id">