日期:2014-05-19 浏览次数:20762 次
<select id="getAddressPoolConfigCount" resultClass="Integer"
parameterClass="Map">
select count(*) from TMS_ADDRESS_POOL_CONFIG tapc, SYS_CITY
sc,SYS_PROVINCE sp where tapc.PROVINCE_ID = sp.PROVINCE_ID and
tapc.CITY_ID = sc.CITY_ID
<isNotEmpty prepend="AND" property="provinceId">
tapc.PROVINCE_ID like '%'
------解决方案--------------------
#provinceId#
------解决方案--------------------
'%'
</isNotEmpty>
<isNotEmpty prepend="AND" property="cityId">
tapc.CITY_ID like '%'
------解决方案--------------------
#cityId#
------解决方案--------------------
'%'
</isNotEmpty>
<isNotEmpty prepend="AND" property="configFlag">
tapc.CONFIG_FLAG like '%'
------解决方案--------------------
#configFlag#
------解决方案--------------------
'%'
</isNotEmpty>
</select>