yzc 1 vuosi sitten
vanhempi
commit
dba107fda3
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      hx-sale/src/main/resources/mapper/contract/ContractMapper.xml

+ 2 - 2
hx-sale/src/main/resources/mapper/contract/ContractMapper.xml

@@ -32,8 +32,8 @@
                                     WHERE cp.contract_id = t1.id)
                                , 0)                       AS settledAmount,
                            po.delivery_period             as prodDeliveryPeriod,
-                           t4.deliverQuantity,
-                           t4.notDeliverQuantity
+                           IFNULL(t4.deliverQuantity, 0),
+                           IFNULL(t4.notDeliverQuantity, 0)
                     FROM contract t1
                              left join customer c on t1.buy_corporation_id = c.id
                              left join sys_user us on c.user_id = us.user_id