key[]:{ query:2 或 query:"All" } 在已有 total 和 keyListInfo 字段时不返回默认的列表分页信息

This commit is contained in:
TommyLemon 2024-06-16 19:24:00 +08:00
parent f05835378a
commit 8715e1298d

View File

@ -562,7 +562,8 @@ public abstract class AbstractObjectParser<T extends Object> implements ObjectPa
if (isEmpty == false && ("2".equals(query) || "ALL".equals(query))) {
String infoKey = JSONResponse.formatArrayKey(key) + "Info";
if (request.containsKey("total@") == false && request.containsKey(infoKey + "@") == false) {
if (request.containsKey("total") == false && request.containsKey(infoKey) == false
&& request.containsKey("total@") == false && request.containsKey(infoKey + "@") == false) {
// onParse("total@", "/" + key + "/total");
// onParse(infoKey + "@", "/" + key + "/info");
// 替换为以下性能更好对流程干扰最小的方式