@ -1819,7 +1819,7 @@ from T_AW_MAINOPERATION where 1=1 ";
sqlBuilder.Append(") tt ");
sqlBuilder.Append(") tt ");
sqlBuilder.Append(" LEFT JOIN T_QM_USER O ON O.[USERID] = tt.[CREATEUSER]");
sqlBuilder.Append(" LEFT JOIN T_QM_USER O ON O.[USERID] = tt.[CREATEUSER]");
sqlBuilder.AppendFormat(" LEFT JOIN {0} P ON tt.[PID]=P.[MOID]",condition.PARATABLENAME);
sqlBuilder.AppendFormat(" LEFT JOIN {0} P ON tt.[PRODUCTCODE]=P.[PRODUCTCODE]",condition.PARATABLENAME);
sqlBuilder.AppendFormat(" WHERE ROWINDEX BETWEEN {0} AND {1}",Convert.ToString(page.PageSize*(page.PageIndex-1)+1),Convert.ToString(page.PageSize*page.PageIndex));
sqlBuilder.AppendFormat(" WHERE ROWINDEX BETWEEN {0} AND {1}",Convert.ToString(page.PageSize*(page.PageIndex-1)+1),Convert.ToString(page.PageSize*page.PageIndex));
//#endregion
//#endregion
//sqlBuilder.Clear().Append( " select abc.*,p.RESTTHICKNESS,o.USERNAME from ( select top 20 ROW_NUMBER() OVER (ORDER BY M.OPERATEDDATE DESC ) AS ROWINDEX,* from [T_AW_MAINOPERATION] M WHERE M.CREATEDATE >= '2012-01-01' AND M.CREATEDATE <= '2016-01-01' AND M.PROCESSTYPE = 6) abc left join "
//sqlBuilder.Clear().Append( " select abc.*,p.RESTTHICKNESS,o.USERNAME from ( select top 20 ROW_NUMBER() OVER (ORDER BY M.OPERATEDDATE DESC ) AS ROWINDEX,* from [T_AW_MAINOPERATION] M WHERE M.CREATEDATE >= '2012-01-01' AND M.CREATEDATE <= '2016-01-01' AND M.PROCESSTYPE = 6) abc left join "