feat(oa): 添加财务模块主表分页查询功能

- 新增 selectMainPageList 方法用于主表分页查询
- 在 SysOaFinanceMapper.xml 中添加对应的 SQL 查询语句
- 修改 selectPageFinanceList 实现,先查询主表数据再批量查询子表数据
- 通过 financeId 分组将子表数据封装到对应的主表记录中
- 修复查询条件中的字段前缀问题,统一使用表别名 sof
This commit is contained in:
2026-03-13 15:11:45 +08:00
parent febcf3ec8a
commit 4d4ab32ab1
3 changed files with 48 additions and 3 deletions

View File

@@ -97,6 +97,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
${ew.getCustomSqlSegment}
</select>
<select id="selectMainPageList" resultMap="SysOaFinanceResult">
select sof.finance_id,
sof.project_id,
sof.finance_title,
sof.finance_parties,
sof.pay_type,
sof.finance_type,
sof.finance_time,
sof.make_ratio,
sof.make_price,
sof.make_time,
sof.make_explain,
sof.accessory,
sof.remark as finance_remark,
sof.create_by,
sof.create_time,
sof.update_by,
sof.update_time,
sof.out_type,
sof.cost_category,
sof.signing_company,
sof.payment_progress_id,
sof.status
from sys_oa_finance sof
${ew.getCustomSqlSegment}
</select>
<select id="selectFinanceList" resultMap="SysOaFinanceResult">
select sof.finance_id,
sof.project_id,