数据库变更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
+4 -4
View File
@@ -12,7 +12,7 @@ namespace BLL
/// </summary>
public static class PostService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 记录数
@@ -77,7 +77,7 @@ namespace BLL
/// <param name="post"></param>
public static void AddPost(Model.Base_Post post)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Base_Post newPost = new Model.Base_Post();
newPost.PostId = post.PostId;
newPost.PostName = post.PostName;
@@ -92,7 +92,7 @@ namespace BLL
/// <param name="post"></param>
public static void UpdatePost(Model.Base_Post post)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Base_Post newPost = db.Base_Post.FirstOrDefault(e => e.PostId == post.PostId);
if (newPost != null)
{
@@ -108,7 +108,7 @@ namespace BLL
/// <param name="postId"></param>
public static void DeletePost(string postId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Base_Post newPost = db.Base_Post.FirstOrDefault(e => e.PostId == postId);
if (newPost != null)
{