字段过滤
FieldFilter ff = FieldFilter.create(WeatherKCData.class, "^WS|WD$");
Pager pager = dao.createPager(pageNumber, pageSize);
List<WeatherKCData> list = Daos.ext(dao, ff).query(WeatherKCData.class, null, pager);
返回结果
{
"list": [{
"id": null,
"MAXT": null,
"MINT": null,
"WS": "2-3",
"WD": "东",
"STATE": null,
"DDATE": null,
"TIMEKC": null
}, {
"id": null,
"MAXT": null,
"MINT": null,
"WS": null,
"WD": "东",
"STATE": null,
"DDATE": null,
"TIMEKC": null
}, {
"id": null,
"MAXT": null,
"MINT": null,
"WS": "3-4",
"WD": "东南",
"STATE": null,
"DDATE": null,
"TIMEKC": null
}],
"pager": {
"pageNumber": 4,
"pageSize": 3,
"pageCount": 4,
"recordCount": 12
}
}
这样算是正常过滤了吗?