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
a40a865f
Commit
a40a865f
authored
Oct 24, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug_1024' into developer
parents
a6289785
d36613c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+23
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
a40a865f
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.convert.Convert
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
...
...
@@ -10,6 +11,7 @@ import com.gic.clerk.api.service.ClerkNewService;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.DateUtil
;
import
com.gic.commons.util.ExcelUtils
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.enterprise.api.service.StoreWidgetService
;
...
...
@@ -407,6 +409,27 @@ public class StaffController extends WebBaseController {
}
/**
* 是否展示区经 true是
* @return
*/
@RequestMapping
(
"hasManagerFlag"
)
public
RestResponse
hasManagerFlag
()
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
List
<
EnterpriseDetailDTO
>
list
=
wxEnterpriseRelatedApiService
.
listEnterpriseByWxEnterpriseId
(
wxEnterpriseId
);
if
(
CollectionUtil
.
isEmpty
(
list
))
{
return
RestResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCode
.
ERR_10010
.
getCode
()),
HaoBanErrCode
.
ERR_10010
.
getMsg
());
}
List
<
String
>
enterpriseIds
=
list
.
stream
().
filter
(
dto
->
{
boolean
over
=
wxEnterpriseApiService
.
enterpriseIsOver
(
dto
.
getEnterpriseId
());
return
!
over
;
}).
map
(
EnterpriseDetailDTO:
:
getEnterpriseId
).
collect
(
Collectors
.
toList
());
List
<
ClerkDTO
>
clerkDTOList
=
clerkService
.
listClerkEnableHaoban
(
enterpriseIds
,
null
);
boolean
flag
=
CollectionUtils
.
isNotEmpty
(
clerkDTOList
);
return
RestResponse
.
successResult
(
flag
);
}
/**
* @return 返回值类型: <pre>
* @author 作者: qwm
* @date 时间: 2020年12月18日 上午11:11:35 <pre>
...
...
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