Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
52e37911
Commit
52e37911
authored
Aug 24, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
7944fb23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
TestController.java
.../com/gic/haoban/manage/web/controller/TestController.java
+26
-0
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+1
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TestController.java
View file @
52e37911
...
...
@@ -441,8 +441,34 @@ public class TestController extends WebBaseController {
return
"企业不存在"
;
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"企微加密说明"
,
"1(全明文) 2(全密文) 3(第三方密文,代开明文) 4(第三方明文,代开密文)"
)
;
map
.
put
(
"当前企业加密方式"
,
getCorpid
(
qwDTO
))
;
map
.
put
(
"企微信息"
,
qwDTO
)
;
return
map
;
}
private
String
getCorpid
(
WxEnterpriseQwDTO
wxEnterpriseDTO
)
{
int
wxType
=
wxEnterpriseDTO
.
getWxSecurityType
()
;
String
desc
=
" -- "
;
if
(
wxType
==
1
)
{
desc
=
"(全部明文)"
;
}
if
(
wxType
==
2
)
{
desc
=
"(全部密文)"
;
}
if
(
wxType
==
3
)
{
desc
=
"(第三方密文,代开明文)"
;
}
if
(
wxType
==
4
)
{
desc
=
"(第三方明文,代开密文)"
;
}
return
Arrays
.
asList
(
wxEnterpriseDTO
.
getThirdCorpid
()+
"(第三方)"
,
wxEnterpriseDTO
.
getDkCorpid
()+
"()"
).
stream
().
filter
(
str
->
StringUtils
.
isNotBlank
(
str
)).
collect
(
Collectors
.
joining
(
" / "
))
+
desc
;
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
52e37911
...
...
@@ -621,6 +621,7 @@ public class WxEnterpriseController extends WebBaseController {
List
<
String
>
finalWxEids
=
wxEids
;
enterpriseList
.
forEach
(
dto
->
{
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
dto
.
getWxEnterpriseId
());
logger
.
info
(
"wxEnterpriseDTO={},dto={}"
,
JSON
.
toJSONString
(
wxEnterpriseDTO
),
JSON
.
toJSONString
(
dto
));
dto
.
setEnterpriseName
(
wxEnterpriseDTO
.
getCorpName
());
if
(
finalWxEids
.
contains
(
dto
.
getWxEnterpriseId
()))
{
dto
.
setBindFlag
(
1
);
...
...
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