切换店铺统计 √

下单选择会员 √
注册会员 √
完善手机号 √
会员流水信息同步 √
This commit is contained in:
Tankaikai
2025-04-11 17:46:42 +08:00
parent 8d27753cf4
commit fd577af7df

View File

@@ -203,13 +203,13 @@ public class MyStpLogic {
}
/**
* 获取店铺会员查询主店id
* 获取适用的店铺id主分店模式使用若全部开启同步返回主店id。若未开启同步则返回分店id
*
* @return 主店id
*/
public Long getVipHeadShopId() {
public Long getUsableShopId() {
Long shopId = getShopId(0L);
Long mainId = DbChain.table("tb_shop_config").select("main_id").where("id = ? and is_enable_vip_sync = ?", shopId, 1).objAs(Long.class);
Long mainId = DbChain.table("tb_shop_config").select("main_id").where("id = ? and is_enable_prod_sync = 1 and is_enable_vip_sync = 1 and is_enable_cons_sync = 1", shopId).objAs(Long.class);
if (mainId != null) {
return mainId;
}
@@ -218,6 +218,7 @@ public class MyStpLogic {
/**
* 获取主店id
*
* @return 主店id
*/
public Long getHeadShopId() {
@@ -231,6 +232,7 @@ public class MyStpLogic {
/**
* 获取主店id
*
* @param shopId 店铺id
* @return 主店id
*/
@@ -244,6 +246,7 @@ public class MyStpLogic {
/**
* 是否启用同步功能
*
* @param shopId 店铺id
* @return 主店id
*/