key[]:{ query:2 或 query:"All" } 在已有 total 和 keyListInfo 字段时不返回默认的列表分页信息
This commit is contained in:
parent
f05835378a
commit
8715e1298d
@ -562,7 +562,8 @@ public abstract class AbstractObjectParser<T extends Object> implements ObjectPa
|
|||||||
|
|
||||||
if (isEmpty == false && ("2".equals(query) || "ALL".equals(query))) {
|
if (isEmpty == false && ("2".equals(query) || "ALL".equals(query))) {
|
||||||
String infoKey = JSONResponse.formatArrayKey(key) + "Info";
|
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("total@", "/" + key + "/total");
|
||||||
// onParse(infoKey + "@", "/" + key + "/info");
|
// onParse(infoKey + "@", "/" + key + "/info");
|
||||||
// 替换为以下性能更好、对流程干扰最小的方式:
|
// 替换为以下性能更好、对流程干扰最小的方式:
|
||||||
|
Loading…
Reference in New Issue
Block a user