Commit 65d3c62d by liuyang

2024-10-24 生产管理报表

parent c92d01dc
...@@ -86,6 +86,9 @@ ...@@ -86,6 +86,9 @@
<isNotEmpty prepend=" AND " property="productCode"> <isNotEmpty prepend=" AND " property="productCode">
h.product_code = #productCode# h.product_code = #productCode#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="depositDate">
k.DEPOSIT_DATE = #depositDate#
</isNotEmpty>
) ha on h.id = ha.material_id ) ha on h.id = ha.material_id
join ( join (
select select
...@@ -137,6 +140,9 @@ ...@@ -137,6 +140,9 @@
<isNotEmpty prepend=" AND " property="companyName"> <isNotEmpty prepend=" AND " property="companyName">
k.COMPANY_NAME = #companyName# k.COMPANY_NAME = #companyName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="receiptDate">
k.RECEIPT_DATE = #receiptDate#
</isNotEmpty>
group by k.COMPANY_CODE, k.PROJ_CODE, k1.RECEIPT_DATE, k.INVENT_CODE group by k.COMPANY_CODE, k.PROJ_CODE, k1.RECEIPT_DATE, k.INVENT_CODE
) k on h.company_code = k.COMPANY_CODE ) k on h.company_code = k.COMPANY_CODE
and h.proj_code = k.PROJ_CODE and h.proj_code = k.PROJ_CODE
...@@ -151,6 +157,9 @@ ...@@ -151,6 +157,9 @@
<isNotEmpty prepend=" AND " property="companyName"> <isNotEmpty prepend=" AND " property="companyName">
h.COMPANY_NAME = #companyName# h.COMPANY_NAME = #companyName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode">
h.product_code = #inventCode#
</isNotEmpty>
) hb on h.id = hb.material_id and ha.product_code = hb.parent_prod_code ) hb on h.id = hb.material_id and ha.product_code = hb.parent_prod_code
order by h.id desc order by h.id desc
</select> </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