diff --git a/src/main/java/com/gxwebsoft/glt/entity/GltTicketOrder.java b/src/main/java/com/gxwebsoft/glt/entity/GltTicketOrder.java index e91b042..805ea4b 100644 --- a/src/main/java/com/gxwebsoft/glt/entity/GltTicketOrder.java +++ b/src/main/java/com/gxwebsoft/glt/entity/GltTicketOrder.java @@ -1,6 +1,7 @@ package com.gxwebsoft.glt.entity; import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.fasterxml.jackson.annotation.JsonFormat; @@ -43,8 +44,21 @@ public class GltTicketOrder implements Serializable { private Integer addressId; @Schema(description = "收货地址") + @TableField(exist = false) private String address; + @Schema(description = "省") + @TableField(exist = false) + private String province; + + @Schema(description = "市") + @TableField(exist = false) + private String city; + + @Schema(description = "区") + @TableField(exist = false) + private String region; + @Schema(description = "买家留言") private String buyerRemarks; @@ -61,6 +75,18 @@ public class GltTicketOrder 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 = "排序(数字越小越靠前)") private Integer sortNumber; diff --git a/src/main/java/com/gxwebsoft/glt/mapper/xml/GltTicketOrderMapper.xml b/src/main/java/com/gxwebsoft/glt/mapper/xml/GltTicketOrderMapper.xml index da3ee1d..568b9c6 100644 --- a/src/main/java/com/gxwebsoft/glt/mapper/xml/GltTicketOrderMapper.xml +++ b/src/main/java/com/gxwebsoft/glt/mapper/xml/GltTicketOrderMapper.xml @@ -4,8 +4,10 @@ - SELECT a.* + SELECT a.*, u.nickname, u.phone, u.avatar FROM glt_ticket_order a + LEFT JOIN gxwebsoft_core.sys_user u ON a.user_id = u.user_id + AND a.id = #{param.id}