20240102安全风险数据修正及上报集团方法调整

This commit is contained in:
2024-01-02 16:03:32 +08:00
parent 97015c50ec
commit 65563b6683
5 changed files with 69 additions and 19 deletions
+4 -4
View File
@@ -598,7 +598,7 @@ namespace FineUIPro.Web.common
{
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
where y.RiskLevel == 2 && x.IsStart == true
where y.RiskLevel == 2 && (x.IsStart == true || x.State == "1")
select x).Count();
return result;
}
@@ -611,7 +611,7 @@ namespace FineUIPro.Web.common
{
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
where y.RiskLevel == 1 && x.IsStart == true
where y.RiskLevel == 1 && (x.IsStart == true || x.State == "1")
select x).Count();
return result;
}
@@ -624,7 +624,7 @@ namespace FineUIPro.Web.common
{
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
where y.RiskLevel == 3 && x.IsStart == true
where y.RiskLevel == 3 && (x.IsStart == true || x.State == "1")
select x).Count();
return result;
}
@@ -637,7 +637,7 @@ namespace FineUIPro.Web.common
{
var result = (from x in Funs.DB.Hazard_HazardSelectedItem
join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId
where y.RiskLevel == 4 && x.IsStart == true
where y.RiskLevel == 4 && (x.IsStart == true || x.State == "1")
select x).Count();
return result;
}