FengChaoYu 1 rok temu
rodzic
commit
7b93f0a251

+ 2 - 2
mall-server-api/src/main/resources/mapper/CommonMapper.xml

@@ -161,7 +161,7 @@
         select
           ${ex.selected}
         from websit_stock a
-        join websit_goods b on a.goods_id = b.goods_id
+        join websit_goods b on a.goods_id = b.goods_code
         left join storage c on a.storage_id = c.storage_id
           ${ex.query}
         and a.goods_type='P'
@@ -198,7 +198,7 @@
         select
           ${ex.selected}
         from websit_stock_acc a
-        join websit_goods b on a.goods_id = b.goods_id
+        join websit_goods b on a.goods_id = b.goods_code
         left join storage c on a.storage_id = c.storage_id
           ${ex.query}
           and a.goods_type='P'