Commit adb45526 by liuyang

产品成材率过滤构件零件

parent 478b85e5
...@@ -75,8 +75,6 @@ ...@@ -75,8 +75,6 @@
and h.material_id = k.MAT_ID and h.material_id = k.MAT_ID
and h.product_code = k.PRDT_CODE and h.product_code = k.PRDT_CODE
and k.DELETE_FLAG = 0 and k.DELETE_FLAG = 0
and h.lv = 3
and h.product_status = 1
and (k.PRDT_CODE, k.PROCESS_ORDER) in ( and (k.PRDT_CODE, k.PROCESS_ORDER) in (
select INVENT_CODE, MAX(PROCESS_ORDER) select INVENT_CODE, MAX(PROCESS_ORDER)
from ${hggpSchema}.hgpz005a from ${hggpSchema}.hgpz005a
...@@ -86,7 +84,7 @@ ...@@ -86,7 +84,7 @@
</isNotEmpty> </isNotEmpty>
group by INVENT_CODE group by INVENT_CODE
) )
where 1=1 where h.lv = 3 and h.product_status = 1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
h.ACCOUNT_CODE = #accountCode# h.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -155,9 +153,7 @@ ...@@ -155,9 +153,7 @@
${hggpSchema}.hgkc008a k ${hggpSchema}.hgkc008a k
join ${hggpSchema}.hgkc008 k1 on join ${hggpSchema}.hgkc008 k1 on
k.RECEIVE_ID = k1.id k.RECEIVE_ID = k1.id
where where k.DELETE_FLAG = 0 and k1.status = '1'
k.DELETE_FLAG = 0
and k1.status = '1'
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
k.ACCOUNT_CODE = #accountCode# k.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -183,9 +179,7 @@ ...@@ -183,9 +179,7 @@
and h.product_code = k.INVENT_CODE and h.product_code = k.INVENT_CODE
and h.material_id = k.MAT_ID and h.material_id = k.MAT_ID
and h.ID = K.MAT_DETAIL_ID and h.ID = K.MAT_DETAIL_ID
and h.lv = 4 where h.lv = 4 AND h.product_status = 1
and h.product_status = 1
where 1=1
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
h.ACCOUNT_CODE = #accountCode# h.ACCOUNT_CODE = #accountCode#
</isNotEmpty> </isNotEmpty>
......
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