feat(entity): 添加客户实体真实姓名字段

- 在CreditMpCustomer实体中新增realName属性
- 为realName字段添加Schema注解描述
- 在关联查询SQL中加入real_name字段映射
- 更新表字段映射配置支持新字段
This commit is contained in:
2026-03-19 17:37:21 +08:00
parent 77a276e643
commit aea60e330d
2 changed files with 5 additions and 1 deletions

View File

@@ -95,6 +95,10 @@ public class CreditMpCustomer implements Serializable {
@TableField(exist = false)
private String avatar;
@Schema(description = "真实姓名")
@TableField(exist = false)
private String realName;
@Schema(description = "租户id")
private Integer tenantId;

View File

@@ -4,7 +4,7 @@
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*, u.nickname AS nickname, u.avatar AS avatar, u.phone AS phone
SELECT a.*, u.nickname AS nickname, u.avatar AS avatar, u.phone AS phone, u.real_name AS realName
FROM credit_mp_customer a
LEFT JOIN gxwebsoft_core.sys_user u ON u.user_id = a.user_id
<where>