Commit 4bf77a0a by liuyang

1.生产成材率接口优化

parent 2bf1917b
......@@ -14,13 +14,13 @@
ha.length as "length",
ha.width as "width",
ha.thick as "thick",
ha.quantity as "quantity",
ha.single_weight as "singleWeight",
ha.total_weight as "totalWeight",
ifnull(ha.quantity,0) as "quantity",
ifnull(ha.single_weight,0) as "singleWeight",
ifnull(ha.total_weight,0) as "totalWeight",
ha.DEPOSIT_DATE as "depositDate",
ha.INV_QTY as "invQty",
ha.INV_UNIT_WEIGHT as "invUnitWeight",
ha.INV_WEIGHT as "invWeight",
ifnull(ha.INV_QTY,0) as "invQty",
ifnull(ha.INV_UNIT_WEIGHT,0) as "invUnitWeight",
ifnull(ha.INV_WEIGHT,0) as "invWeight",
hb.product_code as "clproductCode" ,
hb.product_name as "clproductName",
......@@ -28,12 +28,12 @@
hb.length as "cllength",
hb.width as "clwidth",
hb.thick as "clthick",
hb.quantity as "clquantity",
hb.total_weight as "cltotalWeight",
ifnull(hb.quantity,0) as "clquantity",
ifnull(hb.total_weight,0) as "cltotalWeight",
hb.RECEIPT_DATE as "receiptDate",
hb.INV_QTY as "llinvQty",
hb.INV_WEIGHT as "llinvWeight",
ifnull(hb.INV_QTY,0) as "llinvQty",
ifnull(hb.INV_WEIGHT,0) as "llinvWeight",
case when ifnull(ha.INV_WEIGHT,0)>0 and ifnull(hb.INV_WEIGHT,0)>0 then round((ifnull(ha.INV_WEIGHT,0)*1.0000) / (ifnull(hb.INV_WEIGHT,0)* 1.0000),4)*100 else 0 end "ccl"
from
(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment