瀏覽代碼

补充提交数据库中颗粒有分类但是没有数据的BUG补丁应对方式(导出颗粒列表尺寸不统计数据错误的颗粒)

zhangjiaxin 1 周之前
父節點
當前提交
a31748b3d6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      OTSIncAReportApp/3-ServiceCenter/DataOperation/DataAccess/ParticleData.cs

+ 1 - 1
OTSIncAReportApp/3-ServiceCenter/DataOperation/DataAccess/ParticleData.cs

@@ -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||',%')";