diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerMainRespVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerMainRespVO.java index 22a42ce9..a0ebcb1e 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerMainRespVO.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerMainRespVO.java @@ -28,6 +28,8 @@ public class CustomerMainRespVO extends CustomerMain { List labelList; /**车辆品牌型号数组*/ List brandAndModel; + /**会员名称 */ + private String levelName; /**是否车主(0否1是)*/ private String isOwner; diff --git a/dl-module-base/src/main/resources/mapper/custom/CustomerMainMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CustomerMainMapper.xml index b18584f2..9317ba0c 100644 --- a/dl-module-base/src/main/resources/mapper/custom/CustomerMainMapper.xml +++ b/dl-module-base/src/main/resources/mapper/custom/CustomerMainMapper.xml @@ -36,10 +36,12 @@ main.inviter AS inviter, main.inviter_type AS inviterType, main.status AS status, - group_concat(item.ser_content) AS serContents + group_concat(item.ser_content) AS serContents, + memberLevel.name AS levelName FROM base_customer_main main LEFT JOIN base_customer_item item ON main.id = item.cus_id AND item.deleted = 0 + LEFT JOIN dl_member_level memberLevel ON main.member_level_id = memberLevel.id main.deleted = 0