From c1b15950ba2c50911fc04ebc541c68c0ab87e6b3 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Wed, 5 Nov 2025 17:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E6=89=93=E5=BC=80=E7=9A=84=E4=B8=8D?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=20=E6=89=93=E5=BC=80=E7=9A=84=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=98=AF=E5=90=A6=E5=B7=B2=E5=BC=80=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/czg/market/vo/DistributionCenterShopVO.java | 4 ++++ .../src/main/resources/mapper/MkDistributionUserMapper.xml | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cash-common/cash-common-service/src/main/java/com/czg/market/vo/DistributionCenterShopVO.java b/cash-common/cash-common-service/src/main/java/com/czg/market/vo/DistributionCenterShopVO.java index f01c9fcd8..51d7d6946 100644 --- a/cash-common/cash-common-service/src/main/java/com/czg/market/vo/DistributionCenterShopVO.java +++ b/cash-common/cash-common-service/src/main/java/com/czg/market/vo/DistributionCenterShopVO.java @@ -20,6 +20,10 @@ public class DistributionCenterShopVO implements Serializable { private String shopAddress; //收益 private String income; + //是否开启 + private Boolean isEnabled; + + //标签内容 private String labelContent; diff --git a/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml b/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml index db255248e..10bfeaa62 100644 --- a/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml +++ b/cash-service/market-service/src/main/resources/mapper/MkDistributionUserMapper.xml @@ -23,9 +23,11 @@ shop.cover_img as coverImg, shop.shop_name as shopName, shop.address as shopAddress, - user.total_income as income + user.total_income as income, + config.is_enabled as isEnabled from mk_distribution_user user left join tb_shop_info shop on user.shop_id = shop.id + left JOIN mk_distribution_config config ON user.shop_id = config.shop_id where user.user_id = #{userId} and user.status > 0 and user.is_del = 0 @@ -41,7 +43,7 @@ COUNT(DISTINCT ord.id) AS orderCount, CASE WHEN COUNT(shu.id) > 0 THEN 1 ELSE 0 END AS shopUser FROM tb_shop_info shop - inner JOIN mk_distribution_config config ON shop.id = config.shop_id + inner JOIN mk_distribution_config config ON shop.id = config.shop_id and config.is_enabled = 1 LEFT JOIN mk_distribution_user du ON shop.id = du.shop_id AND du.user_id = #{userId} AND du.is_del = 0 LEFT JOIN tb_shop_user shu ON shop.id IN (shu.main_shop_id, shu.source_shop_id) AND shu.user_id = #{userId}