refactor(shop): 修改查询字段名称
- 将 dealerNickname 更改为 dealerName,以更好地反映字段的实际含义 - 此修改仅影响 XML 配置文件,不涉及代码逻辑变更
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.gxwebsoft.shop.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.fasterxml.jackson.annotation.JsonFormat;
|
||||
@@ -28,9 +29,33 @@ public class ShopDealerReferee implements Serializable {
|
||||
@Schema(description = "分销商用户ID")
|
||||
private Integer dealerId;
|
||||
|
||||
@Schema(description = "分销商名称")
|
||||
@TableField(exist = false)
|
||||
private String dealerName;
|
||||
|
||||
@Schema(description = "分销商头像")
|
||||
@TableField(exist = false)
|
||||
private String dealerAvatar;
|
||||
|
||||
@Schema(description = "分销商手机号")
|
||||
@TableField(exist = false)
|
||||
private String dealerPhone;
|
||||
|
||||
@Schema(description = "用户id(被推荐人)")
|
||||
private Integer userId;
|
||||
|
||||
@Schema(description = "昵称")
|
||||
@TableField(exist = false)
|
||||
private String nickname;
|
||||
|
||||
@Schema(description = "头像")
|
||||
@TableField(exist = false)
|
||||
private String avatar;
|
||||
|
||||
@Schema(description = "手机号")
|
||||
@TableField(exist = false)
|
||||
private String phone;
|
||||
|
||||
@Schema(description = "推荐关系层级(1,2,3)")
|
||||
private Integer level;
|
||||
|
||||
|
||||
@@ -4,8 +4,16 @@
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
SELECT a.*,
|
||||
d.nickname AS dealerName,
|
||||
d.avatar AS dealerAvatar,
|
||||
d.phone AS dealerPhone,
|
||||
u.nickname,
|
||||
u.avatar,
|
||||
u.phone
|
||||
FROM shop_dealer_referee a
|
||||
LEFT JOIN gxwebsoft_core.sys_user d ON a.dealer_id = d.user_id
|
||||
LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
|
||||
<where>
|
||||
<if test="param.id != null">
|
||||
AND a.id = #{param.id}
|
||||
|
||||
@@ -4,7 +4,13 @@
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*, d.nickname AS dealerName, u.nickname, d.avatar AS dealerAvatar, u.avatar, d.phone AS dealerPhone, u.phone
|
||||
SELECT a.*,
|
||||
d.nickname AS dealerName,
|
||||
d.avatar AS dealerAvatar,
|
||||
d.phone AS dealerPhone,
|
||||
u.nickname,
|
||||
u.avatar,
|
||||
u.phone
|
||||
FROM shop_user_referee a
|
||||
LEFT JOIN gxwebsoft_core.sys_user d ON a.dealer_id = d.user_id
|
||||
LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id
|
||||
|
||||
@@ -25,6 +25,8 @@ logging:
|
||||
level:
|
||||
com.gxwebsoft: DEBUG
|
||||
com.baomidou.mybatisplus: DEBUG
|
||||
com.gxwebsoft.shop.mapper: DEBUG
|
||||
org.apache.ibatis: DEBUG
|
||||
|
||||
socketio:
|
||||
host: localhost #IP地址
|
||||
|
||||
Reference in New Issue
Block a user