多店铺需求

This commit is contained in:
Tankaikai
2025-04-08 14:56:23 +08:00
parent c424f3613f
commit c4cdc83ec3
8 changed files with 241 additions and 9 deletions

View File

@@ -125,4 +125,17 @@ public class ShopUser implements Serializable {
@Column(onInsertValue = "now()", onUpdateValue = "now()")
private LocalDateTime updateTime;
/**
* 是否已经合并数据到主店 1-是 0-否 默认0
*/
private Integer isMergedToHead;
/**
* 已经合并过来的用户信息jsonArray格式,[{"id":1,"shopId":2,...},{"id":1,"shopId":2,...}]
*/
private String mergedUsers;
/**
* 适用门店id集合逗号分隔例如0,1,2,3,...查询的时候 all_shop_ids like '%,1,%';
*/
private String allShopIds;
}

View File

@@ -0,0 +1,17 @@
package com.czg.account.service;
/**
* 店铺用户同步Service
* @author tankaikai
* @since 2025-04-08 10:17
*/
public interface ShopUserSyncService {
/**
* 同步合并主分店会员信息
*
* @param headShopId 主店id
* @param branchShopId 分店id
*/
void syncMergeShopUser(Long headShopId, Long branchShopId);
}

View File

@@ -1,7 +1,5 @@
package com.czg.product.service;
import java.util.Map;
/**
* @author ww
* @description