refactor: 更新 BatchUpdateResulttoString 方法

This commit is contained in:
2026-05-26 00:26:59 +08:00
parent 266230fddd
commit 8823a78262

View File

@@ -72,7 +72,7 @@ public class BatchUpdateResult {
/**
* 获取批次更新结果
*/
*/
public int[] getUpdateCounts(int batchIndex) {
int[] updateCounts = this.allUpdateCounts.get(batchIndex);
return updateCounts != null ? updateCounts.clone() : null;
@@ -80,7 +80,7 @@ public class BatchUpdateResult {
/**
* 获取错误批次号
*/
*/
public int[] getErrorBatchIndexes() {
return this.allErrorsInfo.keySet().stream().mapToInt(Integer::intValue).toArray();
}
@@ -179,14 +179,14 @@ public class BatchUpdateResult {
@Override
public String toString() {
return "BatchUpdateResult ["
+ "total()=" + total
+ ", batchCount()=" + batchCount
+ ", batchSize()=" + batchSize
+ ", status()=" + status
+ ", completeBatchCount()=" + completeBatchCount
+ ", successBatchCount()=" + successBatchCount
+ ", errorBatchCount()=" + getErrorBatchCount()
+ ", remainingBatchCount()=" + getRemainingBatchCount()
+ "total=" + total
+ ", batchCount=" + batchCount
+ ", batchSize=" + batchSize
+ ", status=" + status
+ ", completeBatchCount=" + completeBatchCount
+ ", successBatchCount=" + successBatchCount
+ ", errorBatchCount=" + getErrorBatchCount()
+ ", remainingBatchCount=" + getRemainingBatchCount()
+ "]";
}
}