This commit is contained in:
夏菊 2025-06-26 22:41:37 +08:00
parent 22c9f4744e
commit 1b3d8e687c
1 changed files with 4 additions and 4 deletions

View File

@ -1384,7 +1384,7 @@ namespace BLL
public static int GetGeneralClosedNum(string projectid) public static int GetGeneralClosedNum(string projectid)
{ {
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
where x.ProjectId == projectid && x.Risk_Level == "一般" && x.States == "3" && where x.ProjectId == projectid && x.Risk_Level == "一般事故隐患" && x.States == "3" &&
x.CheckTime > Const.DtmarkTime x.CheckTime > Const.DtmarkTime
select x).Count(); select x).Count();
return result; return result;
@ -1397,7 +1397,7 @@ namespace BLL
public static int GetGeneralNotClosedNum(string projectid) public static int GetGeneralNotClosedNum(string projectid)
{ {
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
where x.ProjectId == projectid && x.Risk_Level == "一般" && x.States != "3" && x.States != "-1" && where x.ProjectId == projectid && x.Risk_Level == "一般事故隐患" && x.States != "3" && x.States != "-1" &&
x.CheckTime > Const.DtmarkTime x.CheckTime > Const.DtmarkTime
select x).Count(); select x).Count();
return result; return result;
@ -1410,7 +1410,7 @@ namespace BLL
public static int GetMajorClosedNum(string projectid) public static int GetMajorClosedNum(string projectid)
{ {
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
where x.ProjectId == projectid && x.Risk_Level == "重大" && x.States == "3" && where x.ProjectId == projectid && x.Risk_Level == "重大事故隐患" && x.States == "3" &&
x.CheckTime > Const.DtmarkTime x.CheckTime > Const.DtmarkTime
select x).Count(); select x).Count();
return result; return result;
@ -1423,7 +1423,7 @@ namespace BLL
public static int GetMajorNotClosedNum(string projectid) public static int GetMajorNotClosedNum(string projectid)
{ {
var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister
where x.ProjectId == projectid && x.Risk_Level == "重大" && x.States != "3" && x.States != "-1" && where x.ProjectId == projectid && x.Risk_Level == "重大事故隐患" && x.States != "3" && x.States != "-1" &&
x.CheckTime > Const.DtmarkTime x.CheckTime > Const.DtmarkTime
select x).Count(); select x).Count();
return result; return result;