新增默认的库存
This commit is contained in:
parent
5e45474807
commit
41dbafffab
@ -52,6 +52,9 @@ public class ShopBatchSubmitListener extends AnalysisEventListener<SxGoosModelEx
|
||||
@Setter
|
||||
@Getter
|
||||
private Map<String, Integer> brandMaps;
|
||||
@Setter
|
||||
@Getter
|
||||
private Integer automatic;
|
||||
|
||||
public ShopBatchSubmitListener(SyncThirdDataService syncThirdDataService, SyncStoreSpecsService syncStoreSpecsService) {
|
||||
this.syncThirdDataService = syncThirdDataService;
|
||||
@ -171,7 +174,7 @@ public class ShopBatchSubmitListener extends AnalysisEventListener<SxGoosModelEx
|
||||
Gson gson = new Gson();
|
||||
String jsonShops = gson.toJson(batchCopy);
|
||||
JSONArray jsonArray = new JSONArray(jsonShops);
|
||||
syncThirdDataService.baseSaveOrUpdateGoodsBatch(jsonArray, storeId, isNegativeAllowed, brandMaps);
|
||||
syncThirdDataService.baseSaveOrUpdateGoodsBatch(jsonArray, storeId, isNegativeAllowed, brandMaps,automatic);
|
||||
log.info("已提交批次: {} 条", batchCopy.size());
|
||||
success.getAndIncrement();
|
||||
saveSnycStoreSpec(sepcsMap);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user