Browse Source

待采购数量不刷新处理

yzc 1 year ago
parent
commit
2f6acda2b8

+ 4 - 4
hx-purchase/src/main/resources/mapper/subscribe/SubscribeDetailMapper.xml

@@ -21,11 +21,11 @@
 
     <select id="getDetail" resultType="com.fjhx.purchase.entity.subscribe.vo.SubscribeDetailVo">
         SELECT
-            t1.*,
-            IFNULL( SUM( t2.count ), 0 ) AS purchaseCount
+        t1.*,
+        IFNULL( SUM( t2.quantity ), 0 ) AS purchaseCount
         FROM
-            subscribe_detail t1
-        LEFT JOIN purchase_detail t2 ON t1.id = t2.subscribe_detail_id
+        subscribe_detail t1
+        LEFT JOIN bytesailing_sale.ehsd_purchase_product t2 ON t1.id = t2.subscribe_detail_id
         <where>
             <if test="ids neq null and ids.size() > 0">
                 <foreach collection="ids" item="id" open="t1.id IN (" separator="," close=")">