chore: release server-v1.0.75
Deploy Server / release-deploy-server (push) Successful in 1m7s

出库售价(应收按售价) + 库存选择器分页上限修复 + seed 改为序列号模型

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZ4DskSRKsSiheQonFtQvx
This commit is contained in:
wangjia
2026-06-22 13:01:25 +08:00
parent 6c43800354
commit 3641f1cf16
9 changed files with 420 additions and 323 deletions
+5 -1
View File
@@ -54,9 +54,13 @@ func (h *InventoryHandler) List(c *gin.Context) {
if page < 1 {
page = 1
}
if pageSize < 1 || pageSize > 500 {
if pageSize < 1 {
pageSize = 20
}
// 超出上限钳到上限(此前是回退默认 20,导致出库选货请求大 page_size 被打回只剩 20 条)
if pageSize > 5000 {
pageSize = 5000
}
baseWhere := "inv.shop_id = ? AND inv.deleted_at IS NULL"
args := []interface{}{shopID}