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