|
@@ -305,11 +305,12 @@
|
|
select <include refid="Base_Column_List"></include> from t_poverty_area
|
|
select <include refid="Base_Column_List"></include> from t_poverty_area
|
|
<where>
|
|
<where>
|
|
state = 1
|
|
state = 1
|
|
- and province_id = #{provinceId,jdbcType=VARCHAR}
|
|
|
|
- and city_id = #{cityId,jdbcType=VARCHAR}
|
|
|
|
- and town_id = #{townId,jdbcType=VARCHAR}
|
|
|
|
- and county_id = #{countyId,jdbcType=VARCHAR}
|
|
|
|
- and village_id = #{villageId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ <if test="provinceId != null "> and province_id = #{provinceId}</if>
|
|
|
|
+ <if test="cityId != null "> and city_id = #{cityId}</if>
|
|
|
|
+ <if test="townId != null "> and town_id = #{townId}</if>
|
|
|
|
+ <if test="countyId != null "> and county_id = #{countyId}</if>
|
|
|
|
+ <if test="villageId != null "> and village_id = #{villageId}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|