@Override public TableQueryVo getModel() { TableQueryVo model = super.getModel(); model.getSort().remove("name"); model.getSort().put("modifyTime", "desc"); BackendUserBean sessionUser = (BackendUserBean) getSession().getAttribute(WebappsConstants.LOGIN_BACKEND_USER_SESSION_ID); if (!sessionUser.getName().equals("admin") && sessionUser.isOnlySeeNewUser()) { model.getFilter().put("status in", new int[] {0, 1}); } return model; }
public String search() { TableQueryVo param = new TableQueryVo(); // 通过面试的人,才有资格进行培训记录 param.getFilter().put("status", 2); param.getFilter().put("name", volunteer.getName()); param.setIDisplayLength(5000); param.setIDisplayStart(0); TableDataVo dataVo = getBusiness().query(param); JSONArray jsonArray = JSONArray.fromObject(dataVo.getAaData()); writeJson(jsonArray); return null; }