|
@@ -14888,7 +14888,7 @@ namespace Dongke.IBOSS.PRD.Service.ReportModuleLogic
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
sqlString +=
|
|
sqlString +=
|
|
|
- " group by grouping sets((srd.defectid, scd.defectcode, scd.defectname, srd.defectpositionid),(srd.defectid, scd.defectcode, scd.defectname),(srd.defectpositionid))) t\n" +
|
|
|
|
|
|
|
+ " group by grouping sets((srd.defectid, scd.defectcode, scd.defectname, srd.defectpositionid),(srd.defectid, scd.defectcode, scd.defectname),(srd.defectpositionid),())) t\n" +
|
|
|
"pivot(sum(cc)\n" +
|
|
"pivot(sum(cc)\n" +
|
|
|
" for defectpositionid in("+string.Join(",", pivotFor) + ", 0 AS D_0))\n" +
|
|
" for defectpositionid in("+string.Join(",", pivotFor) + ", 0 AS D_0))\n" +
|
|
|
" order by defectid";
|
|
" order by defectid";
|