Browse Source

问题处理

yzc 1 năm trước cách đây
mục cha
commit
e35b9746df

+ 2 - 1
hx-sale/src/main/resources/mapper/documents/DocumentsProductMapper.xml

@@ -22,7 +22,8 @@
     </select>
 
     <select id="getDpList" resultType="com.fjhx.sale.entity.documents.po.DocumentsProduct">
-        SELECT t1.*,
+        SELECT IFNULL(t2.quantity, t3.quantity)             as quantity,
+               t1.*,
                t2.product_id                                   productId,
                IFNULL(t2.pack_detail_id, t3.pack_detail_id) AS packDetailId,
                t3.unit                                      AS productUnit