新疆油建优化

This commit is contained in:
2026-09-02 14:36:26 +08:00
parent 75df99e219
commit 13fa72ab8c
9 changed files with 57 additions and 57 deletions
@@ -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)
{