int型のpageSize = 5000 ; INT totalSize = rewardAmounts.size()。 int型 TOTALPAGE = totalSize / pageSizeを。 もし(pageSizeを> totalSize){ rewardAmountService.updateBatch(rewardAmounts)。 } 他{ ため(int型 i = 0; iは<TOTALPAGE; iは++ ){ rewardAmountService.updateBatch(rewardAmounts.subList(iは、のpageSizeを*(I + 1)* のpageSize))。 } もし(totalSize%のpageSize!= 0 ){ rewardAmountService.updateBatch(rewardAmounts.subList(totalSize - totalSize%のpageSize、totalSize))。 } }