feat: 支持主列表选择每页条数 (#242)
This commit is contained in:
@@ -31,8 +31,8 @@ func DeleteInnerCodes(db *sql.DB, ids []int64, actorUserID string, now time.Time
|
||||
if len(unique) == 0 {
|
||||
return 0, fmt.Errorf("没有有效的档口入库码记录")
|
||||
}
|
||||
if len(unique) > PageSize {
|
||||
return 0, fmt.Errorf("一次最多删除当前页 %d 条记录", PageSize)
|
||||
if len(unique) > InnerCodeDeleteBatchLimit {
|
||||
return 0, fmt.Errorf("一次最多删除当前页 %d 条记录", InnerCodeDeleteBatchLimit)
|
||||
}
|
||||
return repository.SoftDeleteInnerCodeRecords(db, unique, actorUserID, now.UTC().Format(model.TimeLayout))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user