Criteria cri = Cnd.cri();
cri.where().andEquals("station_id",station.getStatio n_id());
cri.where().and("observe_time", ">", Startdt);
cri.where().and("observe_time", "<", enddd); cri.where().andNotEquals(stationType.getArrival_report_status(), "1");
cri.getOrderBy().asc("observe_time");
List recordList = dao_asom.query(stationType.getArrival_report_table(), cri);
NutMap recordMap = new NutMap();
// 将数据装入map
recordList.forEach(record -> { recordMap.addv(record.getString("a"), record);
});
for (String key : recordMap.keySet()) {
List records = (List)recordMap.getList(key, Record.class);
System.out.println(records.size());
}
按照我的数据,输出应该为1,但是输出16,我打印了一下record对象,发现record的长度是16,为什么
来自炫酷的 NutzCN