|
@@ -116,7 +116,7 @@ public class ChatRecordController {
|
|
Long skip = null, limit = null;
|
|
Long skip = null, limit = null;
|
|
Map map = new HashMap();
|
|
Map map = new HashMap();
|
|
QueryWrapper qw = new QueryWrapper<>();
|
|
QueryWrapper qw = new QueryWrapper<>();
|
|
- qw.orderByDesc("time");
|
|
|
|
|
|
+ qw.orderByAsc("time");
|
|
/** 参数处理处理 */
|
|
/** 参数处理处理 */
|
|
for (String key : allParams.keySet()) {
|
|
for (String key : allParams.keySet()) {
|
|
Object value = allParams.get(key);
|
|
Object value = allParams.get(key);
|
|
@@ -130,17 +130,20 @@ public class ChatRecordController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/** 分页处理 */
|
|
/** 分页处理 */
|
|
|
|
+ List returnList = null;
|
|
if (null != skip && null != limit) {
|
|
if (null != skip && null != limit) {
|
|
IPage page = new Page<>(skip, limit);
|
|
IPage page = new Page<>(skip, limit);
|
|
IPage pageResult = service.page(page, qw);
|
|
IPage pageResult = service.page(page, qw);
|
|
List data = pageResult.getRecords();
|
|
List data = pageResult.getRecords();
|
|
|
|
+ returnList = service.getUserAndCustomerName(data);
|
|
long total = pageResult.getTotal();
|
|
long total = pageResult.getTotal();
|
|
- map.put("data", data);
|
|
|
|
map.put("total", total);
|
|
map.put("total", total);
|
|
} else {
|
|
} else {
|
|
List list = service.list(qw);
|
|
List list = service.list(qw);
|
|
- map.put("data", list);
|
|
|
|
|
|
+ returnList = service.getUserAndCustomerName(list);
|
|
}
|
|
}
|
|
|
|
+ map.put("data", returnList);
|
|
|
|
+
|
|
return ResponseFormat.success(map);
|
|
return ResponseFormat.success(map);
|
|
}
|
|
}
|
|
|
|
|