数据库变更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
+5 -5
View File
@@ -8,7 +8,7 @@ namespace BLL
/// </summary>
public static class TestRecordService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取考试记录
@@ -26,7 +26,7 @@ namespace BLL
/// <param name="Training"></param>
public static void AddTestRecord(Model.Training_TestRecord testRecord)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Training_TestRecord newTestRecord = new Model.Training_TestRecord
{
TestRecordId = testRecord.TestRecordId,
@@ -60,7 +60,7 @@ namespace BLL
/// <param name="Training"></param>
public static void UpdateTestRecord(Model.Training_TestRecord testRecord)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Training_TestRecord newTestRecord = db.Training_TestRecord.FirstOrDefault(e => e.TestRecordId == testRecord.TestRecordId);
if (newTestRecord != null)
{
@@ -93,7 +93,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.Training_TestRecord.FirstOrDefault(e => e.TestRecordId == testRecordId);
if (testRecord != null)
@@ -117,7 +117,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 q = from x in db.Training_TestRecord
where x.TestRecordId == testRecordId