From 3fb5d370abbb720ede6024ed3dc121f2c2f2968d Mon Sep 17 00:00:00 2001 From: jiangyunjie Date: Fri, 24 Apr 2020 20:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=BD=E5=8F=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/kiisoo/ic/customer/bean/FriendDTO.java | 4 ++-- .../resources/mapper/OpSellerCustomerRelationDOMapper.xml | 3 ++- .../resources/mapper/PrivilageUserShopRelationDOMapper.xml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/kiisoo/ic/customer/bean/FriendDTO.java b/src/main/java/com/kiisoo/ic/customer/bean/FriendDTO.java index fb834c4..43b4165 100644 --- a/src/main/java/com/kiisoo/ic/customer/bean/FriendDTO.java +++ b/src/main/java/com/kiisoo/ic/customer/bean/FriendDTO.java @@ -45,9 +45,9 @@ public class FriendDTO { private Date addTime; /** - * 会员类型 + * 会员标示 */ - private String vipType; + private String vipFlag; /** * 会员头像 diff --git a/src/main/resources/mapper/OpSellerCustomerRelationDOMapper.xml b/src/main/resources/mapper/OpSellerCustomerRelationDOMapper.xml index e12231f..1bec19c 100644 --- a/src/main/resources/mapper/OpSellerCustomerRelationDOMapper.xml +++ b/src/main/resources/mapper/OpSellerCustomerRelationDOMapper.xml @@ -9,7 +9,8 @@ t5.NAME AS inviteSellerName, t4.id AS inviteSellerId, t1.create_time AS addTime, - t6.avatar + t6.avatar, + t3.id as vipFlag FROM op_seller_customer_relation t1, op_customer t2 left join op_vip t3 on t2.member_id = t3.id and t3.status = 1, diff --git a/src/main/resources/mapper/PrivilageUserShopRelationDOMapper.xml b/src/main/resources/mapper/PrivilageUserShopRelationDOMapper.xml index e548c5d..eefe1dd 100644 --- a/src/main/resources/mapper/PrivilageUserShopRelationDOMapper.xml +++ b/src/main/resources/mapper/PrivilageUserShopRelationDOMapper.xml @@ -36,6 +36,7 @@ select t2.id,t2.staff_code as stafferNo,t1.`name`,t3.`name` as shopName,t3.id as storeId from privilage_user t1, poi_store_staff t2, poi_store t3 where t1.id = t2.user_id and t2.`status` = 1 and t2.store_code = t3.`code` + and t1.id = #{userId}