From e691f2ecede6a962dfa76bb4a494ac1c80c9a389 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期六, 10 九月 2022 00:05:58 +0800
Subject: [PATCH] 设备点检记录导出接口去掉分页参数,设备保养记录查询、明细查询、导出(接口开发)

---
 VueWebApi/Controllers/BasicSettingController.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/VueWebApi/Controllers/BasicSettingController.cs b/VueWebApi/Controllers/BasicSettingController.cs
index 261cc02..6c08983 100644
--- a/VueWebApi/Controllers/BasicSettingController.cs
+++ b/VueWebApi/Controllers/BasicSettingController.cs
@@ -17,6 +17,7 @@
 {
     [RoutePrefix(prefix: "api/BasicSetting")]
     [ControllerGroup("鍩虹璁剧疆","鍦ㄧ嚎鎺ュ彛")]
+    [ChannelActionFilter]
     public class BasicSettingController : ApiController
     {
         //瀹氫箟鍏ㄥ眬淇℃伅杩斿洖鍙橀噺
@@ -239,7 +240,7 @@
         /// <returns></returns>
         [Route(template: "ImportUserExcel")]
         [HttpPost]
-        public HttpResponseMessage ImportUserExcel(HttpPostedFileBase files)
+        public HttpResponseMessage ImportUserExcel(HttpPostedFileBase files,string username)
         {
             string savePath;
             if (files == null || files.ContentLength <= 0)
@@ -249,7 +250,6 @@
             }
             else
             {
-                var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //鐧诲綍鐢ㄦ埛鍚�
                 string filename = Path.GetFileName(files.FileName);
                 int filesize = files.ContentLength;//鑾峰彇涓婁紶鏂囦欢鐨勫ぇ灏忓崟浣嶄负瀛楄妭byte
                 string fileEx = System.IO.Path.GetExtension(filename);//鑾峰彇涓婁紶鏂囦欢鐨勬墿灞曞悕
@@ -621,7 +621,7 @@
             string person = obj["person"].ToString(); //鑱旂郴浜�
             string contact = obj["contact"].ToString(); //鑱旂郴鏂瑰紡
             string description = obj["description"].ToString(); //琛ュ厖鎻忚堪
-            var usercode = "Admin";//HttpContext.Current.Request.Cookies["admin"].Value.ToString();
+            var usercode = HttpContext.Current.Request.Cookies["admin"].Value.ToString();
             string OperType = obj["OperType"].ToString();  //鎿嶄綔绫诲瀷
             mes = BasicSettingBLL.AddUpdateCurrentUnit(unitid, unitcode, unitname, mtypecode, btypecode,htypecode, person, contact, description, usercode, OperType);
             return TJson.toJson(mes);

--
Gitblit v1.9.3