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
QianQiXiang
haoban-manage3.0
Commits
a7b99c3b
Commit
a7b99c3b
authored
Mar 30, 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
af7b2c52
987438fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+1
-0
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+17
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
a7b99c3b
...
@@ -193,6 +193,7 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -193,6 +193,7 @@ public class MessageApiServiceImpl implements MessageApiService {
String
response
=
this
.
departmentService
.
add
(
departmentDTO
);
String
response
=
this
.
departmentService
.
add
(
departmentDTO
);
log
.
info
(
"微信同步新增部门:{}"
,
JSON
.
toJSONString
(
response
));
log
.
info
(
"微信同步新增部门:{}"
,
JSON
.
toJSONString
(
response
));
}
else
{
}
else
{
departmentDTO
.
setIsStore
(
department
.
getIsStore
());
departmentDTO
.
setDepartmentId
(
department
.
getDepartmentId
());
departmentDTO
.
setDepartmentId
(
department
.
getDepartmentId
());
this
.
departmentService
.
edit
(
departmentDTO
);
this
.
departmentService
.
edit
(
departmentDTO
);
log
.
info
(
"企业微信更新同步完成"
);
log
.
info
(
"企业微信更新同步完成"
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
a7b99c3b
...
@@ -36,6 +36,8 @@ import com.gic.haoban.manage.web.auth.AuthRequestUtil;
...
@@ -36,6 +36,8 @@ import com.gic.haoban.manage.web.auth.AuthRequestUtil;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
import
com.gic.wechat.api.service.qywx.QywxCorpApiService
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
@RestController
@RestController
public
class
WxEnterpriseController
extends
WebBaseController
{
public
class
WxEnterpriseController
extends
WebBaseController
{
...
@@ -49,6 +51,8 @@ public class WxEnterpriseController extends WebBaseController{
...
@@ -49,6 +51,8 @@ public class WxEnterpriseController extends WebBaseController{
private
DepartmentApiService
departmentApiService
;
private
DepartmentApiService
departmentApiService
;
@Autowired
@Autowired
private
StoreService
storeService
;
private
StoreService
storeService
;
@Autowired
private
QywxCorpApiService
qywxCorpApiService
;
//授权企业列表
//授权企业列表
@HttpLimit
@HttpLimit
...
@@ -85,6 +89,19 @@ public class WxEnterpriseController extends WebBaseController{
...
@@ -85,6 +89,19 @@ public class WxEnterpriseController extends WebBaseController{
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wxEnterpriseDTO
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wxEnterpriseDTO
);
}
}
//企业信息
@IgnoreLogin
@RequestMapping
(
"wxEnterprise-refresh"
)
public
HaobanResponse
enterpriseRefresh
(
String
wxEnterpriseId
)
{
if
(
StringUtils
.
isEmpty
(
wxEnterpriseId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
//qywxCorpApiService.
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
wxEnterpriseDTO
);
}
//gic企业列表
//gic企业列表
@IgnoreLogin
@IgnoreLogin
@RequestMapping
(
"enterprise-search"
)
@RequestMapping
(
"enterprise-search"
)
...
...
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