|
@@ -31,6 +31,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="province != null and province != ''"> and province = #{province}</if>
|
|
<if test="province != null and province != ''"> and province = #{province}</if>
|
|
<if test="cityId != null and cityId != ''"> and city_id = #{cityId}</if>
|
|
<if test="cityId != null and cityId != ''"> and city_id = #{cityId}</if>
|
|
<if test="city != null and city != ''"> and city = #{city}</if>
|
|
<if test="city != null and city != ''"> and city = #{city}</if>
|
|
|
|
+ <if test="countyId != null and countyId != ''"> and county_id = #{countyId}</if>
|
|
|
|
+ <if test="county != null and county != ''"> and county = #{county}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -52,6 +54,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="provinceId != null and provinceId != ''" > AND e.province_id = #{provinceId}</if>
|
|
<if test="provinceId != null and provinceId != ''" > AND e.province_id = #{provinceId}</if>
|
|
<if test="cityId != null and cityId != ''" > AND e.city_id = #{cityId}</if>
|
|
<if test="cityId != null and cityId != ''" > AND e.city_id = #{cityId}</if>
|
|
<if test="city != null and city != ''" > AND e.city = #{city}</if>
|
|
<if test="city != null and city != ''" > AND e.city = #{city}</if>
|
|
|
|
+ <if test="countyId != null and countyId != ''"> and county_id = #{countyId}</if>
|
|
|
|
+ <if test="county != null and county != ''"> and county = #{county}</if>
|
|
<if test="name != null and name != ''"> and e.name like concat('%', #{name}, '%')</if>
|
|
<if test="name != null and name != ''"> and e.name like concat('%', #{name}, '%')</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
@@ -68,6 +72,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="provinceId != null and provinceId != ''" > AND e.province_id = #{provinceId}</if>
|
|
<if test="provinceId != null and provinceId != ''" > AND e.province_id = #{provinceId}</if>
|
|
<if test="cityId != null and cityId != ''" > AND e.city_id = #{cityId}</if>
|
|
<if test="cityId != null and cityId != ''" > AND e.city_id = #{cityId}</if>
|
|
<if test="city != null and city != ''" > AND e.city = #{city}</if>
|
|
<if test="city != null and city != ''" > AND e.city = #{city}</if>
|
|
|
|
+ <if test="countyId != null and countyId != ''"> and county_id = #{countyId}</if>
|
|
|
|
+ <if test="county != null and county != ''"> and county = #{county}</if>
|
|
<if test="name != null and name != ''"> and e.name like concat('%', #{name}, '%')</if>
|
|
<if test="name != null and name != ''"> and e.name like concat('%', #{name}, '%')</if>
|
|
<if test="userId != null"> and vu.user_id = #{userId}</if>
|
|
<if test="userId != null"> and vu.user_id = #{userId}</if>
|
|
</where>
|
|
</where>
|