Commit 85520efc by songyinghui

feat: 数据接口排序

parent 80b39cf3
......@@ -164,6 +164,8 @@ public class MaterialDataAdaptor {
inlineParams.put("fixedDateDiff", fixedDateDiff);
if (StringUtils.isNotBlank(orderField)) {
inlineParams.put("orderByField", orderField + " " +orderStr);
}else {
inlineParams.put("orderByField", "enterpriseId asc ");
}
if (CollectionUtil.isNotEmpty(storeIds)) {
inlineParams.put("storeId", StringUtils.join(storeIds, ","));
......@@ -201,6 +203,8 @@ public class MaterialDataAdaptor {
inlineParams.put("fixedDateDiff", fixedDateDiff);
if (StringUtils.isNotBlank(orderField)) {
inlineParams.put("orderByField", orderField + " " + orderStr);
}else {
inlineParams.put("orderByField", "enterpriseId asc ");
}
if (CollectionUtil.isNotEmpty(storeIds)) {
inlineParams.put("storeId", StringUtils.join(storeIds, ","));
......@@ -263,6 +267,8 @@ public class MaterialDataAdaptor {
}
if (StringUtils.isNotBlank(orderField)) {
inlineParams.put("orderByField", orderField + " " + orderStr);
}else {
inlineParams.put("orderByField", "enterpriseId asc ");
}
Map<String, Object> result = this.doHttp(JSON.toJSONString(params), apolloKey);
if (result.get("data") == null) {
......@@ -329,6 +335,8 @@ public class MaterialDataAdaptor {
if (StringUtils.isNotBlank(orderField)) {
String orderStr = " " + order;
inlineParams.put("orderByField", orderField + orderStr);
}else {
inlineParams.put("orderByField", "enterpriseId asc ");
}
Map<String, Object> result = this.doHttp(JSON.toJSONString(params), apolloKey);
if (result.get("data") == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment