fix:接口

This commit is contained in:
geh
2025-02-20 17:21:35 +08:00
parent 0a70ab9af7
commit edda376377
12 changed files with 778 additions and 38 deletions
@@ -19,7 +19,28 @@ public class AwardStandardsService
e.AwardStandardsId == AwardStandardsId);
}
/// <summary>
/// 获取集合
/// </summary>
/// <param name="AwardStandardsId"></param>
/// <returns></returns>
public static List<AwardStandardsItem> GetAwardStandardsList()
{
List<AwardStandardsItem> getDataLists = (from x in Funs.DB.Technique_AwardStandards
select new AwardStandardsItem
{
AwardStandardsId = x.AwardStandardsId,
AwardStandardsCode = x.AwardStandardsCode,
AwardStandardsName = x.AwardStandardsName,
AttachUrl = x.AttachUrl,
CompileMan = x.CompileMan,
CompileDate = x.CompileDate,
IsPass = x.IsPass,
UpState = x.UpState,
Remark = x.Remark
}).ToList();
return getDataLists;
}
/// <summary>
/// 添加
@@ -93,4 +114,64 @@ public class AwardStandardsService
db.SubmitChanges();
}
}
public class AwardStandardsItem
{
public string AwardStandardsId
{
get;
set;
}
public string AwardStandardsCode
{
get;
set;
}
public string AwardStandardsName
{
get;
set;
}
public string AttachUrl
{
get;
set;
}
public string CompileMan
{
get;
set;
}
public System.Nullable<System.DateTime> CompileDate
{
get;
set;
}
public System.Nullable<bool> IsPass
{
get;
set;
}
public string UpState
{
get;
set;
}
public string Remark
{
get;
set;
}
}
}