From 0aae85d3e241b2aa415c96f12e9f6ac415cffa49 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期三, 28 九月 2022 13:38:47 +0800
Subject: [PATCH] 登录redis存储判断是否失效过滤器修改 设备维修、维修验证接口来发
---
VueWebApi/Controllers/AppDeviceManageController.cs | 88 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 88 insertions(+), 0 deletions(-)
diff --git a/VueWebApi/Controllers/AppDeviceManageController.cs b/VueWebApi/Controllers/AppDeviceManageController.cs
index 4343ce7..a5bebdf 100644
--- a/VueWebApi/Controllers/AppDeviceManageController.cs
+++ b/VueWebApi/Controllers/AppDeviceManageController.cs
@@ -131,6 +131,10 @@
#endregion
#region[璁惧缁翠慨鐢宠,鎻愪氦淇濆瓨]
+ /// <summary>
+ /// 璁惧缁翠慨鐢宠,鎻愪氦淇濆瓨
+ /// </summary>
+ /// <returns></returns>
[Route(template: "MaintainScanDeviceApplySave")]
[HttpPost]
public HttpResponseMessage MaintainScanDeviceApplySave()
@@ -147,7 +151,91 @@
#endregion
+ #region[璁惧缁翠慨鍒楄〃]
+ /// <summary>
+ /// 璁惧缁翠慨鍒楄〃
+ /// </summary>
+ /// <returns></returns>
+ [Route(template: "RepairScanDeviceQrCodeData")]
+ [HttpGet]
+ public HttpResponseMessage RepairScanDeviceQrCodeData()
+ {
+ mes = AppDeviceManageBLL.RepairScanDeviceQrCodeData();
+ return TJson.toJson(mes);
+ }
+ #endregion
+ #region[璁惧缁翠慨鎻愪氦]
+ /// <summary>
+ /// 璁惧缁翠慨鎻愪氦
+ /// </summary>
+ /// <returns></returns>
+ [Route(template: "RepairScanDeviceSave")]
+ [HttpPost]
+ public HttpResponseMessage RepairScanDeviceSave()
+ {
+ string username = HttpContext.Current.Request["username"].ToString();//鎿嶄綔浜哄憳
+ string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//璁惧缂栫爜
+ string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //杞﹂棿缂栫爜
+ string faultdescr = HttpContext.Current.Request["faultdescr"].ToString(); //鏁呴殰鎻忚堪
+ string is_stoprepair = HttpContext.Current.Request["is_stoprepair"].ToString(); //鍋滄満缁翠慨
+ string repaircontent = HttpContext.Current.Request["repaircontent"].ToString(); //缁翠慨鍐呭
+ string replaceparts = HttpContext.Current.Request["replaceparts"].ToString(); //鏇存崲澶囦欢
+ HttpFileCollection files = HttpContext.Current.Request.Files;
+ mes = AppDeviceManageBLL.RepairScanDeviceSave(username, eqpcode, wkshpcode, faultdescr, is_stoprepair, repaircontent, replaceparts, files);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+
+ #region[缁翠慨楠岃瘉鍒楄〃]
+ /// <summary>
+ /// 缁翠慨楠岃瘉鍒楄〃
+ /// </summary>
+ /// <returns></returns>
+ [Route(template: "RepairVerificationScanDeviceData")]
+ [HttpGet]
+ public HttpResponseMessage RepairVerificationScanDeviceData()
+ {
+ mes = AppDeviceManageBLL.RepairVerificationScanDeviceData();
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[缁翠慨楠岃瘉璇︽儏淇℃伅]
+ /// <summary>
+ /// 缁翠慨楠岃瘉璇︽儏淇℃伅
+ /// </summary>
+ /// <param name="eqpcode">璁惧缂栫爜</param>
+ /// <param name="wkshpcode">杞﹂棿缂栫爜</param>
+ /// <returns></returns>
+ [Route(template: "RepairVerificationScanDeviceDataSub")]
+ [HttpGet]
+ public HttpResponseMessage RepairVerificationScanDeviceDataSub(string eqpcode,string wkshpcode)
+ {
+ mes = AppDeviceManageBLL.RepairVerificationScanDeviceDataSub(eqpcode,wkshpcode);
+ return TJson.toJson(mes);
+ }
+ #endregion
+
+ #region[缁翠慨楠岃瘉鎻愪氦]
+ /// <summary>
+ /// 缁翠慨楠岃瘉鎻愪氦
+ /// </summary>
+ /// <returns></returns>
+ [Route(template: "RepairVerificationScanDeviceSave")]
+ [HttpPost]
+ public HttpResponseMessage RepairVerificationScanDeviceSave()
+ {
+ string username = HttpContext.Current.Request["username"].ToString();//鎿嶄綔浜哄憳
+ string repairwo = HttpContext.Current.Request["repairwo"].ToString();//缁翠慨鍗曞彿
+ string eqpcode = HttpContext.Current.Request["eqpcode"].ToString();//璁惧缂栫爜
+ string wkshpcode = HttpContext.Current.Request["wkshpcode"].ToString(); //杞﹂棿缂栫爜
+ string result = HttpContext.Current.Request["result"].ToString(); //楠岃瘉缁撴灉
+ mes = AppDeviceManageBLL.RepairVerificationScanDeviceSave(username, repairwo, eqpcode, wkshpcode, result);
+ return TJson.toJson(mes);
+ }
+ #endregion
#region[瀹夌伅鍛煎彨鎵弿宸ヤ綅]
--
Gitblit v1.9.3