Commit d5ccc29f authored by 吴卿华's avatar 吴卿华

修改借支申请

parent bdaa7b4e
......@@ -53,13 +53,13 @@ public class TBorrowingApplyForController extends BaseController
SysUser user = tokenService.getLoginUser(ServletUtils.getRequest()).getUser();
int permission=0;
for (int i=0;i<user.getRoles().size();i++){
if ("calculator".equals(user.getRoles().get(i).getRoleKey())){
if ("calculator".equals(user.getRoles().get(i).getRoleKey())||"admin".equals(user.getRoles().get(i).getRoleKey())){
permission=1;
}
}
int n=0;
for (int i=0;i<user.getRoles().size();i++) {
if ("calculator".equals(user.getRoles().get(i).getRoleKey())) {
if ("calculator".equals(user.getRoles().get(i).getRoleKey())||"admin".equals(user.getRoles().get(i).getRoleKey())) {
n=1;
}
/**判断是否是部门长 如果是部门长 就只查询本部门*/
......@@ -70,8 +70,6 @@ public class TBorrowingApplyForController extends BaseController
if (n==1){
tBorrowingApplyFor.setBorrowingDeptId(null);
}
startPage();
List<TBorrowingApplyFor> list = tBorrowingApplyForService.selectTBorrowingApplyForList(tBorrowingApplyFor);
return getDataTableT(list,permission);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment