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

修改借支申请

parent 40c7bc88
...@@ -56,10 +56,21 @@ public class TBorrowingApplyForController extends BaseController ...@@ -56,10 +56,21 @@ public class TBorrowingApplyForController extends BaseController
if ("calculator".equals(user.getRoles().get(i).getRoleKey())){ if ("calculator".equals(user.getRoles().get(i).getRoleKey())){
permission=1; permission=1;
} }
if (!"calculator".equals(user.getRoles().get(i).getRoleKey())){ }
int n=0;
for (int i=0;i<user.getRoles().size();i++) {
if ("calculator".equals(user.getRoles().get(i).getRoleKey())) {
n=1;
}
/**判断是否是部门长 如果是部门长 就只查询本部门*/
if (!"deptLeader".equals(user.getRoles().get(i).getRoleKey())) {
tBorrowingApplyFor.setBorrowingDeptId(user.getDeptId()); tBorrowingApplyFor.setBorrowingDeptId(user.getDeptId());
} }
} }
if (n==1){
tBorrowingApplyFor.setBorrowingDeptId(null);
}
startPage(); startPage();
List<TBorrowingApplyFor> list = tBorrowingApplyForService.selectTBorrowingApplyForList(tBorrowingApplyFor); List<TBorrowingApplyFor> list = tBorrowingApplyForService.selectTBorrowingApplyForList(tBorrowingApplyFor);
......
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