Commit bd8f0147 by liuyang

产品成材率添加过滤条件

parent 0ad28df9
......@@ -98,13 +98,7 @@
h.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
h.proj_name = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productCode">
h.product_code = #productCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depositDate">
k.DEPOSIT_DATE = #depositDate#
h.proj_name like concat('%',#projName#,'%')
</isNotEmpty>
) ha
join (
......@@ -149,10 +143,8 @@
k1.RECEIPT_DATE ,
sum(k.INV_QTY) as INV_QTY,
sum(k.INV_WEIGHT) as INV_WEIGHT
from
${hggpSchema}.hgkc008a k
join ${hggpSchema}.hgkc008 k1 on
k.RECEIVE_ID = k1.id
from ${hggpSchema}.hgkc008a k
join ${hggpSchema}.hgkc008 k1 on k.RECEIVE_ID = k1.id
where k.DELETE_FLAG = 0 and k1.status = '1'
<isNotEmpty prepend=" AND " property="accountCode">
k.ACCOUNT_CODE = #accountCode#
......@@ -163,9 +155,6 @@
<isNotEmpty prepend=" AND " property="companyName">
k.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="receiptDate">
k.RECEIPT_DATE = #receiptDate#
</isNotEmpty>
group by
k.COMPANY_CODE,
k.PROJ_CODE,
......@@ -189,13 +178,35 @@
<isNotEmpty prepend=" AND " property="companyName">
h.COMPANY_NAME = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode">
h.product_code = #inventCode#
<isNotEmpty prepend=" AND " property="projCode">
h.proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
h.proj_name like concat('%',#projName#,'%')
</isNotEmpty>
) hb on
ha.company_code = hb.COMPANY_CODE
and ha.proj_code = hb.PROJ_CODE
and ha.product_code = hb.parent_prod_code
where 1=1
<isNotEmpty prepend=" AND " property="depositDate">
ha.DEPOSIT_DATE = #depositDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="receiptDate">
hb.RECEIPT_DATE = #receiptDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productCode">
ha.product_code = #productCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productName">
ha.product_name like concat('%',#productName#,'%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode">
hb.product_code = #inventCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventName">
hb.product_name like concat('%',#inventName#,'%')
</isNotEmpty>
order by
ha.id desc
</select>
......
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