Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
4378622a
Commit
4378622a
authored
Jul 08, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
f2f8f5b0
9a462646
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
ServiceHGKC006.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
+3
-3
AuthenticationInfo.java
...sight/xservices/xs/authentication/AuthenticationInfo.java
+21
-8
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
View file @
4378622a
...
@@ -141,9 +141,9 @@ public class ServiceHGKC006 extends ServiceBase {
...
@@ -141,9 +141,9 @@ public class ServiceHGKC006 extends ServiceBase {
*/
*/
private
void
add
(
HGKC006
hgkc006
)
throws
Exception
{
private
void
add
(
HGKC006
hgkc006
)
throws
Exception
{
hgkc006
.
setOtherEnterNo
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
OTHER_ENTER_NO
));
hgkc006
.
setOtherEnterNo
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
OTHER_ENTER_NO
));
UserVO
userVO
=
HGCWTools
.
HgCw002
.
getUserCompany
();
//
UserVO userVO = HGCWTools.HgCw002.getUserCompany();
hgkc006
.
setCompanyCode
(
userVO
.
getUsercode
());
//
hgkc006.setCompanyCode(userVO.getUsercode());
hgkc006
.
setCompanyName
(
userVO
.
getUsername
());
//
hgkc006.setCompanyName(userVO.getUsername());
hgkc006
.
setSource
(
InventorySource
.
MANUAL_ENTRY
.
getCode
());
hgkc006
.
setSource
(
InventorySource
.
MANUAL_ENTRY
.
getCode
());
hgkc006
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
hgkc006
.
setSubmitStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
DaoUtils
.
insert
(
HGKC006
.
INSERT
,
hgkc006
);
DaoUtils
.
insert
(
HGKC006
.
INSERT
,
hgkc006
);
...
...
src/main/java/com/baosight/xservices/xs/authentication/AuthenticationInfo.java
View file @
4378622a
...
@@ -12,13 +12,7 @@ import com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext;
...
@@ -12,13 +12,7 @@ import com.baosight.iplat4j.core.ioc.spring.PlatApplicationContext;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
com.baosight.xservices.xs.util.LoginUserDetails
;
import
com.baosight.xservices.xs.util.LoginUserDetails
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
import
java.util.stream.Stream
;
...
@@ -574,12 +568,16 @@ public class AuthenticationInfo {
...
@@ -574,12 +568,16 @@ public class AuthenticationInfo {
BigDecimal
retLeaf
=
(
BigDecimal
)
retResultMap
.
get
(
"leaf"
);
BigDecimal
retLeaf
=
(
BigDecimal
)
retResultMap
.
get
(
"leaf"
);
BigDecimal
menuDecimal
=
new
BigDecimal
(
"2"
);
BigDecimal
menuDecimal
=
new
BigDecimal
(
"2"
);
BigDecimal
leafDecimal
=
new
BigDecimal
(
"1"
);
BigDecimal
leafDecimal
=
new
BigDecimal
(
"1"
);
String
parent
=
(
String
)
retResultMap
.
get
(
"parent"
);
if
(
retLeaf
!=
null
&&
menuDecimal
.
equals
(
retLeaf
))
{
if
(
retLeaf
!=
null
&&
menuDecimal
.
equals
(
retLeaf
))
{
Map
paramMap
=
new
HashMap
();
Map
paramMap
=
new
HashMap
();
paramMap
.
put
(
"node"
,
retResultMap
.
get
(
"label"
).
toString
());
paramMap
.
put
(
"node"
,
retResultMap
.
get
(
"label"
).
toString
());
List
childPageForMenu
=
getDao
().
query
(
"XSMenu.queryForRecursiveChildPage"
,
paramMap
);
List
childPageForMenu
=
getDao
().
query
(
"XSMenu.queryForRecursiveChildPage"
,
paramMap
);
boolean
flag
=
false
;
boolean
flag
=
false
;
List
childList
=
new
LinkedList
();
if
(
childPageForMenu
!=
null
&&
childPageForMenu
.
size
()
>
0
)
{
if
(
childPageForMenu
!=
null
&&
childPageForMenu
.
size
()
>
0
)
{
//APP需要遍历所有子菜单
if
(
parent
.
equals
(
"APP"
)){
label85:
label85:
for
(
int
j
=
0
;
j
<
pageAuthList
.
size
();
++
j
)
{
for
(
int
j
=
0
;
j
<
pageAuthList
.
size
();
++
j
)
{
Map
pageAuthMap
=
(
Map
)
pageAuthList
.
get
(
j
);
Map
pageAuthMap
=
(
Map
)
pageAuthList
.
get
(
j
);
...
@@ -588,12 +586,27 @@ public class AuthenticationInfo {
...
@@ -588,12 +586,27 @@ public class AuthenticationInfo {
Map
childPageMap
=
(
Map
)
childPageForMenu
.
get
(
k
);
Map
childPageMap
=
(
Map
)
childPageForMenu
.
get
(
k
);
if
(
childPageMap
.
get
(
"label"
).
toString
().
equals
(
pageAuthMap
.
get
(
"label"
).
toString
()))
{
if
(
childPageMap
.
get
(
"label"
).
toString
().
equals
(
pageAuthMap
.
get
(
"label"
).
toString
()))
{
flag
=
true
;
flag
=
true
;
childList
.
add
(
pageAuthMap
);
}
}
}
}
else
{
label85:
for
(
int
j
=
0
;
j
<
pageAuthList
.
size
();
++
j
)
{
Map
pageAuthMap
=
(
Map
)
pageAuthList
.
get
(
j
);
for
(
int
k
=
0
;
k
<
childPageForMenu
.
size
();
++
k
)
{
Map
childPageMap
=
(
Map
)
childPageForMenu
.
get
(
k
);
if
(
childPageMap
.
get
(
"label"
).
toString
().
equals
(
pageAuthMap
.
get
(
"label"
).
toString
()))
{
flag
=
true
;
childList
.
add
(
pageAuthMap
);
break
label85
;
break
label85
;
}
}
}
}
}
}
}
}
retResultMap
.
put
(
"childMenu"
,
childList
);
}
if
(
flag
)
{
if
(
flag
)
{
menuAndPageListForTree
.
add
(
retResultMap
);
menuAndPageListForTree
.
add
(
retResultMap
);
}
}
...
...
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