//查询
@At
public Object query(@Param("test1")String test, @Param("..")Pager pager) {
Cnd cnd = Strings.isBlank(test)? null : Cnd.where("test1", "=",test);
QueryResult qr = new QueryResult();
qr.setList(dao.query(User.class, cnd));
pager.setRecordCount(dao.count(User.class, cnd));
qr.setPager(pager);
return qr;
}
添加回复
请先登陆