|
@@ -247,12 +247,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
FROM
|
|
|
school_info s
|
|
|
<where>
|
|
|
- <if test="removed != null and removed != ''"> and s.`removed` = #{removed}</if>
|
|
|
+ <if test="removed == null"> and s.`removed` = '0'</if>
|
|
|
+ <if test="removed == '2'.toString()"> and exists(SELECT `removed` FROM `school_info`) </if>
|
|
|
+ <if test="removed != null and removed != '' and removed != '2'.toString()"> 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>
|
|
|
<if test="address != null and address != ''"> and s.address = #{address}</if>
|
|
|
- <if test="removed != null and removed != ''"> and s.removed = #{removed}</if>
|
|
|
<if test="areaName != null and areaName != ''"> and s.area_name = #{areaName}</if>
|
|
|
<if test="tel != null and tel != ''"> and s.tel = #{tel}</if>
|
|
|
<if test="credibilityScore != null and credibilityScore != ''"> and s.credibility_score = #{credibilityScore}</if>
|