carryforward

This commit is contained in:
MaxKey
2025-06-14 20:31:01 +08:00
parent 8d8e55a75e
commit 94aad786de
2 changed files with 5 additions and 0 deletions

View File

@ -31,4 +31,6 @@ public class SettlementCarryforwardVo extends VoucherTemplate{
private static final long serialVersionUID = 4969126049394752855L; private static final long serialVersionUID = 4969126049394752855L;
String voucherId; String voucherId;
Integer yearPeriod;
} }

View File

@ -7,6 +7,9 @@
from jbx_voucher_template jvt from jbx_voucher_template jvt
left join jbx_settlement_carryforward jsc left join jbx_settlement_carryforward jsc
on jvt.id = jsc.voucher_template_id and jsc.deleted = 'n' on jvt.id = jsc.voucher_template_id and jsc.deleted = 'n'
<if test="dto.yearPeriod != null ">
and jsc.year_period = #{dto.yearPeriod}
</if>
where jvt.deleted = 'n' where jvt.deleted = 'n'
<if test="dto.relatedId != null and dto.relatedId != ''"> <if test="dto.relatedId != null and dto.relatedId != ''">
and jvt.related_Id = #{dto.relatedId} and jvt.related_Id = #{dto.relatedId}