同步 日志

This commit is contained in:
2025-04-10 10:50:47 +08:00
parent 666b0f481e
commit 46f6481552

View File

@@ -120,6 +120,7 @@ public class ShopSyncServiceImpl implements ShopSyncService {
@Override
@Transactional(rollbackFor = Exception.class)
public void sync(Long sourceShopId, Long targetShopId, Long sysUserId) {
log.info("同步开始,源店铺ID:{},目标店铺ID:{}", sourceShopId, targetShopId);
Map<Long, Long> unitMap;
Map<Long, Long> specMap;
Map<Long, Long> categoryMap;
@@ -161,6 +162,8 @@ public class ShopSyncServiceImpl implements ShopSyncService {
buildNotice(mainMapList, "耗材信息同步", consInfoMap.size(), null);
syncConsPro(sourceShopId, targetShopId, consInfoMap, proMap);
syncNoticeService.addNotice(targetShopId, sysUserId, "数据同步", JSON.toJSONString(mainMapList), null);
log.info("同步结束,源店铺ID:{},目标店铺ID:{}", sourceShopId, targetShopId);
}
/**