冗余代码清理

This commit is contained in:
2026-06-15 19:05:39 +08:00
parent 1fd3ca5094
commit eacb45828c
57 changed files with 134 additions and 31930 deletions
+4 -4
View File
@@ -505,7 +505,7 @@ namespace BLL
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var users = (from x in db.Sys_User
where x.IsPost == true && x.UserId != Const.hfnbdId && x.UserId != Const.sedinId
where x.IsPost == true && x.UserId != Const.hfnbdId
orderby x.UserName
select x).ToList();
if (!string.IsNullOrEmpty(projectId))
@@ -530,7 +530,7 @@ namespace BLL
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var users = (from x in db.Sys_User
where x.IsPost == true && x.UserId != Const.hfnbdId && x.UserId != Const.sedinId
where x.IsPost == true && x.UserId != Const.hfnbdId
orderby x.UserName
select x).ToList();
if (!string.IsNullOrEmpty(projectId))
@@ -584,7 +584,7 @@ namespace BLL
else
{
list = (from x in db.Sys_User
where x.UserId != BLL.Const.hfnbdId && x.UserId != Const.sedinId
where x.UserId != BLL.Const.hfnbdId
orderby x.UserName
select x).ToList();
@@ -632,7 +632,7 @@ namespace BLL
else
{
list = (from x in db.Sys_User
where x.UnitId == unitId && x.UserId != BLL.Const.hfnbdId && x.UserId != Const.sedinId
where x.UnitId == unitId && x.UserId != BLL.Const.hfnbdId
orderby x.UserName
select x).ToList();