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
cf86cbf6
Commit
cf86cbf6
authored
Apr 21, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
28aeff46
24bd27f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
198 additions
and
1 deletions
+198
-1
DepartmentContoller.java
...gic/haoban/manage/web/controller/DepartmentContoller.java
+29
-0
DepartmentChainVO.java
.../java/com/gic/haoban/manage/web/vo/DepartmentChainVO.java
+168
-0
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+1
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/DepartmentContoller.java
View file @
cf86cbf6
...
...
@@ -52,6 +52,7 @@ import com.gic.haoban.manage.web.qo.DepartmentAddQO;
import
com.gic.haoban.manage.web.qo.DepartmentEditQO
;
import
com.gic.haoban.manage.web.qo.SyncDepartmentQO
;
import
com.gic.haoban.manage.web.thread.SyncDepartmentThread
;
import
com.gic.haoban.manage.web.vo.DepartmentChainVO
;
import
com.gic.haoban.manage.web.vo.DepartmentVO
;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
...
...
@@ -395,6 +396,34 @@ public class DepartmentContoller extends WebBaseController{
}
@RequestMapping
(
"department-chain"
)
public
HaobanResponse
departmentChain
(
String
departmentId
)
{
if
(
StringUtils
.
isBlank
(
departmentId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
DepartmentDTO
department
=
departmentApiService
.
selectById
(
departmentId
);
if
(
department
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10003
);
}
String
chainId
=
departmentId
;
while
(
department
!=
null
){
department
=
departmentApiService
.
selectById
(
department
.
getParentDepartmentId
());
if
(
department
!=
null
){
chainId
=
department
.
getDepartmentId
()
+
Constant
.
ID_SEPARATOR
+
chainId
;
}
}
String
[]
chainIdArr
=
chainId
.
split
(
Constant
.
ID_SEPARATOR
);
List
<
DepartmentChainVO
>
list
=
new
ArrayList
<>();
for
(
String
string
:
chainIdArr
)
{
DepartmentDTO
son
=
departmentApiService
.
selectById
(
string
);
DepartmentChainVO
chain
=
EntityUtil
.
changeEntityByJSON
(
DepartmentChainVO
.
class
,
son
);
if
(
son
!=
null
){
list
.
add
(
chain
);
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
list
);
}
@RequestMapping
(
"department-batch-sync-success"
)
public
HaobanResponse
syncSuccess
(
String
syncKey
)
{
if
(
RedisUtil
.
getCache
(
syncKey
)
==
null
){
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/vo/DepartmentChainVO.java
0 → 100644
View file @
cf86cbf6
package
com
.
gic
.
haoban
.
manage
.
web
.
vo
;
import
java.io.Serializable
;
public
class
DepartmentChainVO
implements
Serializable
{
private
String
departmentId
;
private
String
departmentName
;
private
String
parentDepartmentId
;
private
String
relatedId
;
private
Integer
isStore
;
private
String
wxDepartmentId
;
private
Integer
level
;
private
Integer
sort
;
private
String
wxEnterpriseId
;
private
Integer
type
;
private
Integer
bindFlag
;
private
String
gicEnterpriseName
;
private
Boolean
hasSonNode
;
private
String
enterpriseId
;
private
String
relatedCode
;
private
DepartmentChainVO
sonDepartment
;
public
String
getDepartmentId
()
{
return
departmentId
;
}
public
void
setDepartmentId
(
String
departmentId
)
{
this
.
departmentId
=
departmentId
;
}
public
String
getDepartmentName
()
{
return
departmentName
;
}
public
void
setDepartmentName
(
String
departmentName
)
{
this
.
departmentName
=
departmentName
;
}
public
String
getParentDepartmentId
()
{
return
parentDepartmentId
;
}
public
void
setParentDepartmentId
(
String
parentDepartmentId
)
{
this
.
parentDepartmentId
=
parentDepartmentId
;
}
public
String
getRelatedId
()
{
return
relatedId
;
}
public
void
setRelatedId
(
String
relatedId
)
{
this
.
relatedId
=
relatedId
;
}
public
Integer
getIsStore
()
{
return
isStore
;
}
public
void
setIsStore
(
Integer
isStore
)
{
this
.
isStore
=
isStore
;
}
public
String
getWxDepartmentId
()
{
return
wxDepartmentId
;
}
public
void
setWxDepartmentId
(
String
wxDepartmentId
)
{
this
.
wxDepartmentId
=
wxDepartmentId
;
}
public
Integer
getLevel
()
{
return
level
;
}
public
void
setLevel
(
Integer
level
)
{
this
.
level
=
level
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
;
}
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
public
Integer
getBindFlag
()
{
return
bindFlag
;
}
public
void
setBindFlag
(
Integer
bindFlag
)
{
this
.
bindFlag
=
bindFlag
;
}
public
String
getGicEnterpriseName
()
{
return
gicEnterpriseName
;
}
public
void
setGicEnterpriseName
(
String
gicEnterpriseName
)
{
this
.
gicEnterpriseName
=
gicEnterpriseName
;
}
public
Boolean
getHasSonNode
()
{
return
hasSonNode
;
}
public
void
setHasSonNode
(
Boolean
hasSonNode
)
{
this
.
hasSonNode
=
hasSonNode
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getRelatedCode
()
{
return
relatedCode
;
}
public
void
setRelatedCode
(
String
relatedCode
)
{
this
.
relatedCode
=
relatedCode
;
}
public
DepartmentChainVO
getSonDepartment
()
{
return
sonDepartment
;
}
public
void
setSonDepartment
(
DepartmentChainVO
sonDepartment
)
{
this
.
sonDepartment
=
sonDepartment
;
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
cf86cbf6
...
...
@@ -346,7 +346,7 @@ public class ClerkController extends WebBaseController{
Integer
count
=
RedisUtil
.
getCache
(
key
)
==
null
?
0
:
(
Integer
)
RedisUtil
.
getCache
(
key
);
if
(
count
==
null
||
count
<
4
){
RedisUtil
.
setCache
(
key
,
count
+
1
,
31
*
24
*
60
*
60
l
);
memberUnionidRelatedApiService
.
freshWxFrend
(
wxEnterpriseId
,
wxUserId
);
memberUnionidRelatedApiService
.
freshWxFrend
(
wxEnterpriseId
,
staff
.
getWxUserId
()
);
}
else
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10011
);
...
...
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