feat(entity): 添加客户实体真实姓名字段
- 在CreditMpCustomer实体中新增realName属性 - 为realName字段添加Schema注解描述 - 在关联查询SQL中加入real_name字段映射 - 更新表字段映射配置支持新字段
This commit is contained in:
@@ -95,6 +95,10 @@ public class CreditMpCustomer implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
|
@Schema(description = "真实姓名")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String realName;
|
||||||
|
|
||||||
@Schema(description = "租户id")
|
@Schema(description = "租户id")
|
||||||
private Integer tenantId;
|
private Integer tenantId;
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<!-- 关联查询sql -->
|
<!-- 关联查询sql -->
|
||||||
<sql id="selectSql">
|
<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
|
FROM credit_mp_customer a
|
||||||
LEFT JOIN gxwebsoft_core.sys_user u ON u.user_id = a.user_id
|
LEFT JOIN gxwebsoft_core.sys_user u ON u.user_id = a.user_id
|
||||||
<where>
|
<where>
|
||||||
|
|||||||
Reference in New Issue
Block a user