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
5c5c53d6
Commit
5c5c53d6
authored
Dec 17, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通知
parent
0cc663a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
NoticeMessageTypeEnum.java
...om/gic/haoban/manage/api/enums/NoticeMessageTypeEnum.java
+1
-1
GroupChatPlanServiceImpl.java
...e/service/service/chat/impl/GroupChatPlanServiceImpl.java
+4
-3
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/NoticeMessageTypeEnum.java
View file @
5c5c53d6
...
@@ -37,7 +37,7 @@ public enum NoticeMessageTypeEnum {
...
@@ -37,7 +37,7 @@ public enum NoticeMessageTypeEnum {
GROUP_CHAT_PLAN
(
2015
,
"社群群发任务通知"
,
NoticeMessageCategoryTypeEnum
.
TASK
.
getType
(),
"haobanGroupChatPlan"
,
"/pages/route/index?pageType="
,
"hbapp_canvas_group_send"
,
"haobanGroupChatPlan"
,
"haobanNotice"
),
GROUP_CHAT_PLAN
(
2015
,
"社群群发任务通知"
,
NoticeMessageCategoryTypeEnum
.
TASK
.
getType
(),
"haobanGroupChatPlan"
,
"/pages/route/index?pageType="
,
"hbapp_canvas_group_send"
,
"haobanGroupChatPlan"
,
"haobanNotice"
),
MASS_GROUP_SEND_PLAN
(
2016
,
"客户群发任务通知"
,
NoticeMessageCategoryTypeEnum
.
TASK
.
getType
(),
"haobanMassGroupSendPlan"
,
"/pages/route/index?pageType="
,
"hbapp_canvas_custom_send"
,
"haobanMassGroupSendPlan"
,
"haobanNotice"
),
MASS_GROUP_SEND_PLAN
(
2016
,
"客户群发任务通知"
,
NoticeMessageCategoryTypeEnum
.
TASK
.
getType
(),
"haobanMassGroupSendPlan"
,
"/pages/route/index?pageType="
,
"hbapp_canvas_custom_send"
,
"haobanMassGroupSendPlan"
,
"haobanNotice"
),
TEL_TASK_CANVAS
(
2017
,
"
客户群发
任务通知"
,
NoticeMessageCategoryTypeEnum
.
TASK
.
getType
(),
"haobanTelTaskCanvas"
,
"/pages/route/index?pageType="
,
"hbapp_canvas_task"
,
"haobanTelTaskCanvas"
,
"haobanNotice"
),
TEL_TASK_CANVAS
(
2017
,
"
话务
任务通知"
,
NoticeMessageCategoryTypeEnum
.
TASK
.
getType
(),
"haobanTelTaskCanvas"
,
"/pages/route/index?pageType="
,
"hbapp_canvas_task"
,
"haobanTelTaskCanvas"
,
"haobanNotice"
),
STORE_ACCOUNT
(
3001
,
"账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"store_account"
,
"/pages/route/index?pageType="
,
"store_relate_store_record_list"
,
"accountApplication"
,
"haobanNotice"
),
STORE_ACCOUNT
(
3001
,
"账号申请"
,
NoticeMessageCategoryTypeEnum
.
OTHER
.
getType
(),
"store_account"
,
"/pages/route/index?pageType="
,
"store_relate_store_record_list"
,
"accountApplication"
,
"haobanNotice"
),
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanServiceImpl.java
View file @
5c5c53d6
...
@@ -306,14 +306,15 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
...
@@ -306,14 +306,15 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
return
Collections
.
emptyList
()
;
return
Collections
.
emptyList
()
;
}
}
private
void
sendNotice
(
String
enterpriseId
,
String
staffId
,
String
clerkId
,
String
taskName
,
Date
endTime
,
Long
ownerLogId
)
{
private
void
sendNotice
(
String
enterpriseId
,
String
staffId
,
String
clerkId
,
String
taskName
,
Date
endTime
,
Long
planId
,
Long
ownerLogId
)
{
logger
.
info
(
"发送社群任务通知,clerkId={}"
,
clerkId
);
logger
.
info
(
"发送社群任务通知,clerkId={}"
,
clerkId
);
// 发送通知
// 发送通知
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"taskName"
,
taskName
);
map
.
put
(
"taskName"
,
taskName
);
map
.
put
(
"overTime"
,
DateUtil
.
dateToStr
(
endTime
,
"yyyy-MM-dd HH:mm:ss"
));
map
.
put
(
"overTime"
,
DateUtil
.
dateToStr
(
endTime
,
"yyyy-MM-dd HH:mm:ss"
));
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"taskId"
,
ownerLogId
)
;
jsonObject
.
put
(
"planId"
,
planId
)
;
jsonObject
.
put
(
"ownerLogId"
,
ownerLogId
)
;
int
messageType
=
NoticeMessageTypeEnum
.
GROUP_CHAT_PLAN
.
getType
();
int
messageType
=
NoticeMessageTypeEnum
.
GROUP_CHAT_PLAN
.
getType
();
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
enterpriseId
,
staffId
,
clerkId
,
messageType
,
null
,
map
,
jsonObject
);
NoticeMessageUtil
.
sendNoticeMessageByStaff
(
enterpriseId
,
staffId
,
clerkId
,
messageType
,
null
,
map
,
jsonObject
);
}
}
...
@@ -425,7 +426,7 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
...
@@ -425,7 +426,7 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
String
enterpriseId
=
ownerLog
.
getEnterpriseId
()
;
String
enterpriseId
=
ownerLog
.
getEnterpriseId
()
;
String
clerkId
=
ownerLog
.
getClerkId
()
;
String
clerkId
=
ownerLog
.
getClerkId
()
;
String
staffId
=
ownerLog
.
getStaffId
()
;
String
staffId
=
ownerLog
.
getStaffId
()
;
this
.
sendNotice
(
enterpriseId
,
staffId
,
clerkId
,
plan
.
getName
(),
plan
.
getEndTime
(),
ownerLog
.
getOwnerLogId
());
this
.
sendNotice
(
enterpriseId
,
staffId
,
clerkId
,
plan
.
getName
(),
plan
.
getEndTime
(),
planId
,
ownerLog
.
getOwnerLogId
());
}
}
}
}
}
}
...
...
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