Commit 4bf77a0a by liuyang

1.生产成材率接口优化

parent 2bf1917b
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
ha.length as "length", ha.length as "length",
ha.width as "width", ha.width as "width",
ha.thick as "thick", ha.thick as "thick",
ha.quantity as "quantity", ifnull(ha.quantity,0) as "quantity",
ha.single_weight as "singleWeight", ifnull(ha.single_weight,0) as "singleWeight",
ha.total_weight as "totalWeight", ifnull(ha.total_weight,0) as "totalWeight",
ha.DEPOSIT_DATE as "depositDate", ha.DEPOSIT_DATE as "depositDate",
ha.INV_QTY as "invQty", ifnull(ha.INV_QTY,0) as "invQty",
ha.INV_UNIT_WEIGHT as "invUnitWeight", ifnull(ha.INV_UNIT_WEIGHT,0) as "invUnitWeight",
ha.INV_WEIGHT as "invWeight", ifnull(ha.INV_WEIGHT,0) as "invWeight",
hb.product_code as "clproductCode" , hb.product_code as "clproductCode" ,
hb.product_name as "clproductName", hb.product_name as "clproductName",
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
hb.length as "cllength", hb.length as "cllength",
hb.width as "clwidth", hb.width as "clwidth",
hb.thick as "clthick", hb.thick as "clthick",
hb.quantity as "clquantity", ifnull(hb.quantity,0) as "clquantity",
hb.total_weight as "cltotalWeight", ifnull(hb.total_weight,0) as "cltotalWeight",
hb.RECEIPT_DATE as "receiptDate", hb.RECEIPT_DATE as "receiptDate",
hb.INV_QTY as "llinvQty", ifnull(hb.INV_QTY,0) as "llinvQty",
hb.INV_WEIGHT as "llinvWeight", 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" 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 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