接口修改

This commit is contained in:
2024-09-05 14:09:24 +08:00
parent 18e0e3f05b
commit ecd1689d52
8 changed files with 231 additions and 133 deletions
+24
View File
@@ -71,6 +71,30 @@ namespace BLL
}
#endregion
#region
/// <summary>
/// 根据项目名称获取项目信息
/// </summary>
/// <param name="projectName"></param>
/// <returns></returns>
public static Model.BaseInfoItem getProjectByName(string projectName)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var getDataLists = (from x in db.Base_Project
where x.ProjectName == projectName
select new Model.BaseInfoItem
{
BaseInfoId = x.ProjectId,
BaseInfoCode = x.ProjectCode,
BaseInfoName = x.ProjectName
}
).FirstOrDefault();
return getDataLists;
}
}
#endregion
#region id获取区域表
/// <summary>
/// 根据项目id获取区域表