冗余代码清理

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
@@ -275,7 +275,7 @@
/// <returns></returns>
public static List<Model.Base_Project> GetProjectByUserIdDropDownList(string userId)
{
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
if (userId == Const.sysglyId || userId == Const.hfnbdId )
{
return (from x in Funs.DB.Base_Project
orderby x.ProjectCode descending
@@ -308,7 +308,7 @@
}
public static List<Model.Base_Project> GetUnEndProjectByUserIdDropDownList(string userId, string needProjectId)
{
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
if (userId == Const.sysglyId || userId == Const.hfnbdId )
{
return (from x in Funs.DB.Base_Project
orderby x.ProjectCode descending
@@ -349,7 +349,7 @@
}
public static List<Model.Base_Project> GetShiYeProjectByUserIdDropDownList(string userId, string needProjectId)
{
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
if (userId == Const.sysglyId || userId == Const.hfnbdId )
{
return (from x in Funs.DB.Base_Project
where x.ProjectAttribute == "SHIYE"
@@ -385,7 +385,7 @@
public static List<Model.Base_Project> GetUnEndProjectByUserIdDropDownList(string userId, string needProjectId, string ProjectAttribute, string projectState, string projectName = null)
{
IQueryable<Model.Base_Project> projects = null;
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
if (userId == Const.sysglyId || userId == Const.hfnbdId )
{
projects = from x in Funs.DB.Base_Project
where x.ProjectAttribute.Contains(ProjectAttribute) && (x.IsDelete == null || x.IsDelete == false)