|
|
@@ -15337,7 +15337,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and dd.procedureid = :p2ID\n" +
|
|
|
" and dd.checktime >= :timebegin\n" +
|
|
|
- " and dd.checktime <= :timeend\n" +
|
|
|
+ " and dd.checktime < :timeend\n" +
|
|
|
////" -- 交坯、干补\n" +
|
|
|
//" and dd.defectprocedureid in (1, 17, 18)\n" +
|
|
|
" and ((gt2.goodstypecode='001001' and dd.defectid in (89,90,91,92,93,94,95,96,105,106,124,125,134,135,136,137,138,139,140,157,158,159,133,181,166,164,171,142,181))\n" +
|
|
|
@@ -15365,7 +15365,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and dd.procedureid = :p2ID\n" +
|
|
|
" and dd.checktime >= :timebegin\n" +
|
|
|
- " and dd.checktime <= :timeend\n" +
|
|
|
+ " and dd.checktime < :timeend\n" +
|
|
|
////" -- 改洗、吹风\n" +
|
|
|
//" and dd.defectprocedureid in (2, 62)\n" +
|
|
|
////" -- 除不平\n" +
|
|
|
@@ -15395,7 +15395,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and dd.procedureid = :p2ID\n" +
|
|
|
" and dd.checktime >= :timebegin\n" +
|
|
|
- " and dd.checktime <= :timeend\n" +
|
|
|
+ " and dd.checktime < :timeend\n" +
|
|
|
////" -- 二检\n" +
|
|
|
//" and dd.defectprocedureid in (61)\n" +
|
|
|
" and ((gt2.goodstypecode='001001' and dd.defectid in (89,91,92,93,94,106,115,163,159,133,166,164))\n" +
|
|
|
@@ -15423,7 +15423,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and dd.procedureid = :p2ID\n" +
|
|
|
" and dd.checktime >= :timebegin\n" +
|
|
|
- " and dd.checktime <= :timeend\n" +
|
|
|
+ " and dd.checktime < :timeend\n" +
|
|
|
////" -- 施釉\n" +
|
|
|
//" and dd.defectprocedureid in (3, 4)\n" +
|
|
|
////" -- 除铁、铜脏\n" +
|
|
|
@@ -15453,7 +15453,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and dd.procedureid = :p2ID\n" +
|
|
|
" and dd.checktime >= :timebegin\n" +
|
|
|
- " and dd.checktime <= :timeend\n" +
|
|
|
+ " and dd.checktime < :timeend\n" +
|
|
|
////" -- 登窑、入窑、卸窑\n" +
|
|
|
//" and dd.defectprocedureid in (5, 9, 10)\n" +
|
|
|
" and ((gt2.goodstypecode='001001' and dd.defectid in (131,221,223,156,126,132,222,129,150,178,179,122,188,219,220,225,229,227))\n" +
|
|
|
@@ -15481,7 +15481,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and dd.procedureid = :p2ID\n" +
|
|
|
" and dd.checktime >= :timebegin\n" +
|
|
|
- " and dd.checktime <= :timeend\n" +
|
|
|
+ " and dd.checktime < :timeend\n" +
|
|
|
////" -- 惊风、毛针孔、烧裂、窑脏、釉泡\n" +
|
|
|
//" and dd.defectid in (385\n" +
|
|
|
//" ,203\n" +
|
|
|
@@ -15523,7 +15523,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and dd.procedureid = :p2ID\n" +
|
|
|
" and dd.checktime >= :timebegin\n" +
|
|
|
- " and dd.checktime <= :timeend\n" +
|
|
|
+ " and dd.checktime < :timeend\n" +
|
|
|
////" -- 铁脏、铜脏、窑脏、釉脏\n" +
|
|
|
//" and dd.defectid in\n" +
|
|
|
//" (730, 818, 827, 829, 830, 389, 398, 399, 400, 170)\n" +
|
|
|
@@ -15553,7 +15553,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and dd.procedureid = :p2ID\n" +
|
|
|
" and dd.checktime >= :timebegin\n" +
|
|
|
- " and dd.checktime <= :timeend\n" +
|
|
|
+ " and dd.checktime < :timeend\n" +
|
|
|
////" -- 成检撞伤、炸坯、炸裂\n" +
|
|
|
//" and dd.defectid in (393, 180, 394, 395)\n" +
|
|
|
" and ((gt2.goodstypecode='001001' and dd.defectid in (402,393,395,396,397))\n" +
|
|
|
@@ -15574,7 +15574,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (:gtcode2 = '[ALL]' or gt2.goodstypecode = :gtcode2)\n" +
|
|
|
" and pd.procedureid = :p1ID\n" +
|
|
|
" and pd.createtime >= :timebegin\n" +
|
|
|
- " and pd.createtime <= :timeend\n" +
|
|
|
+ " and pd.createtime < :timeend\n" +
|
|
|
" group by gt2.goodstypecode) outk\n" +
|
|
|
" on t.gtcode2 = outk.gtcode2\n" +
|
|
|
" inner join tp_mst_goodstype gt\n" +
|
|
|
@@ -15643,7 +15643,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
" and (pd.procedureid = :p1ID or pd.procedureid = :p2ID)\n" +
|
|
|
//" and pd.checktime > date '2018-01-01'\n" +
|
|
|
" and pd.checktime >= :timebegin\n" +
|
|
|
- " and pd.checktime <= :timeend\n" +
|
|
|
+ " and pd.checktime < :timeend\n" +
|
|
|
" group by gt2.goodstypecode, gt2.goodstypename) t\n" +
|
|
|
" group by grouping sets((t.gtcode2, t.gtname2),())";
|
|
|
oracleParameter = new OracleParameter[]
|