wwl 4 년 전
부모
커밋
3716e5596a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      hzgzpt-service/src/main/resources/mapper/coach/CoachInfoMapper.xml

+ 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>