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