yl
2024-01-18 8024ec8c0300dcffa0caf4e2a030e068a9051bc2
VueWebCoreApi/DLL/DAL/BasicSettingDAL.cs
@@ -1208,7 +1208,8 @@
                            FROM TUser U
                            inner join cte on U.storg_code=cte.torg_code
                            left join TOrganization T on U.storg_code=T.torg_code 
                            left join TUser S on U.lm_user=S.usercode " + search + "";
                            left join TUser S on U.lm_user=S.usercode
                            where 1=1 " + search + "";
                var data = DapperHelper.GetPagedDataWith<object>(withsql, sql, dynamicParams, prop, order, startNum, endNum, out total);
                mes.code = "200";
                mes.message = "查询成功!";
@@ -3039,6 +3040,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分割转string[]
                switch (flag)
                {
@@ -3092,7 +3101,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 +3155,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 +3216,7 @@
                            name = locaname,
                            idwarehouse = stckcode,
                            idparent = parentlocacode,
                            depth= depth,
                            depth = depth,
                            status = status,
                            description = description,
                            lm_user = us.usercode,
@@ -3321,7 +3330,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 +3451,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)
                    {