*/
@RequestMapping(params = "datagridUser")
public void datagridUser(HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
String departid = request.getParameter("departid");
String roleid = request.getParameter("roleid");
CriteriaQuery cq = new CriteriaQuery(TSUser.class, dataGrid);
if (departid.length() > 0) {
cq.eq("TDepart.departid", oConvertUtils.getInt(departid, 0));
cq.add();
}
String userid = "";
if (roleid.length() > 0) {
List<TSRoleUser> roleUsers = systemService.findByProperty(TSRoleUser.class, "TRole.roleid", oConvertUtils.getInt(roleid, 0));
if (roleUsers.size() > 0) {
for (TSRoleUser tRoleUser : roleUsers) {
userid += tRoleUser.getTSUser().getId() + ",";
}
}
cq.in("userid", oConvertUtils.getInts(userid.split(",")));
cq.add();
}
this.systemService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}