|
@@ -227,7 +227,14 @@
|
|
|
b.norm_type
|
|
|
FROM
|
|
|
websit_stock a
|
|
|
- JOIN websit_goods b ON a.goods_id = b.goods_id
|
|
|
+ JOIN websit_goods b ON
|
|
|
+ <if test="goodsType!=null and goodsType!='' and goodsType=='M'.toString()">
|
|
|
+ a.goods_id = b.goods_id
|
|
|
+ </if>
|
|
|
+ <if test="goodsType!=null and goodsType!='' and goodsType=='P'.toString()">
|
|
|
+ a.goods_id = b.goods_code
|
|
|
+ </if>
|
|
|
+
|
|
|
<if test="goodsType=='M'.toString()">
|
|
|
LEFT JOIN websit_goods_price c ON a.goods_id = c.goods_id AND a.websit_id = c.websit_id
|
|
|
</if>
|