var stringBuilder = new StringBuilder();
stringBuilder.append("select refid,Shift,PDate,FormID,LineID,RiseCode,RiseMsg,Start_time,End_time,Duration,Category,Lev1,Lev2,CateCode,Lev1Code,Lev2Code,Brand,CBrand,CType,stand_time,Reason,Status,RiseEqp from DTM where Duration>0.99 ");
stringBuilder.append(" and LineID='"+lineid+"' ");
stringBuilder.append(" and start_time between '"+starttime+"' and '"+endtime+"' order by start_time desc");
postdata["Sql"]=stringBuilder.toString(" ");