代码优化
This commit is contained in:
@@ -362,8 +362,10 @@ public class FormFilter extends org.apache.shiro.web.filter.authc.FormAuthentica
|
||||
data.put("isValidCodeLogin", Global.getConfigToInteger("sys.login.failedNumAfterValidCode", "200") == 0);
|
||||
|
||||
//获取当前会话对象
|
||||
Session session = UserUtils.getSession();
|
||||
data.put("sessionid", (String)session.getId());
|
||||
if (ServletUtils.isAjaxRequest(request)) {
|
||||
Session session = UserUtils.getSession();
|
||||
data.put("sessionid", (String)session.getId());
|
||||
}
|
||||
|
||||
// 如果登录设置了语言,则切换语言
|
||||
if (paramMap.get("lang") != null){
|
||||
|
||||
@@ -240,7 +240,7 @@ public class Log extends DataEntity<Log> {
|
||||
|
||||
/**
|
||||
* 设置请求参数
|
||||
* @param paramMap
|
||||
* @param paramsMap
|
||||
*/
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void setRequestParams(Map paramsMap){
|
||||
|
||||
@@ -80,6 +80,14 @@ public class EmpUserServiceSupport extends CrudService<EmpUserDao, EmpUser>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*/
|
||||
@Override
|
||||
public List<EmpUser> findList(EmpUser entity) {
|
||||
return super.findList(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询数据
|
||||
*/
|
||||
|
||||
@@ -49,7 +49,15 @@ public class EmployeeServiceSupport extends CrudService<EmployeeDao, Employee>
|
||||
where.setEmpNo(employee.getEmpNo());
|
||||
return dao.getByEntity(where);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*/
|
||||
@Override
|
||||
public List<Employee> findList(Employee entity) {
|
||||
return super.findList(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
*/
|
||||
|
||||
@@ -50,6 +50,14 @@ public class PostServiceSupport extends CrudService<PostDao, Post>
|
||||
return dao.getByEntity(where);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*/
|
||||
@Override
|
||||
public List<Post> findList(Post entity) {
|
||||
return super.findList(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询岗位
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user