From 0adf248671ae1c6a4715394028885272b157c9e6 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Fri, 30 Oct 2026 09:33:23 +0800 Subject: [PATCH] 1 --- SGGL/BLL/BLL.csproj | 1 + SGGL/BLL/Score/ScoreService.cs | 15 +++++++++++++++ .../Controllers/HSSE/TestRecordController.cs | 4 ++-- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 SGGL/BLL/Score/ScoreService.cs diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 1862bcce..475c7840 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -864,6 +864,7 @@ + diff --git a/SGGL/BLL/Score/ScoreService.cs b/SGGL/BLL/Score/ScoreService.cs new file mode 100644 index 00000000..6158ebb6 --- /dev/null +++ b/SGGL/BLL/Score/ScoreService.cs @@ -0,0 +1,15 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + /// + /// 人员积分 + /// + public class ScoreService + { + + } +} diff --git a/SGGL/WebAPI/Controllers/HSSE/TestRecordController.cs b/SGGL/WebAPI/Controllers/HSSE/TestRecordController.cs index 4e51fcdb..7f75878b 100644 --- a/SGGL/WebAPI/Controllers/HSSE/TestRecordController.cs +++ b/SGGL/WebAPI/Controllers/HSSE/TestRecordController.cs @@ -338,7 +338,7 @@ namespace WebAPI.Controllers ////及格分数 int getPassScores = 80; //int getPassScores = SysConstSetService.getPassScore(); - if (getTestScores <= getPassScores) + if (getTestScores < getPassScores) { int testCount = Funs.DB.Training_TestRecord.Where(x => x.TestPlanId == getTestRecord.TestPlanId && x.TestManId == getTestRecord.TestManId).Count(); if (testCount < 2) @@ -452,7 +452,7 @@ namespace WebAPI.Controllers //{ // getPassScores = testRule.PassingScore; //} - if (getTestScores <= getPassScores) + if (getTestScores < getPassScores) { int testCount = db.Training_TestRecord.Where(x => x.TestPlanId == getTestRecord.TestPlanId && x.TestManId == getTestRecord.TestManId).Count(); if (testCount < 2)