Explorar el Código

指标详情推送

wangjiawen hace 4 años
padre
commit
33ae635699

+ 32 - 0
src/main/java/com/gyee/frame/controller/app/TargetdetailController.java

@@ -51,4 +51,36 @@ public class TargetdetailController extends SocketToolController {
         TargetdetailService.targetdetail_histogram_pointMap = pointMap;
         return remoteAddr;
     }
+
+
+    @ResponseBody
+    @RequestMapping("/close_targetdetail_target")
+    public String close_targetdetail(HttpServletRequest httpServletRequest,String pointKey) throws Exception {
+        String remoteAddr = httpServletRequest.getRemoteAddr();
+        Map<String, String> pointMap = TargetdetailService.targetdetail_target_pointMap;
+        pointMap.remove(remoteAddr);
+        TargetdetailService.targetdetail_target_pointMap = pointMap;
+        return remoteAddr;
+    }
+
+    @ResponseBody
+    @RequestMapping("/close_targetdetail_curve")
+    public String close_targetdetail_curve(HttpServletRequest httpServletRequest,String pointKey) throws Exception {
+        String remoteAddr = httpServletRequest.getRemoteAddr();
+        Map<String, String> pointMap = TargetdetailService.targetdetail_curve_pointMap;
+        pointMap.remove(remoteAddr);
+        TargetdetailService.targetdetail_curve_pointMap = pointMap;
+        return remoteAddr;
+    }
+
+    @ResponseBody
+    @RequestMapping("/close_targetdetail_histogram")
+    public String close_targetdetail_histogram(HttpServletRequest httpServletRequest,String pointKey) throws Exception {
+        String remoteAddr = httpServletRequest.getRemoteAddr();
+        Map<String, String> pointMap = TargetdetailService.targetdetail_histogram_pointMap;
+        pointMap.remove(remoteAddr);
+        TargetdetailService.targetdetail_histogram_pointMap = pointMap;
+        return remoteAddr;
+    }
+
 }