From 2d229eef4d2b3bf972e1b4e46d027acf0d080d3b Mon Sep 17 00:00:00 2001 From: 叶松 <2217086471@qq.com> Date: 星期五, 03 十一月 2023 10:26:33 +0800 Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe --- hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/helmet/controller/HelmetController.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/helmet/controller/HelmetController.java b/hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/helmet/controller/HelmetController.java index 6988e97..86dc3df 100644 --- a/hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/helmet/controller/HelmetController.java +++ b/hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/helmet/controller/HelmetController.java @@ -1,5 +1,6 @@ package com.thhy.materials.modules.biz.helmet.controller; +import com.alibaba.fastjson.JSONObject; import com.thhy.general.common.BasicResult; import com.thhy.materials.modules.biz.helmet.service.HelmetService; import org.apache.ibatis.annotations.Mapper; @@ -44,10 +45,10 @@ - //接数据 - @PostMapping("/dataValueInsert") - public BasicResult dataValueInsert(@RequestBody Map<String,Object> values){ - return helmetService.dataValueInsert(values); + //接数据 环境监测 数据 + @PostMapping("/dataValueIn") + public BasicResult dataValueIn(@RequestBody Map<String,Object> values){ + return helmetService.dataValueIn(values); } /** @@ -82,6 +83,16 @@ public BasicResult dataValuesList(@RequestBody Map<String,Object> values){ return helmetService.dataValuesList(values); } + //AI边缘盒子 数据接收 + @PostMapping("/dataBox") + public BasicResult dataBox(@RequestBody String message){ + /** 将String转换为JSON **/ + JSONObject result= JSONObject.parseObject(message); + System.out.println("--------接收的参数为 :---------------"+result); + Integer type = Integer.valueOf(result.get("type").toString()); + return helmetService.dataBox(result); + } + } -- Gitblit v1.9.3