Commit 3d0a3351 authored by 黎博's avatar 黎博

修改/api/message/get type=104

parent bc1b1b61
...@@ -424,10 +424,13 @@ public class OrderController { ...@@ -424,10 +424,13 @@ public class OrderController {
// TODO // TODO
break; break;
case "104": case "104":
// 获取所有key
Set<String> set = redisUtils.keys("afs:outline:*"); Set<String> set = redisUtils.keys("afs:outline:*");
if (!set.isEmpty()) { if (!set.isEmpty()) {
for (String afsOutlineStr: set) { // 循环遍历key,获取value
AfsOutlineRequest.AfsOutlineParam afsOutlineParam = JSON.parseObject(afsOutlineStr, AfsOutlineRequest.AfsOutlineParam.class); for (String afsOutlineKey: set) {
String afsOutlineValue = redisUtils.get(afsOutlineKey).toString();
AfsOutlineRequest.AfsOutlineParam afsOutlineParam = JSON.parseObject(afsOutlineValue, AfsOutlineRequest.AfsOutlineParam.class);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("id", RandomStringUtils.randomNumeric(16)); map.put("id", RandomStringUtils.randomNumeric(16));
map.put("time", DateUtils.convertDate(new Date(), "yyyy-mm-dd hh:MM:ss")); map.put("time", DateUtils.convertDate(new Date(), "yyyy-mm-dd hh:MM:ss"));
...@@ -444,7 +447,7 @@ public class OrderController { ...@@ -444,7 +447,7 @@ public class OrderController {
map.put("result", childMap); map.put("result", childMap);
// 处理完就删除 // 处理完就删除
redisUtils.del("afs:outline:" + afsOutlineParam.getOrderId()); // redisUtils.del("afs:outline:" + afsOutlineParam.getOrderId());
result.add(map); result.add(map);
} }
} }
......
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