|
@@ -131,7 +131,7 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
|
|
|
string sqlp = @"select TypeId,TypeName,GroupId ,TypeColor,count(1) as con,avg(" + con
|
|
|
+ ") as av,max(" + con
|
|
|
+ ") as max ,GroupName";
|
|
|
- sqlp = sqlp + " from IncAData where typeid !=-1 and typeid !=4";
|
|
|
+ sqlp = sqlp + " from IncAData where typeid !=-1 and typeid !=4 and ParticleId !=-1";
|
|
|
if (fieldAndPartic != "")
|
|
|
{
|
|
|
sqlp = sqlp + " and '" + fieldAndPartic + "' like ('%,'||fieldid||'-'||particleid||',%')";
|