数据库变更CNPC_XJYJ

This commit is contained in:
2025-08-04 18:04:41 +08:00
parent bafbf97359
commit 79a7f35e22
679 changed files with 5590 additions and 3465 deletions
@@ -10,7 +10,7 @@ namespace BLL
/// </summary>
public static class ServerTestRecordService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取考试记录
@@ -28,7 +28,7 @@ namespace BLL
/// <param name="Training"></param>
public static void AddTestRecord(Model.Test_TestRecord testRecord)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Test_TestRecord newTestRecord = new Model.Test_TestRecord
{
TestRecordId = testRecord.TestRecordId,
@@ -47,7 +47,7 @@ namespace BLL
/// <param name="Training"></param>
public static void UpdateTestRecord(Model.Test_TestRecord testRecord)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Test_TestRecord newTestRecord = db.Test_TestRecord.FirstOrDefault(e => e.TestRecordId == testRecord.TestRecordId);
if (newTestRecord != null)
{
@@ -79,7 +79,7 @@ namespace BLL
/// <param name="planId"></param>
public static void DeleteTestRecordByTestRecordId(string testRecordId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var testRecord = db.Test_TestRecord.FirstOrDefault(e => e.TestRecordId == testRecordId);
if (testRecord != null)
@@ -103,7 +103,7 @@ namespace BLL
public static int UpdateTestEndTimeNull(string testRecordId)
{
int icount = 0;
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var testRecord = from x in db.Test_TestRecord
where !x.TestEndTime.HasValue && x.TestStartTime.HasValue