未打开的不展示

打开的返回是否已开启
This commit is contained in:
wangw 2025-11-05 17:07:30 +08:00
parent c1b15950ba
commit e574a6456d
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public class DistributionCenterShopVO implements Serializable {
//收益
private String income;
//是否开启
private Boolean isEnabled;
private Boolean isEnable;

View File

@ -24,7 +24,7 @@
shop.shop_name as shopName,
shop.address as shopAddress,
user.total_income as income,
config.is_enabled as isEnabled
config.is_enable as isEnable
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
@ -43,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 and config.is_enabled = 1
inner JOIN mk_distribution_config config ON shop.id = config.shop_id and config.is_enable = 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}