wwl há 4 anos atrás
pai
commit
3716e5596a

+ 2 - 0
hzgzpt-service/src/main/resources/mapper/coach/CoachInfoMapper.xml

@@ -168,6 +168,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         coach_info ci
         join school_info d on ci.inscode= d.inscode
         <where>
+            <if test="status == null"> and ci.`status` = '0'</if>
+            <if test="status == '2'.toString()"> and exists(SELECT `status` FROM `coach_info`) </if>
             <if test="status != null  and status != ''"> and ci.`status` = #{status}</if>
             <if test="name != null  and name != ''"> and ci.`name` like concat('%', #{name}, '%')</if>
             <if test="coachnum != null  and coachnum != ''"> and ci.coachnum = #{coachnum}</if>