1
This commit is contained in:
@@ -197,5 +197,24 @@ namespace BLL
|
||||
}
|
||||
return icount;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据人员id、日期获取入场教育合格考试记录
|
||||
/// </summary>
|
||||
/// <param name="testRecordId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.Training_TestRecord GetOKTestRecordByPersonIdAndDate(string testManId, DateTime? date)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var testRecord = (from x in db.Training_TestRecord
|
||||
join y in db.Training_TestPlan on x.TestPlanId equals y.TestPlanId
|
||||
join z in db.Training_Plan on y.PlanId equals z.PlanId
|
||||
where x.TestManId == testManId && x.TestStartTime >= date && x.TestScores >= 60
|
||||
&& z.TrainTypeId == BLL.Const.EntryEducationTrainTypeId
|
||||
select x).FirstOrDefault();
|
||||
return testRecord;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user