NutzCN Logo
问答 字段过滤的使用,为什么过滤字段都为null
发布于 1877天前 作者 wx_jjn2ia9qvotogktb45bf 1701 次浏览 复制 上一个帖子 下一个帖子
标签: ssdb

字段过滤

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
   }
}

这样算是正常过滤了吗?

1 回复

不然呢?难道随机赋值成"hello kitty"?

添加回复
请先登陆
回到顶部