数据库变更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
@@ -21,7 +21,7 @@ namespace BLL
/// <returns></returns>
public static List<Model.TestPlanItem> getTestPlanList(string states)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getDataLists = (from x in db.Test_TestPlan
where (x.States == states || states == null)
@@ -54,7 +54,7 @@ namespace BLL
/// <returns></returns>
public static Model.TestPlanItem getTestPlanByTestPlanId(string testPlanId)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
{
var getDataLists = from x in db.Test_TestPlan
where x.TestPlanId == testPlanId
@@ -90,7 +90,7 @@ namespace BLL
/// <returns></returns>
public static List<Model.TestPlanTrainingItem> getTestPlanTrainingListByTestPlanId(string testPlanId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
var getDataLists = (from x in db.Test_TestPlanTraining
join y in db.Training_TestTraining on x.TrainingId equals y.TrainingId
where x.TestPlanId == testPlanId