-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ai): add @AdminOnlyTag to SYNC_AI_METADATA to hide internal system tag #3354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 5.5.6
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -483,7 +483,15 @@ public ZQLQueryReturn queryUseZQL(APIQueryMessage msg, Class inventoryClass) { | |||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| if (msg.getSortBy() != null) { | ||||||||||||||||||||||||||
| sb.add(String.format("order by %s %s", msg.getSortBy(), msg.getSortDirection())); | ||||||||||||||||||||||||||
| if ("uuid".equals(msg.getSortBy())) { | ||||||||||||||||||||||||||
| sb.add(String.format("order by %s %s", msg.getSortBy(), msg.getSortDirection())); | ||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||
| // 追加 uuid 作为 tiebreaker,确保排序稳定 | ||||||||||||||||||||||||||
| sb.add(String.format("order by %s %s, uuid asc", msg.getSortBy(), msg.getSortDirection())); | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
| } else if (!msg.isCount()) { | ||||||||||||||||||||||||||
| // 无排序字段时添加默认排序 | ||||||||||||||||||||||||||
| sb.add("order by uuid asc"); | ||||||||||||||||||||||||||
|
Comment on lines
+489
to
+494
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 注释应使用英文,不应包含中文。 根据编码规范,代码中不应有中文,包括注释。请将第 489 行和第 493 行的中文注释改为英文。 建议修复 } else {
- // 追加 uuid 作为 tiebreaker,确保排序稳定
+ // Append uuid as tiebreaker to ensure stable sorting
sb.add(String.format("order by %s %s, uuid asc", msg.getSortBy(), msg.getSortDirection()));
}
} else if (!msg.isCount()) {
- // 无排序字段时添加默认排序
+ // Add default sorting when no sortBy is specified
sb.add("order by uuid asc");As per coding guidelines: "代码里不应当有有中文,包括报错、注释等都应当使用正确的、无拼写错误的英文来写" 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| if (msg.getLimit() != null) { | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释应使用英文,不应包含中文。
根据编码规范,代码中不应有中文,包括注释。请将第 736 行和第 740 行的中文注释改为英文。
建议修复
} else { - // 追加 uuid 作为 tiebreaker,确保排序稳定 + // Append uuid as tiebreaker to ensure stable sorting ret = String.format("%s order by %s.%s %s, %s.uuid ASC", ret, entityName, msg.getSortBy(), msg.getSortDirection().toUpperCase(), entityName); } } else if (!msg.isCount()) { - // 无排序字段时添加默认排序 + // Add default sorting when no sortBy is specified ret = String.format("%s order by %s.uuid ASC", ret, entityName);As per coding guidelines: "代码里不应当有有中文,包括报错、注释等都应当使用正确的、无拼写错误的英文来写"
🤖 Prompt for AI Agents