From d4e4ea6405756d495806a609e24ae85ebd7345ef Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期二, 17 十二月 2024 09:30:12 +0800 Subject: [PATCH] 代码更新 --- src/main/java/com/yb/controller/THistoryController.java | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/yb/controller/THistoryController.java b/src/main/java/com/yb/controller/THistoryController.java index e97440b..a5baefb 100644 --- a/src/main/java/com/yb/controller/THistoryController.java +++ b/src/main/java/com/yb/controller/THistoryController.java @@ -138,16 +138,16 @@ @ApiOperation(value = "getSessionById", notes = "") public R getSessionById(@RequestParam(name = "sessionid", defaultValue = " ") String sessionid) { List<THistoryEntity> list = thistoriesServices.getSessionId(sessionid); - List<HashMap<Object, Object>> sList = new ArrayList<>(); - for (int i = 0; i < list.size(); i++) { - THistoryEntity th = list.get(i); - HashMap<Object, Object> hashMap = new HashMap<>(); - hashMap.put("id", th.getId()); - hashMap.put("human", th.getHuman()); - hashMap.put("ai", th.getAi()); - sList.add(hashMap); - } - PageUtils page = new PageUtils(sList,0,0,0); +// List<HashMap<Object, Object>> sList = new ArrayList<>(); +// for (int i = 0; i < list.size(); i++) { +// THistoryEntity th = list.get(i); +// HashMap<Object, Object> hashMap = new HashMap<>(); +// hashMap.put("id", th.getId()); +// hashMap.put("human", th.getHuman()); +// hashMap.put("ai", th.getAi()); +// sList.add(hashMap); +// } + PageUtils page = new PageUtils(list,0,0,0); return R.ok() .put("page", page); } -- Gitblit v1.9.3