diff --git a/src/main/java/com/gxwebsoft/credit/entity/CreditMpCustomer.java b/src/main/java/com/gxwebsoft/credit/entity/CreditMpCustomer.java index 3297223..a52d88f 100644 --- a/src/main/java/com/gxwebsoft/credit/entity/CreditMpCustomer.java +++ b/src/main/java/com/gxwebsoft/credit/entity/CreditMpCustomer.java @@ -1,6 +1,7 @@ package com.gxwebsoft.credit.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import java.time.LocalDateTime; import com.baomidou.mybatisplus.annotation.TableLogic; @@ -79,6 +80,18 @@ public class CreditMpCustomer implements Serializable { @Schema(description = "用户ID") private Integer userId; + @Schema(description = "用户昵称") + @TableField(exist = false) + private String nickname; + + @Schema(description = "用户手机号") + @TableField(exist = false) + private String phone; + + @Schema(description = "用户头像") + @TableField(exist = false) + private String avatar; + @Schema(description = "租户id") private Integer tenantId; diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml index d7d961b..82cda1f 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml @@ -4,8 +4,9 @@ - SELECT a.* + SELECT a.*, u.nickname AS nickname, u.avatar AS avatar, u.phone AS phone FROM credit_mp_customer a + LEFT JOIN gxwebsoft_core.sys_user u ON u.id = a.user_id AND a.id = #{param.id} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5be3164..dcba0f0 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -4,7 +4,7 @@ server: # 多环境配置 spring: profiles: - active: glt2 + active: ysb2 application: name: server