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
96e8476d
Commit
96e8476d
authored
Feb 10, 2022
by
xugaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改suitId
parent
022e7041
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+12
-7
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
96e8476d
...
...
@@ -12,10 +12,7 @@ import com.gic.haoban.app.customer.service.api.service.InnerApiService;
import
com.gic.haoban.base.api.common.Constant
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.enums.AppPageType
;
import
com.gic.haoban.manage.api.enums.GicDataType
;
import
com.gic.haoban.manage.api.enums.NoticeMessageTypeEnum
;
import
com.gic.haoban.manage.api.enums.WxEditType
;
import
com.gic.haoban.manage.api.enums.*
;
import
com.gic.haoban.manage.api.service.*
;
import
com.gic.haoban.manage.api.util.notify.NoticeMessageUtil
;
import
com.gic.haoban.manage.service.config.Config
;
...
...
@@ -90,6 +87,9 @@ public class MessageApiServiceImpl implements MessageApiService {
@Autowired
private
ClerkService
clerkService
;
@Autowired
private
SecretSettingService
secretSettingService
;
@Override
public
void
gicMessageReceive
(
GicMessageDTO
gicMessageDTO
)
{
if
(
true
)
{
...
...
@@ -143,8 +143,13 @@ public class MessageApiServiceImpl implements MessageApiService {
log
.
info
(
"添加企业员工失败:{}"
,
response
.
getMessage
());
return
;
}
SecretSettingDTO
secretSetting
=
secretSettingService
.
getSecretSetting
(
enterprise
.
getWxEnterpriseId
(),
SecretTypeEnum
.
HAOBAN_HELP
.
getVal
());
if
(
null
==
secretSetting
||
secretSetting
.
getCheckFlag
()
==
0
)
{
log
.
info
(
"没有配置secret:{}"
,
JSONObject
.
toJSONString
(
enterprise
));
return
;
}
// 取第一个企业的id
doDealUser
(
dto
,
relatedList
.
get
(
0
).
getEnterpriseId
());
doDealUser
(
dto
,
relatedList
.
get
(
0
).
getEnterpriseId
()
,
secretSetting
.
getSecretVal
()
);
// 以下暂时不会用到
// if (dto != null) {
...
...
@@ -184,11 +189,11 @@ public class MessageApiServiceImpl implements MessageApiService {
return
userid
.
startsWith
(
"5"
);
}
private
void
doDealUser
(
QywxCallBackDTO
dto
,
String
enterpriseId
)
{
private
void
doDealUser
(
QywxCallBackDTO
dto
,
String
enterpriseId
,
String
secret
)
{
ClerkQwDTO
clerkQwDTO
=
new
ClerkQwDTO
();
clerkQwDTO
.
setEnterpriseId
(
enterpriseId
);
String
mainDeptId
=
dto
.
getMainDepartment
();
List
<
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
>
departments
=
qywxDepartmentApiService
.
list
Department
(
dto
.
getAuthCorpId
(),
config
.
getWxSuiteid
()
,
Integer
.
valueOf
(
mainDeptId
));
List
<
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
>
departments
=
qywxDepartmentApiService
.
list
SelfDepartment
(
dto
.
getAuthCorpId
(),
secret
,
Integer
.
valueOf
(
mainDeptId
));
if
(
CollectionUtils
.
isEmpty
(
departments
))
{
log
.
info
(
"通过主部门查询部门列表为空 mainDeptId:{}"
,
mainDeptId
);
return
;
...
...
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