Browse Source

交接单BUG

caozj 1 year ago
parent
commit
5670ded2f2

+ 1 - 1
hx-purchase/src/main/resources/mapper/purchase/PurchaseDetailMapper.xml

@@ -61,7 +61,7 @@
     </select>
     <select id="getSumCountByDataResourceId" resultType="com.fjhx.purchase.entity.purchase.vo.PurchaseDetailVo">
             SELECT
-                SUM(t1.count),
+                IFNULL(SUM( t1.count ),0) AS sumCount,
                 t1.data_resource_id
             FROM
                 purchase_detail t1