1
This commit is contained in:
@@ -8,7 +8,7 @@ namespace BLL
|
||||
|
||||
public static class InterFaceLogService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
public const string Type1 = "上报";
|
||||
public const string Type2 = "下发";
|
||||
@@ -25,6 +25,7 @@ namespace BLL
|
||||
}
|
||||
public static IQueryable<Model.InterFaceLog> GetInterFaceLogByModle(Model.InterFaceLog table)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = from x in db.InterFaceLog
|
||||
where
|
||||
(string.IsNullOrEmpty(table.InterFaceLogId) || x.InterFaceLogId.Contains(table.InterFaceLogId)) &&
|
||||
@@ -81,6 +82,7 @@ namespace BLL
|
||||
|
||||
public static Model.InterFaceLog GetInterFaceLogById(string InterFaceLogId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.InterFaceLog.FirstOrDefault(x => x.InterFaceLogId == InterFaceLogId);
|
||||
}
|
||||
|
||||
@@ -142,7 +144,7 @@ namespace BLL
|
||||
|
||||
public static void UpdateInterFaceLog(Model.InterFaceLog newtable)
|
||||
{
|
||||
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.InterFaceLog table = db.InterFaceLog.FirstOrDefault(x => x.InterFaceLogId == newtable.InterFaceLogId);
|
||||
if (table != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user