formula : 用于计算元素外键值的SQL公式. 


在xml中配置:

 <many-to-one name="goodsInfo" class="com.huatek.ops.goodsmanagement.entity.hibernate.GoodsInfo" fetch="select">
       <formula>(SELECT a.goods_id from goods_info a INNER JOIN sales_Order_Detail b on a.goods_id=b.goods_id INNER JOIN logistics_order_detail c on b.detail_id=c.SALES_ORDER_DETAIL_ID where c.order_detail_id=substr(id,0,length(id)-9))</formula>
 </many-to-one>


友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信