新疆油建优化
This commit is contained in:
@@ -520,11 +520,11 @@ namespace FineUIPro.Web.Person.EduTrain
|
||||
select x;
|
||||
////及格分数
|
||||
int passScore = 80;
|
||||
var testRule = Funs.DB.Sys_TestRule.FirstOrDefault();
|
||||
if (testRule != null)
|
||||
{
|
||||
passScore = testRule.PassingScore;
|
||||
}
|
||||
//var testRule = Funs.DB.Sys_TestRule.FirstOrDefault();
|
||||
//if (testRule != null)
|
||||
//{
|
||||
// passScore = testRule.PassingScore;
|
||||
//}
|
||||
foreach (var item in getTrainingTasks)
|
||||
{
|
||||
bool isInsert = true;
|
||||
|
||||
@@ -232,7 +232,8 @@ namespace FineUIPro.Web.Person.EduTrain
|
||||
&& x.TestPlanId == this.TestPlanId);
|
||||
if (getTestRecord.Count() > 0)
|
||||
{ ////及格分数
|
||||
int getPassScores = SysConstSetService.getPassScore();
|
||||
int getPassScores = 80;
|
||||
//int getPassScores = SysConstSetService.getPassScore();
|
||||
var getOK = getTestRecord.FirstOrDefault(x => x.TestScores >= getPassScores);
|
||||
if (getOK != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user