jsk 新购驳回统计数量修正

This commit is contained in:
jiask 2026-01-13 16:14:09 +08:00
parent 382701e9b9
commit c904874535
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mt1.type_name as typeModelName,
mt1.unit_name as unitName,
IFNULL(pcd.purchase_num, 0) as purchaseNum,
IFNULL(pcd.check_num, 0) as passNum,
IFNULL(pcd.purchase_num, 0) - IFNULL(pcd.check_num, 0) as notPassNum,
case when pcd.status in (12) then 0 else IFNULL(pcd.check_num, 0) end as passNum,
case when pcd.status in (12) then IFNULL(pcd.purchase_num, 0) else IFNULL(pcd.purchase_num, 0) - IFNULL(pcd.check_num, 0) end as notPassNum,
IFNULL(pcd.input_num, 0) as inputNum,
IFNULL(pcd.purchase_price, 0) as purchasePrice,
IFNULL(pcd.purchase_tax_price, 0) as purchasePriceNoTax,