<include>标签:引用复用sql语句段
<sql id="sqlid">
res_type_id,res_type
</sql>
<select id="selectbyId" resultType="com.property.PubResTypeVO">
select
<include refid="sqlid"/>
from pub_res_type
</select>
<include>标签:引用复用sql语句段
<sql id="sqlid">
res_type_id,res_type
</sql>
<select id="selectbyId" resultType="com.property.PubResTypeVO">
select
<include refid="sqlid"/>
from pub_res_type
</select>