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
f078543c
Commit
f078543c
authored
Jan 13, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/01-10' into developer
parents
7a286de2
1999fd36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+17
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
f078543c
...
...
@@ -372,7 +372,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
checkQywxSettingApiService
.
saveFriendCallback
(
wxEnterpriseId
,
null
,
dto
);
return
;
}
TabHaobanStaff
staff
=
staffService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
TabHaobanStaff
staff
=
staffService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
if
(
staff
==
null
)
{
log
.
info
(
"staff不存在:{},{}"
,
dto
.
getUnionid
(),
dto
.
getWxUserId
());
return
;
...
...
@@ -736,7 +736,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
public
MemberUnionidRelatedDTO
getMemberUnionidRelatedDTONew
(
MemberUnionidRelatedDTO
dto
)
{
log
.
info
(
"【新增外部联系人回调】dto={}"
,
JSON
.
toJSONString
(
dto
));
String
corpId
=
dto
.
getCorpid
();
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByCorpId
(
corpId
,
null
);
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByCorpId
(
corpId
,
null
);
if
(
tabHaobanWxApplication
==
null
)
{
log
.
info
(
"查询tab_haoban_wx_application为空:{}"
,
corpId
);
return
null
;
...
...
@@ -1169,14 +1169,26 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
jp
.
setErrorMessage
(
"群发素材不存在, 群发创建失败"
);
return
jp
;
}
WxEnterpriseDTO
enterprise
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
//请求参数赋值
qywxExternalMessageDTO
.
setChatType
(
"single"
);
qywxExternalMessageDTO
.
setExternalUserid
(
extendUserList
);
String
corpid
=
enterprise
.
getCorpid
();
if
(
corpid
.
length
()
>
20
)
{
TabHaobanStaff
tabHaobanStaff
=
staffService
.
selectByUserIdAndEnterpriseId
(
userId
,
wxEnterpriseId
);
if
(
tabHaobanStaff
==
null
)
{
JSONResponse
jp
=
new
JSONResponse
();
jp
.
setErrorCode
(-
1
);
jp
.
setErrorMessage
(
"员工未查询到,群发创建失败,userId:"
+
userId
);
return
jp
;
}
qywxExternalMessageDTO
.
setSenderUserId
(
tabHaobanStaff
.
getWxOpenUseId
());
}
else
{
qywxExternalMessageDTO
.
setSenderUserId
(
userId
);
}
qywxExternalMessageDTO
.
setAttachments
(
messageMaterialList
);
//调接口执行创建群发
WxEnterpriseDTO
enterprise
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
return
qywxSuiteApiService
.
sendExternalMessage
(
enterprise
.
getCorpid
(),
config
.
getWxSuiteid
(),
qywxExternalMessageDTO
);
return
qywxSuiteApiService
.
sendExternalMessage
(
corpid
,
config
.
getWxSuiteid
(),
qywxExternalMessageDTO
);
}
/**
...
...
@@ -1746,6 +1758,6 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
@Override
public
MemberUnionidRelatedDTO
getBySelfExternalUserId
(
String
wxEnterpriseId
,
String
selfExternalUserId
)
{
return
memberUnionRelatedService
.
getBySelfExternalUserId
(
wxEnterpriseId
,
selfExternalUserId
);
return
memberUnionRelatedService
.
getBySelfExternalUserId
(
wxEnterpriseId
,
selfExternalUserId
);
}
}
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