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
57c03cba
Commit
57c03cba
authored
Nov 16, 2021
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:兼容好办助手和代开发
parent
bcf15b41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+3
-8
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
57c03cba
...
...
@@ -284,21 +284,16 @@ public class WxEnterpriseController extends WebBaseController {
String
wxEnterpriseId
=
""
;
LoginDTO
login
=
(
LoginDTO
)
AuthRequestUtil
.
getLoginUser
();
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
WxEnterpriseDTO
wxEnterprise
=
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
List
<
SecretSettingDTO
>
listSecret
=
wxEnterpriseApiService
.
listSecret
(
wxEnterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
listSecret
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
}
Set
<
Integer
>
secretTypeList
=
listSecret
.
stream
().
filter
(
secretSettingDTO
->
{
return
secretSettingDTO
.
getCheckFlag
()
==
1
;
}).
map
(
secretSettingDTO
->
{
return
secretSettingDTO
.
getSecretType
();
}).
collect
(
Collectors
.
toSet
());
Set
<
Integer
>
secretTypeList
=
listSecret
.
stream
().
filter
(
secretSettingDTO
->
secretSettingDTO
.
getCheckFlag
()
==
1
).
map
(
secretSettingDTO
->
secretSettingDTO
.
getSecretType
()).
collect
(
Collectors
.
toSet
());
if
(
CollectionUtils
.
isEmpty
(
secretTypeList
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
}
if
(
secretTypeList
.
contains
(
SecretTypeEnum
.
HAOBAN_HELP
.
getVal
())
&&
secretTypeList
.
contains
(
SecretTypeEnum
.
CONTACT_CUSTOMER
.
getVal
()))
{
if
((
secretTypeList
.
contains
(
SecretTypeEnum
.
HAOBAN_HELP
.
getVal
())
||
secretTypeList
.
contains
(
SecretTypeEnum
.
CUSTOMIZED_APP
.
getVal
()))
&&
secretTypeList
.
contains
(
SecretTypeEnum
.
CONTACT_CUSTOMER
.
getVal
()))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
}
else
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
...
...
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