新增默认的库存

This commit is contained in:
liyj 2025-11-11 08:49:55 +08:00
parent 5e45474807
commit 41dbafffab

View File

@ -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);