Commit 039ba8a8 by 范富荣

查询主商品订单信息,修改库存查询逻辑

1 parent ebcc5128
...@@ -95,12 +95,12 @@ ...@@ -95,12 +95,12 @@
left join dj_car_life_goods_order go on go.order_code = gso.order_code left join dj_car_life_goods_order go on go.order_code = gso.order_code
left join dj_car_life_merchant_goods_stock_month_report dclmgsmr on dclmgsmr.upgrade_goods_id = left join dj_car_life_merchant_goods_stock_month_report dclmgsmr on dclmgsmr.upgrade_goods_id =
gso.upgrade_goods_id and dclmgsmr.yq_merchant_id = go.seller_merchant_id and dclmgsmr.deleted_flag = 'N' gso.upgrade_goods_id and dclmgsmr.yq_merchant_id = go.seller_merchant_id and dclmgsmr.deleted_flag = 'N'
<if test="dataMonth != null">
and dclmgsmr.data_month = #{dataMonth}
</if>
<where> <where>
gso.deleted_flag = 'N' and gso.order_code = #{orderCode} and (gso.construction_flag != 1 or gso.deleted_flag = 'N' and gso.order_code = #{orderCode} and (gso.construction_flag != 1 or
gso.construction_flag is null) and gso.status =1 gso.construction_flag is null) and gso.status =1
<if test="dataMonth != null">
and dclmgsmr.data_month = #{dataMonth}
</if>
</where> </where>
<if test="constructionCode != null and constructionCode != ''"> <if test="constructionCode != null and constructionCode != ''">
union all union all
...@@ -126,12 +126,12 @@ ...@@ -126,12 +126,12 @@
left join dj_car_life_goods_order go on go.order_code = gso.order_code left join dj_car_life_goods_order go on go.order_code = gso.order_code
left join dj_car_life_merchant_goods_stock_month_report dclmgsmr on dclmgsmr.upgrade_goods_id = left join dj_car_life_merchant_goods_stock_month_report dclmgsmr on dclmgsmr.upgrade_goods_id =
gso.upgrade_goods_id and dclmgsmr.yq_merchant_id = go.seller_merchant_id and dclmgsmr.deleted_flag = 'N' gso.upgrade_goods_id and dclmgsmr.yq_merchant_id = go.seller_merchant_id and dclmgsmr.deleted_flag = 'N'
<if test="dataMonth != null">
and dclmgsmr.data_month = #{dataMonth}
</if>
<where> <where>
csor.deleted_flag = 'N' and gso.deleted_flag = 'N' and csor.construction_code = #{constructionCode} and csor.deleted_flag = 'N' and gso.deleted_flag = 'N' and csor.construction_code = #{constructionCode} and
gso.status =1 gso.status =1
<if test="dataMonth != null">
and dclmgsmr.data_month = #{dataMonth}
</if>
</where> </where>
</if> </if>
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!