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
b1b058a3
Commit
b1b058a3
authored
Dec 27, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:人脸识别消息
parent
fddb530f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
24 deletions
+36
-24
NoticeMessageTypeEnum.java
...om/gic/haoban/manage/api/enums/NoticeMessageTypeEnum.java
+1
-0
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+35
-24
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/NoticeMessageTypeEnum.java
View file @
b1b058a3
...
@@ -29,6 +29,7 @@ public enum NoticeMessageTypeEnum {
...
@@ -29,6 +29,7 @@ public enum NoticeMessageTypeEnum {
STORE_ACCOUNT
(
3001
,
"门店账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"store_account"
,
"/pages/route/index?pageType="
,
"store_relate_store_record_list"
),
STORE_ACCOUNT
(
3001
,
"门店账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"store_account"
,
"/pages/route/index?pageType="
,
"store_relate_store_record_list"
),
MEMBER_FACE
(
3002
,
"门店账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"member_face"
,
"/pages/route/index?pageType="
,
"hbapp_customer_edit_tag"
),
STORE_ACCOUNT_REFUSE
(
3010
,
"门店账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"store_account_refuse"
,
"/pages/route/index?pageType="
,
"store_relate_store_record_list"
),
STORE_ACCOUNT_REFUSE
(
3010
,
"门店账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"store_account_refuse"
,
"/pages/route/index?pageType="
,
"store_relate_store_record_list"
),
STORE_ACCOUNT_AGREE
(
3011
,
"门店账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"store_account_agree"
,
"/pages/route/index?pageType="
,
"store_relate_store_record_list"
),
STORE_ACCOUNT_AGREE
(
3011
,
"门店账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"store_account_agree"
,
"/pages/route/index?pageType="
,
"store_relate_store_record_list"
),
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
b1b058a3
...
@@ -11,8 +11,10 @@ import com.gic.haoban.base.api.common.Constant;
...
@@ -11,8 +11,10 @@ import com.gic.haoban.base.api.common.Constant;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.enums.AppPageType
;
import
com.gic.haoban.manage.api.enums.AppPageType
;
import
com.gic.haoban.manage.api.enums.GicDataType
;
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.WxEditType
;
import
com.gic.haoban.manage.api.service.*
;
import
com.gic.haoban.manage.api.service.*
;
import
com.gic.haoban.manage.api.util.notify.NoticeMessageUtil
;
import
com.gic.haoban.manage.service.config.Config
;
import
com.gic.haoban.manage.service.config.Config
;
import
com.gic.haoban.manage.service.entity.TabHaobanDepartment
;
import
com.gic.haoban.manage.service.entity.TabHaobanDepartment
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
...
@@ -472,8 +474,8 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -472,8 +474,8 @@ public class MessageApiServiceImpl implements MessageApiService {
jsonObject
.
put
(
"memberId"
,
memberId
);
jsonObject
.
put
(
"memberId"
,
memberId
);
jsonObject
.
put
(
"storeId"
,
storeId
);
jsonObject
.
put
(
"storeId"
,
storeId
);
jsonObject
.
put
(
"currentTab"
,
1
);
jsonObject
.
put
(
"currentTab"
,
1
);
String
data
=
jsonObject
.
toJSONString
();
//
String data = jsonObject.toJSONString();
String
pageUrl
=
staffDepartmentRelatedApiService
.
getPageUrl
(
AppPageType
.
PERFECT_TAG
.
getCode
(),
data
);
//
String pageUrl = staffDepartmentRelatedApiService.getPageUrl(AppPageType.PERFECT_TAG.getCode(), data);
StaffClerkRelationDTO
relation
=
staffClerkRelationApiService
.
getByClerkId
(
clerkId
);
StaffClerkRelationDTO
relation
=
staffClerkRelationApiService
.
getByClerkId
(
clerkId
);
if
(
relation
==
null
)
{
if
(
relation
==
null
)
{
log
.
info
(
"clerkId未绑定:clerkId={}"
,
clerkId
);
log
.
info
(
"clerkId未绑定:clerkId={}"
,
clerkId
);
...
@@ -488,28 +490,37 @@ public class MessageApiServiceImpl implements MessageApiService {
...
@@ -488,28 +490,37 @@ public class MessageApiServiceImpl implements MessageApiService {
if
(
staffDTO
==
null
)
{
if
(
staffDTO
==
null
)
{
return
false
;
return
false
;
}
}
String
corpId
=
wxEnterprise
.
getCorpid
();
// String corpId = wxEnterprise.getCorpid();
String
wxUserId
=
""
;
// String wxUserId = "";
if
(
corpId
.
length
()
>
20
)
{
// if (corpId.length() > 20) {
wxUserId
=
staffDTO
.
getWxOpenUseId
();
// wxUserId = staffDTO.getWxOpenUseId();
}
else
{
// } else {
wxUserId
=
staffDTO
.
getWxUserId
();
// wxUserId = staffDTO.getWxUserId();
}
// }
QywxXcxSendMessageDTO
messageDTO
=
new
QywxXcxSendMessageDTO
();
// QywxXcxSendMessageDTO messageDTO = new QywxXcxSendMessageDTO();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
// Map<String, String> map = new HashMap<>();
map
.
put
(
"事件"
,
"会员完善标签"
);
// map.put("事件", "会员完善标签");
map
.
put
(
"会员"
,
memberName
);
// map.put("会员", memberName);
map
.
put
(
"消费订单"
,
orderId
);
// map.put("消费订单", orderId);
map
.
put
(
"消费时间"
,
customerTime
);
// map.put("消费时间", customerTime);
List
<
ItemDTO
>
items
=
getItemsList
(
map
);
// List<ItemDTO> items = getItemsList(map);
ArrayList
<
String
>
list
=
new
ArrayList
<>();
// ArrayList<String> list = new ArrayList<>();
list
.
add
(
wxUserId
);
// list.add(wxUserId);
messageDTO
.
setAppid
(
config
.
getAppid
());
// messageDTO.setAppid(config.getAppid());
messageDTO
.
setUserIds
(
list
);
// messageDTO.setUserIds(list);
messageDTO
.
setPage
(
pageUrl
);
// messageDTO.setPage(pageUrl);
messageDTO
.
setTitle
(
"我的顾客通知"
);
// messageDTO.setTitle("我的顾客通知");
messageDTO
.
setItems
(
items
);
// messageDTO.setItems(items);
return
qywxSuiteApiService
.
sendMessage
(
wxEnterprise
.
getCorpid
(),
config
.
getWxSuiteid
(),
messageDTO
);
//
// return qywxSuiteApiService.sendMessage(wxEnterprise.getCorpid(), config.getWxSuiteid(), messageDTO);
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"memberName"
,
memberName
);
params
.
put
(
"orderId"
,
orderId
);
params
.
put
(
"customerTime"
,
customerTime
);
NoticeMessageUtil
.
sendNoticeMessage
(
relation
.
getEnterpriseId
(),
relation
.
getClerkId
(),
NoticeMessageTypeEnum
.
MEMBER_FACE
.
getType
(),
null
,
params
,
jsonObject
);
return
true
;
}
}
...
...
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