在执行自定筛选的时候它的筛选SQL如下,可以看到这段SQL排除了不符合日期的数据,总共是11条。为什么是11条?因为自定义筛选中除去20号后就只能看到11条,但实际上不止11条,而是15条。所以产生的根本原因是因为表头的自定义筛选不能捕捉到所有行导致的,我之前直接用日期进行筛选没问题。
- [
- {
- "Sql": "select a.[ID] as C0,a.[FMiShu] as C1,a.[FZhongLiang] as C2,a.[TCREATEDATE] as C3,a.[FBZGG] as C4,a.[Fbarcode] as C5,a.[FGC_Rowversion] as C6 from [main].[T_BD_BARCODEMAINFILE] as a Where a.[FMoEntryId] = 114513 AND ((a.[TCREATEDATE] <> 45645.39816365741 AND a.[TCREATEDATE] <> 45647.32507461806 AND a.[TCREATEDATE] <> 45647.32541542824 AND a.[TCREATEDATE] <> 45647.32555755787 AND a.[TCREATEDATE] <> 45647.32569730324 AND a.[TCREATEDATE] <> 45647.32586056713 AND a.[TCREATEDATE] <> 45647.325952465275 AND a.[TCREATEDATE] <> 45647.34344556713 AND a.[TCREATEDATE] <> 45647.409177511574 AND a.[TCREATEDATE] <> 45647.409330636576 AND a.[TCREATEDATE] <> @p10) OR a.[TCREATEDATE] is null ) ORDER BY a.[ID] ASC",
- "OriginalSql": "select a.[ID] as C0,a.[FMiShu] as C1,a.[FZhongLiang] as C2,a.[TCREATEDATE] as C3,a.[FBZGG] as C4,a.[Fbarcode] as C5,a.[FGC_Rowversion] as C6 from [main].[T_BD_BARCODEMAINFILE] as a Where a.[FMoEntryId] = 114513 AND ((a.[TCREATEDATE] <> @p0 AND a.[TCREATEDATE] <> @p1 AND a.[TCREATEDATE] <> @p2 AND a.[TCREATEDATE] <> @p3 AND a.[TCREATEDATE] <> @p4 AND a.[TCREATEDATE] <> @p5 AND a.[TCREATEDATE] <> @p6 AND a.[TCREATEDATE] <> @p7 AND a.[TCREATEDATE] <> @p8 AND a.[TCREATEDATE] <> @p9 AND a.[TCREATEDATE] <> @p10) OR a.[TCREATEDATE] is null ) ORDER BY a.[ID] ASC",
- "SqlParams": [
- {
- "Name": "@p0",
- "Value": 45645.39816365741
- },
- {
- "Name": "@p1",
- "Value": 45647.32507461806
- },
- {
- "Name": "@p2",
- "Value": 45647.32541542824
- },
- {
- "Name": "@p3",
- "Value": 45647.32555755787
- },
- {
- "Name": "@p4",
- "Value": 45647.32569730324
- },
- {
- "Name": "@p5",
- "Value": 45647.32586056713
- },
- {
- "Name": "@p6",
- "Value": 45647.325952465275
- },
- {
- "Name": "@p7",
- "Value": 45647.34344556713
- },
- {
- "Name": "@p8",
- "Value": 45647.409177511574
- },
- {
- "Name": "@p9",
- "Value": 45647.409330636576
- },
- {
- "Name": "@p10",
- "Value": 45647.40941863426
- }
- ],
- "Duration": "8.2102ms"
- },
- {
- "Sql": "select SUM(a.[FMiShu]) as C0 from [main].[T_BD_BARCODEMAINFILE] as a Where a.[FMoEntryId] = 114513 AND ((a.[TCREATEDATE] <> 45645.39816365741 AND a.[TCREATEDATE] <> 45647.32507461806 AND a.[TCREATEDATE] <> 45647.32541542824 AND a.[TCREATEDATE] <> 45647.32555755787 AND a.[TCREATEDATE] <> 45647.32569730324 AND a.[TCREATEDATE] <> 45647.32586056713 AND a.[TCREATEDATE] <> 45647.325952465275 AND a.[TCREATEDATE] <> 45647.34344556713 AND a.[TCREATEDATE] <> 45647.409177511574 AND a.[TCREATEDATE] <> 45647.409330636576 AND a.[TCREATEDATE] <> @p10) OR a.[TCREATEDATE] is null )",
- "OriginalSql": "select SUM(a.[FMiShu]) as C0 from [main].[T_BD_BARCODEMAINFILE] as a Where a.[FMoEntryId] = 114513 AND ((a.[TCREATEDATE] <> @p0 AND a.[TCREATEDATE] <> @p1 AND a.[TCREATEDATE] <> @p2 AND a.[TCREATEDATE] <> @p3 AND a.[TCREATEDATE] <> @p4 AND a.[TCREATEDATE] <> @p5 AND a.[TCREATEDATE] <> @p6 AND a.[TCREATEDATE] <> @p7 AND a.[TCREATEDATE] <> @p8 AND a.[TCREATEDATE] <> @p9 AND a.[TCREATEDATE] <> @p10) OR a.[TCREATEDATE] is null )",
- "SqlParams": [
- {
- "Name": "@p0",
- "Value": 45645.39816365741
- },
- {
- "Name": "@p1",
- "Value": 45647.32507461806
- },
- {
- "Name": "@p2",
- "Value": 45647.32541542824
- },
- {
- "Name": "@p3",
- "Value": 45647.32555755787
- },
- {
- "Name": "@p4",
- "Value": 45647.32569730324
- },
- {
- "Name": "@p5",
- "Value": 45647.32586056713
- },
- {
- "Name": "@p6",
- "Value": 45647.325952465275
- },
- {
- "Name": "@p7",
- "Value": 45647.34344556713
- },
- {
- "Name": "@p8",
- "Value": 45647.409177511574
- },
- {
- "Name": "@p9",
- "Value": 45647.409330636576
- },
- {
- "Name": "@p10",
- "Value": 45647.40941863426
- }
- ],
- "Duration": "7.8272ms"
- },
- {
- "Sql": "select SUM(a.[FZhongLiang]) as C0 from [main].[T_BD_BARCODEMAINFILE] as a Where a.[FMoEntryId] = 114513 AND ((a.[TCREATEDATE] <> 45645.39816365741 AND a.[TCREATEDATE] <> 45647.32507461806 AND a.[TCREATEDATE] <> 45647.32541542824 AND a.[TCREATEDATE] <> 45647.32555755787 AND a.[TCREATEDATE] <> 45647.32569730324 AND a.[TCREATEDATE] <> 45647.32586056713 AND a.[TCREATEDATE] <> 45647.325952465275 AND a.[TCREATEDATE] <> 45647.34344556713 AND a.[TCREATEDATE] <> 45647.409177511574 AND a.[TCREATEDATE] <> 45647.409330636576 AND a.[TCREATEDATE] <> @p10) OR a.[TCREATEDATE] is null )",
- "OriginalSql": "select SUM(a.[FZhongLiang]) as C0 from [main].[T_BD_BARCODEMAINFILE] as a Where a.[FMoEntryId] = 114513 AND ((a.[TCREATEDATE] <> @p0 AND a.[TCREATEDATE] <> @p1 AND a.[TCREATEDATE] <> @p2 AND a.[TCREATEDATE] <> @p3 AND a.[TCREATEDATE] <> @p4 AND a.[TCREATEDATE] <> @p5 AND a.[TCREATEDATE] <> @p6 AND a.[TCREATEDATE] <> @p7 AND a.[TCREATEDATE] <> @p8 AND a.[TCREATEDATE] <> @p9 AND a.[TCREATEDATE] <> @p10) OR a.[TCREATEDATE] is null )",
- "SqlParams": [
- {
- "Name": "@p0",
- "Value": 45645.39816365741
- },
- {
- "Name": "@p1",
- "Value": 45647.32507461806
- },
- {
- "Name": "@p2",
- "Value": 45647.32541542824
- },
- {
- "Name": "@p3",
- "Value": 45647.32555755787
- },
- {
- "Name": "@p4",
- "Value": 45647.32569730324
- },
- {
- "Name": "@p5",
- "Value": 45647.32586056713
- },
- {
- "Name": "@p6",
- "Value": 45647.325952465275
- },
- {
- "Name": "@p7",
- "Value": 45647.34344556713
- },
- {
- "Name": "@p8",
- "Value": 45647.409177511574
- },
- {
- "Name": "@p9",
- "Value": 45647.409330636576
- },
- {
- "Name": "@p10",
- "Value": 45647.40941863426
- }
- ],
- "Duration": "7.5289ms"
- }
- ]
复制代码
|