提交代码
This commit is contained in:
@@ -19,7 +19,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
string strSql = @"SELECT b.[MainItemId],b.[Coordinate],b.[MainItemName],count(*) num ,max(case when RiskLevel='低风险' then 1 when RiskLevel='一般风险' then 2 when RiskLevel='较大风险' then 3 else 4 end) RiskLevel
|
||||
FROM [dbo].[HSSE_ConstructionRisk] a left join [dbo].[ProjectData_MainItem] b on a.[WorkAreaId]=b.[MainItemId]
|
||||
where a.ProjectId=@ProjectId and a.States='4'
|
||||
where a.ProjectId=@ProjectId and a.States!='5'
|
||||
group by b.[MainItemId],b.[Coordinate],b.[MainItemName]";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
|
||||
@@ -55,7 +55,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
,[ProjectId]
|
||||
,[Coordinate]
|
||||
FROM [dbo].[HSSE_ConstructionRisk] a left join Base_Unit b on a.[UnitId] = b.[UnitId]
|
||||
where a.WorkAreaId=@WorkAreaId and a.States='4'
|
||||
where a.WorkAreaId=@WorkAreaId and a.States!='5'
|
||||
";
|
||||
|
||||
//if (!string.IsNullOrEmpty(RiskLevel))
|
||||
@@ -85,7 +85,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
string riskLevel = "";
|
||||
string strSql = @"SELECT b.[MainItemId],b.[Coordinate],b.[MainItemName],count(*) num ,max(case when RiskLevel='低风险' then 1 when RiskLevel='一般风险' then 2 when RiskLevel='较大风险' then 3 else 4 end) RiskLevel
|
||||
FROM [dbo].[HSSE_ConstructionRisk] a left join [dbo].[ProjectData_MainItem] b on a.[WorkAreaId]=b.[MainItemId]
|
||||
where a.ProjectId=@ProjectId and a.States='4'
|
||||
where a.ProjectId=@ProjectId and a.States!='5'
|
||||
";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
|
||||
|
||||
Reference in New Issue
Block a user