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
1
Merge Requests
1
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
a077e601
Commit
a077e601
authored
Feb 26, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7513023d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
DepartmentContoller.java
...gic/haoban/manage/web/controller/DepartmentContoller.java
+8
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/DepartmentContoller.java
View file @
a077e601
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
...
...
@@ -34,6 +35,7 @@ import com.gic.haoban.manage.web.qo.DepartmentAddQO;
import
com.gic.haoban.manage.web.qo.DepartmentEditQO
;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
import
com.gic.redis.data.util.RedisUtil
;
@RestController
public
class
DepartmentContoller
extends
WebBaseController
{
...
...
@@ -153,7 +155,9 @@ public class DepartmentContoller extends WebBaseController{
LoginVO
login
=
(
LoginVO
)
AuthRequestUtil
.
getSessionUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
Integer
count
=
departmentApiService
.
departmentRecycleCount
(
wxEnterpriseId
);
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"count"
,
count
);
map
.
put
(
"syncDate"
,
RedisUtil
.
getCache
(
"haoban-sync-department-"
+
wxEnterpriseId
));
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
count
);
}
...
...
@@ -180,6 +184,9 @@ public class DepartmentContoller extends WebBaseController{
@RequestMapping
(
"department-batch-sync"
)
public
HaobanResponse
departmentBatchSync
(
String
editDepartment
,
String
delDepartmentIds
,
String
addDepartment
)
{
LoginVO
login
=
(
LoginVO
)
AuthRequestUtil
.
getSessionUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
RedisUtil
.
setCache
(
"haoban-sync-department-"
+
wxEnterpriseId
,
System
.
currentTimeMillis
());
if
(
StringUtils
.
isNotBlank
(
addDepartment
))
{
List
<
DepartmentAddQO
>
list
=
JSONArray
.
parseArray
(
addDepartment
,
DepartmentAddQO
.
class
);
for
(
DepartmentAddQO
departmentAddQO
:
list
)
{
...
...
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