Record record = new Record();
record.set("sdate", sdate);
record.set("edate", edate);
if(IStr.isNotBlank(eqp_id)){
record.set("eqp_id", "%"+eqp_id+"%");
}
if(IStr.isNotBlank(work_id)){
record.set("work_id", "%"+work_id+"%");
}
if(IStr.isNotBlank(order_id)){
record.set("order_id", "%"+order_id+"%");
}
if(IStr.isNotBlank(task_id)){
record.set("task_id", "%"+task_id+"%");
}
String table_name = "ht_lot_info";
record.set("TABLE_NAME", table_name);
List<Record> htList = RtLotInfoService.me.listByTableName(db_name ,record);
for(Record ht :htList){
RtLotInfo rLotInfo=(RtLotInfo)ht;//出现不能强转的问题
}
项目:JFinal
改成:RtLotInfo rLotInfo= new RtLotInfo ().put(ht);