From 6356d547e2058a7ab12e384330155dd95bc5928d Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期四, 18 八月 2022 09:39:05 +0800
Subject: [PATCH] 设备点检标准(关联设备查询、提交)接口开发 设备保养标准(查询、新增、编辑、删除、查看、关联设备查询、关联设备提交)接口开发

---
 VueWebApi/Controllers/ProductModelController.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/VueWebApi/Controllers/ProductModelController.cs b/VueWebApi/Controllers/ProductModelController.cs
index 9bda785..90e51e8 100644
--- a/VueWebApi/Controllers/ProductModelController.cs
+++ b/VueWebApi/Controllers/ProductModelController.cs
@@ -282,14 +282,15 @@
         /// 瀛樿揣妗f鍏宠仈宸ヨ壓璺嚎鎻愪氦
         /// </summary>
         /// <param name="partcode">鐗╂枡缂栫爜</param>
+        /// <param name="defaultroute_code">榛樿宸ヨ壓璺嚎缂栫爜</param>
         /// <param name="json">鎻愪氦鏁版嵁瀵硅薄</param>
         /// <returns></returns>
         [Route(template: "SaveInventoryFile")]
         [HttpPost]
-        public HttpResponseMessage SaveInventoryFile(string partcode, List<ObjectData> json)
+        public HttpResponseMessage SaveInventoryFile(string partcode, List<ObjectData> json, string defaultroute_code = null)
         {
             var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //鎿嶄綔浜哄憳
-            mes = ProductModelBLL.SaveInventoryFile(partcode, username, json);
+            mes = ProductModelBLL.SaveInventoryFile(partcode, defaultroute_code, username, json);
             return TJson.toJson(mes);
         }
         #endregion
@@ -361,8 +362,7 @@
         [HttpPost]
         public HttpResponseMessage AddUpdateRoute(string opertype, RoutEdit json,string id=null)
         {
-            //var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //鎿嶄綔浜哄憳
-            var username = "Admin";
+            var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //鎿嶄綔浜哄憳
             mes = ProductModelBLL.AddUpdateRoute(id, opertype, username, json);
             return TJson.toJson(mes);
         }

--
Gitblit v1.9.3