同步数据 历史同步字段 回填
This commit is contained in:
@@ -192,7 +192,7 @@ public class ShopSyncServiceImpl implements ShopSyncService {
|
||||
public Map<Long, Long> syncUnit(Long sourceShopId, Long pointShopId, List<Map<String, Object>> mainMapList) {
|
||||
Map<Long, Long> unitMap = new HashMap<>();
|
||||
List<Long> pointShopUnits = new ArrayList<>();
|
||||
List<ShopProdUnit> pointUnits = unitService.queryChain().select(ShopProdUnit::getSyncId)
|
||||
List<ShopProdUnit> pointUnits = unitService.queryChain()
|
||||
.eq(ShopProdUnit::getShopId, pointShopId)
|
||||
.isNotNull(ShopProdUnit::getSyncId)
|
||||
.list();
|
||||
@@ -257,7 +257,7 @@ public class ShopSyncServiceImpl implements ShopSyncService {
|
||||
public Map<Long, Long> syncSpec(Long sourceShopId, Long pointShopId, List<Map<String, Object>> mainMapList) {
|
||||
Map<Long, Long> specMap = new HashMap<>();
|
||||
List<Long> pointShopSpecs = new ArrayList<>();
|
||||
List<ShopProdSpec> pointList = specService.queryChain().select(ShopProdSpec::getSyncId)
|
||||
List<ShopProdSpec> pointList = specService.queryChain()
|
||||
.eq(ShopProdSpec::getShopId, pointShopId)
|
||||
.isNotNull(ShopProdSpec::getSyncId)
|
||||
.list();
|
||||
@@ -322,7 +322,7 @@ public class ShopSyncServiceImpl implements ShopSyncService {
|
||||
public Map<Long, Long> syncCategory(Long sourceShopId, Long pointShopId, List<Map<String, Object>> mainMapList) {
|
||||
Map<Long, Long> categoryMap = new HashMap<>();
|
||||
List<Long> pointShopCateGory = new ArrayList<>();
|
||||
List<ShopProdCategory> pointList = categoryService.queryChain().select(ShopProdCategory::getSyncId)
|
||||
List<ShopProdCategory> pointList = categoryService.queryChain()
|
||||
.eq(ShopProdCategory::getShopId, pointShopId)
|
||||
.isNotNull(ShopProdCategory::getSyncId)
|
||||
.list();
|
||||
|
||||
Reference in New Issue
Block a user