|
@@ -90,20 +90,20 @@
|
|
|
gift_integration, gift_growth, product_attr
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.yonge.cooleshow.mbg.model.OmsOrderItemExample" resultMap="BaseResultMap">
|
|
|
+ select a.*,oora.status as returnStatus from (
|
|
|
select
|
|
|
<if test="distinct">
|
|
|
distinct
|
|
|
</if>
|
|
|
- ooi.*,
|
|
|
- oora.status as returnStatus
|
|
|
- from oms_order_item ooi
|
|
|
- left join oms_order_return_apply oora on oora.order_item_id = ooi.id
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from oms_order_item
|
|
|
<if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
+ <include refid="Example_Where_Clause"/>
|
|
|
</if>
|
|
|
<if test="orderByClause != null">
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
+ ) a left join oms_order_return_apply oora on oora.order_item_id = a.id
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
select
|