Commit adb45526 by liuyang

产品成材率过滤构件零件

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