冗余代码清理
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user