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
26506a75
Commit
26506a75
authored
Feb 15, 2022
by
yaosai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix-0215' into 'master'
企业微信openId兼容 See merge request
!168
parents
8c233bfe
03761022
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
37 deletions
+67
-37
MessageApiService.java
.../com/gic/haoban/manage/api/service/MessageApiService.java
+50
-37
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+17
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/MessageApiService.java
View file @
26506a75
...
@@ -7,30 +7,33 @@ import com.gic.haoban.manage.api.dto.QywxCallBackDTO;
...
@@ -7,30 +7,33 @@ import com.gic.haoban.manage.api.dto.QywxCallBackDTO;
* Created by tgs on 2020/2/20.
* Created by tgs on 2020/2/20.
*/
*/
public
interface
MessageApiService
{
public
interface
MessageApiService
{
/**
/**
* 接收企业微信的推送消息
* 接收企业微信的推送消息
*
*
* @param gicMessageDTO
* @param gicMessageDTO
*/
*/
@Deprecated
@Deprecated
void
gicMessageReceive
(
GicMessageDTO
gicMessageDTO
);
void
gicMessageReceive
(
GicMessageDTO
gicMessageDTO
);
/**
/**
* 接收企业微信的推送消息
* 接收企业微信的推送消息
*
*
* @param qywxCallBackDTO
* @param qywxCallBackDTO
*/
*/
@Deprecated
@Deprecated
void
wxMessageReceive
(
QywxCallBackDTO
qywxCallBackDTO
);
void
wxMessageReceive
(
QywxCallBackDTO
qywxCallBackDTO
);
/**
/**
* 队列消费企业微信推送数据
* 队列消费企业微信推送数据
* @param param
*
* @param param
*/
*/
@Deprecated
@Deprecated
void
dealWxMessage
(
String
param
);
void
dealWxMessage
(
String
param
);
/**
/**
* 发送消费消息
* 发送消费消息
*
* @param clerkId
* @param clerkId
* @param memberId
* @param memberId
* @param memberName
* @param memberName
...
@@ -38,28 +41,38 @@ public interface MessageApiService {
...
@@ -38,28 +41,38 @@ public interface MessageApiService {
* @param storeId
* @param storeId
* @return
* @return
*/
*/
Boolean
sendFaceMessage
(
String
clerkId
,
String
memberId
,
String
memberName
,
String
arrivalTime
,
String
storeId
);
Boolean
sendFaceMessage
(
String
clerkId
,
String
memberId
,
String
memberName
,
String
arrivalTime
,
String
storeId
);
/**
/**
* 发送完善标签信息
* 发送完善标签信息
*
*
* @param clerkId
* @param clerkId
* @param clerkId
* @param clerkId
* @param memberName
* @param memberName
* @param customerTime
* @param customerTime
* @param orderId
* @param orderId
* @param storeId
* @param storeId
*/
*/
Boolean
sendPerfectRemarkMessage
(
String
clerkId
,
String
memberId
,
String
memberName
,
String
customerTime
,
String
orderId
,
String
storeId
);
Boolean
sendPerfectRemarkMessage
(
String
clerkId
,
String
memberId
,
String
memberName
,
String
customerTime
,
String
orderId
,
String
storeId
);
/**
/**
* 通用发送企业微信消息
* 通用发送企业微信消息
*
*
* @param param 参数
* @param param 参数
* @author xuwenqian
* @author xuwenqian
* @date 2021-07-16 10:09:00
* @date 2021-07-16 10:09:00
*/
*/
void
sendWxMessage
(
String
param
);
void
sendWxMessage
(
String
param
);
/**
* 获取新的微信用户id
*
* @param wxEnterpriseId 微信企业id
* @param wxUserId 微信用户id
* @author xuwenqian
* @date 2021-07-16 10:09:00
*/
String
getNewWxUserId
(
String
wxEnterpriseId
,
String
wxUserId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
26506a75
...
@@ -558,4 +558,21 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -558,4 +558,21 @@ public class MessageApiServiceImpl implements MessageApiService {
messageDTO
.
setItems
(
items
);
messageDTO
.
setItems
(
items
);
qywxSuiteApiService
.
sendMessage
(
wxEnterprise
.
getCorpid
(),
config
.
getWxSuiteid
(),
messageDTO
);
qywxSuiteApiService
.
sendMessage
(
wxEnterprise
.
getCorpid
(),
config
.
getWxSuiteid
(),
messageDTO
);
}
}
@Override
public
String
getNewWxUserId
(
String
wxEnterpriseId
,
String
wxUserId
)
{
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
String
corpid
=
wxEnterpriseDTO
.
getCorpid
();
TabHaobanStaff
tabHaobanStaff
=
staffService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
if
(
corpid
.
length
()
>
20
)
{
wxUserId
=
tabHaobanStaff
.
getWxOpenUseId
();
}
else
{
wxUserId
=
tabHaobanStaff
.
getWxUserId
();
}
return
wxUserId
;
}
}
}
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