using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Data;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.DAL
|
{
|
/// <summary>
|
/// RepairTaskLogFile
|
/// </summary>
|
public partial class RepairTaskLogFile : CorpDAL<Entity.RepairTaskLogFile>
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public override ConnectionConfig ConnectionConfig
|
{
|
get
|
{
|
return ConfigHelper.DefaultConnectionConfig;
|
}
|
}
|
|
/// <summary>
|
/// 通过 FormID 获取
|
/// </summary>
|
public List<Entity.RepairTaskLogFile> GetByFormID(long CorpID, long FormID)
|
{
|
using (var db = new SqlSugarClient(ConnectionConfig))
|
{
|
return db.Queryable<Entity.RepairTaskLogFile>()
|
.Where(x => x.CorpID == CorpID && x.FormID == FormID)
|
.OrderBy(x => x.SortCode).ToList();
|
}
|
}
|
|
/// <summary>
|
/// 通过 LogID 获取
|
/// </summary>
|
public List<Entity.RepairTaskLogFile> GetByLogID(long CorpID,long FormID, long LogID)
|
{
|
using (var db = new SqlSugarClient(ConnectionConfig))
|
{
|
return db.Queryable<Entity.RepairTaskLogFile>()
|
.Where(x => x.CorpID == CorpID&&x.FormID==FormID && x.LogID == LogID)
|
.OrderBy(x => x.SortCode).ToList();
|
}
|
}
|
|
|
}
|
}
|