From fc4894cace1eb65732b5f75767ce5657bc4d586e Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期二, 06 九月 2022 19:11:15 +0800
Subject: [PATCH] 看板滚动公告查询接口开发

---
 VueWebApi/Controllers/BasicSettingController.cs |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/VueWebApi/Controllers/BasicSettingController.cs b/VueWebApi/Controllers/BasicSettingController.cs
index b42caee..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
     {
         //瀹氫箟鍏ㄥ眬淇℃伅杩斿洖鍙橀噺
@@ -171,12 +172,13 @@
             string Password = obj["Password"].ToString(); //瀵嗙爜
             string Enable = obj["Enable"].ToString(); //鍦ㄨ亴鐘舵��
             string StuOrg = obj["StuOrg"].ToString(); //閫夋嫨缁勭粐缂栫爜
+            string groupcode= obj["groupcode"].ToString(); //鎵�灞炵彮缁勭紪鐮�
             string wagetype = obj["wagetype"].ToString(); //宸ヨ祫绫诲瀷
             string Mobile = obj["Mobile"].ToString(); //鑱旂郴鏂瑰紡
             string Email = obj["Email"].ToString(); //鐢靛瓙閭
             string Operator = obj["Operator"].ToString(); //鎿嶄綔浜哄憳
             string OperType = obj["OperType"].ToString();  //鎿嶄綔绫诲瀷
-            mes = BasicSettingBLL.AddUpdateUser(UserId, UserCode, UserName, Password, Enable, StuOrg, wagetype, Mobile, Email, Operator, OperType);
+            mes = BasicSettingBLL.AddUpdateUser(UserId, UserCode, UserName, Password, Enable, StuOrg, groupcode, wagetype, Mobile, Email, Operator, OperType);
             return TJson.toJson(mes);
         }
         #endregion
@@ -238,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)
@@ -248,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);//鑾峰彇涓婁紶鏂囦欢鐨勬墿灞曞悕
@@ -620,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