| | |
| | | public List serchByCondition(SQLiteDatabase db, Object obj) { |
| | | Battresdata rdata=(Battresdata)obj; |
| | | String sql=" select num,BattGroupId,test_record_count,test_type,test_starttime,group_vol,test_curr,mon_num,mon_vol,mon_tmp,mon_res,mon_ser,conn_res " + |
| | | " from tb_battresdata_"+rdata.getBattGroupId()+" where BattGroupId=? and test_record_count=? order by test_starttime asc "; |
| | | Cursor rs=db.rawQuery(sql,new String[]{String.valueOf(rdata.getBattGroupId()),String.valueOf(rdata.getTest_record_count())}); |
| | | " from tb_battresdata_"+rdata.getBattGroupId()+" where BattGroupId=? and mon_num=? order by test_starttime asc "; |
| | | Cursor rs=db.rawQuery(sql,new String[]{String.valueOf(rdata.getBattGroupId()),String.valueOf(rdata.getMon_num())}); |
| | | List list=new ArrayList(); |
| | | try { |
| | | while(rs.moveToNext()){ |