Commit 50497566 by fudahua

企业绑定门店

parent 6b830472
......@@ -144,7 +144,7 @@ public class StoreRangeServiceImpl implements StoreRangeService {
private void insertStoreRelationBatch(List<TabStoreRelation> storeRelations) {
int batchSize = 500;
int sumSize = storeRelations.size();
int count = (sumSize + 1) / batchSize;
int count = (sumSize / batchSize) + ((sumSize % batchSize > 0) ? 1 : 0);
for (int i = 0; i < count; i++) {
int from = i * batchSize;
int subSize = sumSize - from;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment