数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class NoticeService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取通知
|
||||
@@ -28,7 +28,7 @@ namespace BLL
|
||||
/// <param name="personQuality">图片实体</param>
|
||||
public static void AddNotice(Model.InformationProject_Notice Notice)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.InformationProject_Notice newNotice = new Model.InformationProject_Notice
|
||||
{
|
||||
NoticeId = Notice.NoticeId,
|
||||
@@ -70,7 +70,7 @@ namespace BLL
|
||||
/// <param name="notice"></param>
|
||||
public static void UpdateNotice(Model.InformationProject_Notice notice)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.InformationProject_Notice newNotice = db.InformationProject_Notice.FirstOrDefault(e => e.NoticeId == notice.NoticeId);
|
||||
if (newNotice != null)
|
||||
{
|
||||
@@ -114,7 +114,7 @@ namespace BLL
|
||||
/// <param name="noticeId"></param>
|
||||
public static void DeleteNoticeById(string noticeId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.InformationProject_Notice Notice = db.InformationProject_Notice.FirstOrDefault(e => e.NoticeId == noticeId);
|
||||
if (Notice != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user