iBATIS多表查询的问题
配置文件为:<selectid="getTotalMoney"resultMap=""><![CDATA[selectsum(odd_price),odr_custome...
配置文件为:
<select id="getTotalMoney" resultMap="">
<![CDATA[
select sum(odd_price),odr_customer_id
from sal_order join orders_line
on odd_order_id=odr_id
group by odd_order_id
]]>
</select>
sal_orde表对应Order实体类,orders_line表对应OrdersLine实体类
请问resultMap应该怎么写? 展开
<select id="getTotalMoney" resultMap="">
<![CDATA[
select sum(odd_price),odr_customer_id
from sal_order join orders_line
on odd_order_id=odr_id
group by odd_order_id
]]>
</select>
sal_orde表对应Order实体类,orders_line表对应OrdersLine实体类
请问resultMap应该怎么写? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询