ibatis的映射文件注意事项
<?xml version="1.0" encoding="GBK"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "/WEB-INF/dtd/sql-map-2.dtd">
<sqlMap namespace="cn.framework.yunwei.cleintfeedback.dao.opinion">
??? <select id="" parameterproperty="PROVINCEID">
??? ??? ??? ??? PROV_CODE =#PROVINCEID#
??? ??? </isNotEmpty>
??? ??? ?<isNotNull prepend="and" property="CITIESID">
??? ??? ???? CITY_CODE=#CITIESID#
??? ??? ?</isNotNull>
??? ??? </dynamic>
??? </select>
</sqlMap>
注意:parameterClass指明为接口可以,但是resultClass不能指明接口类型,必须是能被实例化的类型