feat(system): 租户余额列表新增租户名称字段并支持变动描述

- 在分页查询中联表返回租户名称,提升列表可读性
- 新增变动描述字段,支持充值等操作记录具体原因
- 优化 Mapper 与 Service 返回类型,统一使用 TenantBalanceRespVO
This commit is contained in:
2025-11-20 19:15:31 +08:00
parent 3466996f07
commit 78b6f5624b
8 changed files with 40 additions and 9 deletions

View File

@@ -9,4 +9,16 @@
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="selectPageWithTenantName"
resultType="cn.iocoder.yudao.module.system.controller.admin.tenantbalance.vo.TenantBalanceRespVO">
select stb.*, st.name as tenantName from system_tenant_balance as stb
left join system_tenant as st on stb.id = st.id
<where>
<if test="req.id != null">
and stb.id = #{req.id,jdbcType=BIGINT}
</if>
</where>
order by stb.id desc
</select>
</mapper>