Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
5e28a7d7
Commit
5e28a7d7
authored
Nov 13, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
7a66f1b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
34 deletions
+36
-34
src/main/java/cn/timer/api/controller/LoginController.java
+36
-34
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
5e28a7d7
...
@@ -856,46 +856,48 @@ public class LoginController {
...
@@ -856,46 +856,48 @@ public class LoginController {
zas
.
stream
().
forEach
(
o
->
menus
.
add
(
o
.
getMenuId
()));
zas
.
stream
().
forEach
(
o
->
menus
.
add
(
o
.
getMenuId
()));
qyzxEmpLogin1
.
setMenus
(
menus
);
qyzxEmpLogin1
.
setMenus
(
menus
);
List
<
MenuStructureDto
>
mestrs
=
new
ArrayList
<
MenuStructureDto
>();
}
}
List
<
QyzxAdminMenu
>
qyme
=
QyzxAdminMenu
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
QyzxAdminMenu
>().
lambda
().
eq
(
QyzxAdminMenu:
:
getOrgCode
,
qyzxEmpLogin1
.
getOrgId
()).
orderByAsc
(
QyzxAdminMenu:
:
getSortNumber
));
String
[]
zdy
=
new
String
[
qyme
.
size
()];
int
i
=
0
;
List
<
MenuStructureDto
>
mestrs
=
new
ArrayList
<
MenuStructureDto
>();
for
(
QyzxAdminMenu
me
:
qyme
)
{
List
<
QyzxAdminMenu
>
qyme
=
QyzxAdminMenu
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
QyzxAdminMenu
>().
lambda
().
eq
(
QyzxAdminMenu:
:
getOrgCode
,
qyzxEmpLogin1
.
getOrgId
()).
orderByAsc
(
QyzxAdminMenu:
:
getSortNumber
));
String
[]
zdy
=
new
String
[
qyme
.
size
()];
int
i
=
0
;
for
(
QyzxAdminMenu
me
:
qyme
)
{
MenuStructureDto
metr
=
MenuStructureDto
.
builder
().
build
();
metr
.
setMenu_code
(
me
.
getMenuCode
());
metr
.
setMenu_name
(
me
.
getMenuName
());
metr
.
setSort_number
(
me
.
getSortNumber
());
metr
.
setPath
(
""
);
mestrs
.
add
(
metr
);
zdy
[
i
]
=
me
.
getMenuCode
();
i
++;
}
//
List
<
AdminMenuTemplate
>
adtes
=
AdminMenuTemplate
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
AdminMenuTemplate
>().
lambda
().
eq
(
AdminMenuTemplate:
:
getEnable
,
1
));
for
(
AdminMenuTemplate
adm
:
adtes
)
{
if
(!
ClockInTool
.
useArrayUtils
(
ClockInTool
.
deleteArrayNull
(
zdy
),
adm
.
getMenuCode
()))
{
if
(
adm
.
getDistribution
()
==
0
&&
qyzxEmpLogin1
.
getOrgId
()
==
3
)
{
MenuStructureDto
metr
=
MenuStructureDto
.
builder
().
build
();
MenuStructureDto
metr
=
MenuStructureDto
.
builder
().
build
();
metr
.
setMenu_code
(
me
.
getMenuCode
());
metr
.
setMenu_code
(
adm
.
getMenuCode
());
metr
.
setMenu_name
(
me
.
getMenuName
());
metr
.
setMenu_name
(
adm
.
getMenuName
());
metr
.
setSort_number
(
me
.
getSortNumber
());
metr
.
setSort_number
(
adm
.
getSortNumber
());
metr
.
setPath
(
""
);
mestrs
.
add
(
metr
);
}
else
if
(
adm
.
getDistribution
()
==
1
)
{
MenuStructureDto
metr
=
MenuStructureDto
.
builder
().
build
();
metr
.
setMenu_code
(
adm
.
getMenuCode
());
metr
.
setMenu_name
(
adm
.
getMenuName
());
metr
.
setSort_number
(
adm
.
getSortNumber
());
metr
.
setPath
(
""
);
metr
.
setPath
(
""
);
mestrs
.
add
(
metr
);
mestrs
.
add
(
metr
);
zdy
[
i
]
=
me
.
getMenuCode
();
i
++;
}
//
List
<
AdminMenuTemplate
>
adtes
=
AdminMenuTemplate
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
AdminMenuTemplate
>().
lambda
().
eq
(
AdminMenuTemplate:
:
getEnable
,
1
));
for
(
AdminMenuTemplate
adm
:
adtes
)
{
if
(!
ClockInTool
.
useArrayUtils
(
ClockInTool
.
deleteArrayNull
(
zdy
),
adm
.
getMenuCode
()))
{
if
(
adm
.
getDistribution
()
==
0
&&
qyzxEmpLogin1
.
getOrgId
()
==
3
)
{
MenuStructureDto
metr
=
MenuStructureDto
.
builder
().
build
();
metr
.
setMenu_code
(
adm
.
getMenuCode
());
metr
.
setMenu_name
(
adm
.
getMenuName
());
metr
.
setSort_number
(
adm
.
getSortNumber
());
metr
.
setPath
(
""
);
mestrs
.
add
(
metr
);
}
else
if
(
adm
.
getDistribution
()
==
1
)
{
MenuStructureDto
metr
=
MenuStructureDto
.
builder
().
build
();
metr
.
setMenu_code
(
adm
.
getMenuCode
());
metr
.
setMenu_name
(
adm
.
getMenuName
());
metr
.
setSort_number
(
adm
.
getSortNumber
());
metr
.
setPath
(
""
);
mestrs
.
add
(
metr
);
}
}
}
}
qyzxEmpLogin1
.
setMenstr
(
mestrs
);
}
}
}
}
qyzxEmpLogin1
.
setMenstr
(
mestrs
);
// 可操作企业
// 可操作企业
// 需要更新最后一次登陆信息
// 需要更新最后一次登陆信息
...
...
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