数据库变更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
@@ -8,7 +8,7 @@ namespace BLL
/// </summary>
public static class TrainTestRecordService
{
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_TrainTestRecord testRecord)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Training_TrainTestRecord newTestRecord = new Model.Training_TrainTestRecord
{
TrainingTestRecordId = testRecord.TrainingTestRecordId,
@@ -48,7 +48,7 @@ namespace BLL
/// <param name="Training"></param>
public static void UpdateTrainTestRecord(Model.Training_TrainTestRecord testRecord)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Training_TrainTestRecord newTestRecord = db.Training_TrainTestRecord.FirstOrDefault(e => e.TrainingTestRecordId == testRecord.TrainingTestRecordId);
if (newTestRecord != null)
{