فهرست منبع

fix:订单物品退货状态

liujunchi 3 سال پیش
والد
کامیت
7ec0340c6b
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      cooleshow-mall/mall-mbg/src/main/resources/config/mybatis/OmsOrderItemMapper.xml

+ 5 - 5
cooleshow-mall/mall-mbg/src/main/resources/config/mybatis/OmsOrderItemMapper.xml

@@ -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