数据库变更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
@@ -9,7 +9,7 @@ namespace BLL
/// </summary>
public static class IncentiveNoticeService
{
public static Model.SGGLDB db = Funs.DB;
public static Model.CNPCDB db = Funs.DB;
/// <summary>
/// 根据主键获取奖励通知单
@@ -72,7 +72,7 @@ namespace BLL
/// <returns></returns>
public static decimal? GetSumMoney(string projectId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
decimal? sumRewardMoney = (from x in db.Check_IncentiveNotice
where
x.ProjectId == projectId && x.States == BLL.Const.State_2
@@ -94,7 +94,7 @@ namespace BLL
/// <returns></returns>
public static decimal? GetSumMoneyByTime(DateTime startTime, DateTime endTime, string projectId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
decimal? sumRewardMoney = (from x in db.Check_IncentiveNotice
where
x.IncentiveDate >= startTime && x.IncentiveDate < endTime && x.ProjectId == projectId && x.States == BLL.Const.State_2
@@ -116,7 +116,7 @@ namespace BLL
/// <returns></returns>
public static decimal? GetSumMoneyByTimeAndType(DateTime startTime, DateTime endTime, string rewardType, string projectId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
decimal? sumRewardMoney = (from x in db.Check_IncentiveNotice
where
x.RewardType == rewardType &&
@@ -135,7 +135,7 @@ namespace BLL
/// <param name="incentiveNotice"></param>
public static void AddIncentiveNotice(Model.Check_IncentiveNotice incentiveNotice)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Check_IncentiveNotice newIncentiveNotice = new Model.Check_IncentiveNotice
{
IncentiveNoticeId = incentiveNotice.IncentiveNoticeId,
@@ -170,7 +170,7 @@ namespace BLL
/// <param name="incentiveNotice"></param>
public static void UpdateIncentiveNotice(Model.Check_IncentiveNotice incentiveNotice)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Check_IncentiveNotice newIncentiveNotice = db.Check_IncentiveNotice.FirstOrDefault(e => e.IncentiveNoticeId == incentiveNotice.IncentiveNoticeId);
if (newIncentiveNotice != null)
{
@@ -203,7 +203,7 @@ namespace BLL
/// <param name="incentiveNoticeId"></param>
public static void DeleteIncentiveNoticeById(string incentiveNoticeId)
{
Model.SGGLDB db = Funs.DB;
Model.CNPCDB db = Funs.DB;
Model.Check_IncentiveNotice incentiveNotice = db.Check_IncentiveNotice.FirstOrDefault(e => e.IncentiveNoticeId == incentiveNoticeId);
if (incentiveNotice != null)
{