|
@@ -256,13 +256,13 @@ public class CustomerApiController {
|
|
|
builder.append("},");//query结束
|
|
|
builder.append("\"from\":"+((pageNum-1)*10)+",");//第几页
|
|
|
builder.append("\"size\":"+pageSize+",");//查询几个
|
|
|
- builder.append("\"sort\":[{\"created_time\":{\"order\":\"desc\"}}],");//排序
|
|
|
+ builder.append("\"sort\":[{\"scustid\":{\"order\":\"asc\"}}],");//排序
|
|
|
builder.append("\"aggs\":{}");//
|
|
|
builder.append("}");
|
|
|
|
|
|
|
|
|
HttpEntity entity = new NStringEntity(builder.toString(), ContentType.APPLICATION_JSON);
|
|
|
- String url = "/shanglifeecif.individual/_search?pretty=true&sort=scustid:asc";
|
|
|
+ String url = "/shanglifeecif.individual/_search?pretty=true";
|
|
|
Request scriptRequest = new Request("GET", url);
|
|
|
scriptRequest.setEntity(entity);
|
|
|
Response response = restClient.performRequest(scriptRequest);
|