sqlBuilder.Append("select * from T_SA_WORKCELLQTYCOUNT");
sqlBuilder.Append("select tsa.*,ma.MATERIAL_NAME from T_SA_WORKCELLQTYCOUNT as tsa inner join T_MD_MATERIAL ma on ma.MATERIAL_CODE = tsa.MATRIAL_CODE ");
if(whereBuilder.Length>0)
{
sqlBuilder.Append(whereBuilder.ToString());
}
sqlBuilder.Append(" ORDER BY STATIS_DATE DESC ");
sqlBuilder.Append(" ORDER BY tsa.STATIS_DATE DESC ");