docs: 统一修正全项目“SN管理”相关术语为“序列号”

本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
This commit is contained in:
SunYF
2026-10-10 15:58:59 +08:00
parent b032f47fc7
commit 8be6e03a15
335 changed files with 5742 additions and 1616 deletions
+9
View File
@@ -175,7 +175,16 @@ func listUsersHandler(ctx *svc.ServiceContext) http.HandlerFunc {
if pageSize < 1 || pageSize > 200 {
pageSize = 20
}
keyword := strings.TrimSpace(r.URL.Query().Get("keyword"))
status := r.URL.Query().Get("status")
q := ctx.EntClient.User.Query()
if keyword != "" {
kw := keyword
q = q.Where(user.Or(user.UsernameContainsFold(kw), user.RealNameContainsFold(kw)))
}
if status == "true" || status == "false" {
q = q.Where(user.IsActiveEQ(status == "true"))
}
total, err := q.Count(ctx0())
if err != nil {
fail(w, http.StatusInternalServerError, err.Error())