feat(system): 租户余额列表新增租户名称字段并支持变动描述
- 在分页查询中联表返回租户名称,提升列表可读性 - 新增变动描述字段,支持充值等操作记录具体原因 - 优化 Mapper 与 Service 返回类型,统一使用 TenantBalanceRespVO
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user