钱智社保报表问题

This commit is contained in:
钱涛 2026-03-31 15:05:58 +08:00
parent 0c6015c1c3
commit b908d1e7c4
1 changed files with 2 additions and 3 deletions

View File

@ -1813,9 +1813,8 @@
, b.total as b_total
from
(select * from hrsa_bill_detail where delete_type = 0 and payment_status=0) a
left join (select * from hrsa_bill_detail where delete_type = 0 and payment_status=1) b on a.employee_id = b.employee_id
where a.payment_organization = #{paymentOrganization} and a.bill_month = #{billMonth}
(select * from hrsa_bill_detail where delete_type = 0 and payment_status=0 and payment_organization = #{paymentOrganization} and bill_month = #{billMonth}) a
left join (select * from hrsa_bill_detail where delete_type = 0 and payment_status=1 and payment_organization = #{paymentOrganization} and bill_month = #{billMonth}) b on a.employee_id = b.employee_id
</select>