|
@@ -109,14 +109,14 @@
|
|
|
from t_sell_build sb
|
|
|
left join t_park_data pd on pd.id = sb.belong
|
|
|
<where>
|
|
|
- <if test="parkId != null">
|
|
|
- and sb.belong = #{parkId}
|
|
|
+ <if test="productModule != null and productModule != ''">
|
|
|
+ and product_module like concat('%', #{productModule}, '%')
|
|
|
</if>
|
|
|
- <if test="application != null and application != ''">
|
|
|
- and sb.application like concat('%', #{application}, '%')
|
|
|
+ <if test="belong != null and belong != ''">
|
|
|
+ and belong like concat('%', #{belong}, '%')
|
|
|
</if>
|
|
|
- <if test="spaceMin != null and spaceMin != '' and spaceMax != null and spaceMax != ''">
|
|
|
- and sb.space >= #{spaceMin} and sb.space <= #{spaceMax}
|
|
|
+ <if test="application != null and application != ''">
|
|
|
+ and application like concat('%', #{application}, '%')
|
|
|
</if>
|
|
|
</where>
|
|
|
limit #{begin}, #{pageSize}
|
|
@@ -124,20 +124,28 @@
|
|
|
<select id="queryCountByAddr" resultType="java.lang.Integer">
|
|
|
select count(*) from t_sell_build
|
|
|
<where>
|
|
|
- <if test="keyword != null and keyword != ''">
|
|
|
- and (product_module like concat('%', #{keyword}, '%')
|
|
|
- or belong like concat('%', #{keyword}, '%')
|
|
|
- or application like concat('%', #{keyword}, '%'))
|
|
|
+ <if test="productModule != null and productModule != ''">
|
|
|
+ and product_module like concat('%', #{productModule}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="belong != null and belong != ''">
|
|
|
+ and belong like concat('%', #{belong}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="application != null and application != ''">
|
|
|
+ and application like concat('%', #{application}, '%')
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="queryDataByAddr" resultType="com.example.nngkxxdp.entity.SellBuild">
|
|
|
select * from t_sell_build
|
|
|
<where>
|
|
|
- <if test="keyword != null and keyword != ''">
|
|
|
- and (product_module like concat('%', #{keyword}, '%')
|
|
|
- or belong like concat('%', #{keyword}, '%')
|
|
|
- or application like concat('%', #{keyword}, '%'))
|
|
|
+ <if test="productModule != null and productModule != ''">
|
|
|
+ and product_module like concat('%', #{productModule}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="belong != null and belong != ''">
|
|
|
+ and belong like concat('%', #{belong}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="application != null and application != ''">
|
|
|
+ and application like concat('%', #{application}, '%')
|
|
|
</if>
|
|
|
</where>
|
|
|
limit #{begin}, #{pageSize}
|