From 27fdc1d59cb8a98b547372fe4bf3f737057e3b77 Mon Sep 17 00:00:00 2001
From: chenxiangxue <910695411@qq.com>
Date: Wed, 26 Jun 2024 09:35:20 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E7=9A=AE=E5=B8=A6=E7=A7=A4=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/api/WeighterController.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/CompetitionAPI/CompetitionAPI/CompetitionAPI/Controllers/api/WeighterController.cs b/CompetitionAPI/CompetitionAPI/CompetitionAPI/Controllers/api/WeighterController.cs
index 5c8b3ed..8e13552 100644
--- a/CompetitionAPI/CompetitionAPI/CompetitionAPI/Controllers/api/WeighterController.cs
+++ b/CompetitionAPI/CompetitionAPI/CompetitionAPI/Controllers/api/WeighterController.cs
@@ -77,6 +77,18 @@ namespace CompetitionAPI.Controllers.api
return Json(Tool.GetJsonWithCode(APICode.Success, tmp));
}
+ ///
+ /// 根据企业id获取所有皮带秤实时数据
+ ///
+ ///
+ ///
+ [HttpGet]
+ public JsonResult GetRealTimeDataByMonitorId(string monitorId)
+ {
+ var mysql = Configuration.GetConnectionString("MySQL").ToString();
+ var tmp = bll_pipeReal.GetModelList(string.Format("MONITOR_ID = '{0}'",monitorId));
+ return Json(Tool.GetJsonWithCode(APICode.Success, tmp));
+ }
///
/// 获取一个皮带秤历史数据列表(按时间倒序,间隔筛选出N条)