Przeglądaj źródła

添加状态status

wwl 4 lat temu
rodzic
commit
7d588691b1

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

@@ -168,6 +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="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 - 0
hzgzpt-service/src/main/resources/mapper/school/SchoolClassTypeMapper.xml

@@ -42,6 +42,7 @@ 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="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>

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

@@ -240,12 +240,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         s.`responsible_person` as responsiblePerson,
         s.`area_name` as areaName,
         s.`tel`,
+        s.`removed`,
         s.`registration_date` as registrationDate,
         s.`credibility_score` as credibilityScore,
         s.`create_time` as createTime
         FROM
         school_info s
         <where>
+            s.`removed` = '0'
             <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>

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

@@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="queryRegionList" resultType="com.miaxis.school.vo.SchoolRegionPcVO">
         SELECT
         sr.`id`,
+        sr.`inscode`,
         sr.`name`,
         sr.`address`,
         sr.`area`,
@@ -44,6 +45,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
         school_region sr
         join school_info s on s.inscode= sr.inscode
+        <where>
+            sr.`removed` = '0'
+            <if test="name != null  and name != ''"> and sr.`name` like concat('%', #{name}, '%')</if>
+        </where>
 
         <!-- 数据范围过滤 -->
         ${params.dataScope}