数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class PunishNoticeService
|
||||
{
|
||||
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_PunishNotice
|
||||
where x.ProjectId == projectId && x.States == BLL.Const.State_2
|
||||
select x.PunishMoney).Sum();
|
||||
@@ -92,7 +92,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_PunishNotice
|
||||
where x.PunishNoticeDate >= startTime && x.PunishNoticeDate < endTime && x.ProjectId == projectId && x.States == BLL.Const.State_2
|
||||
select x.PunishMoney).Sum();
|
||||
@@ -109,7 +109,7 @@ namespace BLL
|
||||
/// <param name="punishNotice"></param>
|
||||
public static void AddPunishNotice(Model.Check_PunishNotice punishNotice)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Check_PunishNotice newPunishNotice = new Model.Check_PunishNotice
|
||||
{
|
||||
PunishNoticeId = punishNotice.PunishNoticeId,
|
||||
@@ -144,7 +144,7 @@ namespace BLL
|
||||
/// <param name="punishNotice"></param>
|
||||
public static void UpdatePunishNotice(Model.Check_PunishNotice punishNotice)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Check_PunishNotice newPunishNotice = db.Check_PunishNotice.FirstOrDefault(e => e.PunishNoticeId == punishNotice.PunishNoticeId);
|
||||
if (newPunishNotice != null)
|
||||
{
|
||||
@@ -176,7 +176,7 @@ namespace BLL
|
||||
/// <param name="punishNoticeId"></param>
|
||||
public static void DeletePunishNoticeById(string punishNoticeId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Check_PunishNotice punishNotice = db.Check_PunishNotice.FirstOrDefault(e => e.PunishNoticeId == punishNoticeId);
|
||||
if (punishNotice != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user