This commit is contained in:
2026-02-10 15:41:06 +08:00
parent 51d772994f
commit 31be7ae4b8
183 changed files with 29172 additions and 9245 deletions
+12 -4
View File
@@ -25,7 +25,7 @@ namespace BLL
password = EncryptionPassword(password);
var q = from y in Funs.DB.Sys_User where y.Account.ToLower() == account.ToLower() select y;
List<Model.Sys_User> x = null;
ErrLogInfo.WriteLog($"q.Count={q.Count()}");
//ErrLogInfo.WriteLog($"q.Count={q.Count()}");
if (q.Count() > 0)
{
x = (from y in Funs.DB.Sys_User
@@ -34,7 +34,7 @@ namespace BLL
select y).ToList();
if (x.Any())
{
ErrLogInfo.WriteLog($"登录成功");
//ErrLogInfo.WriteLog($"登录成功");
FormsAuthentication.SetAuthCookie(account, false);
Model.Sys_User s = x.First();
page.Session[SessionName.CurrUser] = s;
@@ -331,11 +331,19 @@ namespace BLL
/// <returns></returns>
public static List<Model.Sys_User> GetUserListByDepartId(string departId)
{
Model.Base_Depart departs = BLL.DepartService.GetDepartById(departId);
string depName = departs.DepartName;
var q = (from x in Funs.DB.Sys_User
where x.IsPost == true && x.DepartId == departId
&& x.IsCTE == true
join y in Funs.DB.Base_Depart on x.DepartId equals y.DepartId
where x.IsPost == true && x.IsCTE == true
&& y.DepartName.Contains(depName)
orderby x.UserName
select x).ToList();
//var q = (from x in Funs.DB.Sys_User
// where x.IsPost == true && x.DepartId == departId
// && x.IsCTE == true
// orderby x.UserName
// select x).ToList();
return q;
}