Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
precision-effect
Commits
d5ccc29f
Commit
d5ccc29f
authored
May 28, 2024
by
吴卿华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改借支申请
parent
bdaa7b4e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
TBorrowingApplyForController.java
.../controller/transaction/TBorrowingApplyForController.java
+2
-4
No files found.
precision-effect-admin/src/main/java/com/zehong/web/controller/transaction/TBorrowingApplyForController.java
View file @
d5ccc29f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment