From b7041949338728f4f8b7cc96f4ed6a92b40fda36 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期五, 05 一月 2024 12:30:56 +0800
Subject: [PATCH] 1.Startup.cs 文件中增加授权.apk文件 2.Excel下载方法中增加.net core直接下载wwwroot下的文件代码(暂时不用,先注释掉)

---
 VueWebCoreApi/DLL/DAL/BasicSettingDAL.cs |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/VueWebCoreApi/DLL/DAL/BasicSettingDAL.cs b/VueWebCoreApi/DLL/DAL/BasicSettingDAL.cs
index 2bd8568..8b4db5a 100644
--- a/VueWebCoreApi/DLL/DAL/BasicSettingDAL.cs
+++ b/VueWebCoreApi/DLL/DAL/BasicSettingDAL.cs
@@ -3039,6 +3039,14 @@
             IEnumerable<object> data;
             try
             {
+                if (flag == "-1" && stckcode == null)
+                {
+                    mes.code = "200";
+                    mes.count = 0;
+                    mes.message = "鏆傛棤鏁版嵁!";
+                    mes.data = null;
+                    return mes;
+                }
                 string[] classcode = Array.ConvertAll<string, string>(stckcode.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries), s => s.ToString()); //string鍒嗗壊杞瑂tring[]
                 switch (flag)
                 {
@@ -3092,7 +3100,7 @@
         #endregion
 
         #region[浠撲綅淇℃伅鏂板/缂栬緫淇濆瓨]
-        public static ToMessage TSecLocaAddUpdate(string data_sources, string locacode, string locaname, string stckcode, string parentlocacode,string depth, string status, string description, string OperType, User us)
+        public static ToMessage TSecLocaAddUpdate(string data_sources, string locacode, string locaname, string stckcode, string parentlocacode, string depth, string status, string description, string OperType, User us)
         {
             string sql = "";
             List<object> list = new List<object>();
@@ -3146,7 +3154,7 @@
                             lm_user = us.usercode,
                             lm_date = DateTime.Now.ToString(),
                             data_sources = data_sources,
-                            depth= depth
+                            depth = depth
                         }
                     });
                     bool aa = DapperHelper.DoTransaction(list);
@@ -3207,7 +3215,7 @@
                             name = locaname,
                             idwarehouse = stckcode,
                             idparent = parentlocacode,
-                            depth= depth,
+                            depth = depth,
                             status = status,
                             description = description,
                             lm_user = us.usercode,
@@ -3321,7 +3329,7 @@
 
 
         #region[宸ュ簭鏌ヨ]
-        public static ToMessage StepSearch(string stepcode, string stepname, string enable, string steptypecode,int startNum, int endNum, string prop, string order)
+        public static ToMessage StepSearch(string stepcode, string stepname, string enable, string steptypecode, int startNum, int endNum, string prop, string order)
         {
             var dynamicParams = new DynamicParameters();
             string search = "";
@@ -3442,7 +3450,7 @@
                     }
                     sql = @"update TStep set stepname=@stepname,flwtype=@steptypecode,enable=@enable,descr=@description,
                                 lm_user=@username,lm_date=@CreateDate where id=@stepid";
-                    list.Add(new { str = sql, parm = new {stepid = stepid, stepname = stepname, steptypecode = steptypecode, enable = enable, description = description, username = us.usercode, CreateDate = DateTime.Now.ToString() } });
+                    list.Add(new { str = sql, parm = new { stepid = stepid, stepname = stepname, steptypecode = steptypecode, enable = enable, description = description, username = us.usercode, CreateDate = DateTime.Now.ToString() } });
                     bool aa = DapperHelper.DoTransaction(list);
                     if (aa)
                     {

--
Gitblit v1.9.3