30 lines
838 B
C#
30 lines
838 B
C#
using HL_FristAidPlatform_Help;
|
|
using HL_FristAidPlatform_IDataBase;
|
|
using HL_FristAidPlatform_Models;
|
|
using SqlSugar;
|
|
|
|
namespace HL_FristAidPlatform_DataBase
|
|
{
|
|
public class T_Base_PathogenyDB : BaseDB, IT_Base_Pathogeny
|
|
{
|
|
public SqlSugarClient db = GetClient();
|
|
|
|
/// <summary>
|
|
/// 集合
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public TableModel<T_Base_Pathogeny> GetList()
|
|
{
|
|
TableModel<T_Base_Pathogeny> t = new TableModel<T_Base_Pathogeny>();
|
|
|
|
var listMode = db.Queryable<T_Base_Pathogeny>().Where(it => it.DeleteFlag == 0).ToList();
|
|
t.Code = 0;
|
|
t.PageCount = listMode.Count;
|
|
t.TotalNumber = listMode.Count;
|
|
t.Data = listMode;
|
|
t.Msg = "成功";
|
|
return t;
|
|
}
|
|
}
|
|
}
|