wwl 4 gadi atpakaļ
vecāks
revīzija
db28dc6a40

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

@@ -168,7 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         coach_info ci
         join school_info d on ci.inscode= d.inscode
         <where>
-            ci.`status` = '0'
+            <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>
             <if test="mobile != null  and mobile != ''"> and ci.mobile = #{mobile}</if>

+ 1 - 2
hzgzpt-service/src/main/resources/mapper/school/SchoolClassTypeMapper.xml

@@ -42,13 +42,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         school_class_type sc
         JOIN school_info s ON s.inscode = sc.inscode
         <where>
-            sc.`status` = '0'
+            <if test="status != null  and status != ''"> and sc.`status` = #{status}</if>
             <if test="className != null  and className != ''"> and sc.`class_name` like concat('%', #{className}, '%')</if>
             <if test="totalPrice != null  and totalPrice != ''"> and sc.total_price = #{totalPrice}</if>
             <if test="train != null  and train != ''"> and sc.train = #{train}</if>
             <if test="payType != null  and payType != ''"> and sc.pay_type = #{payType}</if>
             <if test="pxcx != null  and pxcx != ''"> and sc.pxcx = #{pxcx}</if>
-            <if test="status != null  and status != ''"> and sc.status = #{status}</if>
         </where>
         <!-- 数据范围过滤 -->
         ${params.dataScope}

+ 1 - 1
hzgzpt-service/src/main/resources/mapper/school/SchoolInfoMapper.xml

@@ -247,7 +247,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
         school_info s
         <where>
-            s.`removed` = '0'
+            <if test="removed != null  and removed != ''"> and s.`removed` = #{removed}</if>
             <if test="id != null  and id != ''"> and s.id = #{id}</if>
             <if test="inscode != null  and inscode != ''"> and s.inscode = #{inscode}</if>
             <if test="name != null  and name != ''"> and s.`name` like concat('%', #{name}, '%')</if>

+ 1 - 1
hzgzpt-service/src/main/resources/mapper/school/SchoolRegionMapper.xml

@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         school_region sr
         join school_info s on s.inscode= sr.inscode
         <where>
-            sr.`removed` = '0'
+            <if test="removed != null  and removed != ''"> and sr.`removed` = #{removed}</if>
             <if test="name != null  and name != ''"> and sr.`name` like concat('%', #{name}, '%')</if>
         </where>