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
5ab16e5e
Commit
5ab16e5e
authored
Apr 03, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 销售线索通知跳转
parent
e314e055
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
PotentialCustomerNotifyContext.java
...jo/bo/content/context/PotentialCustomerNotifyContext.java
+3
-2
PotentialCustomerNotifyBuilder.java
...rvice/content/adaptor/PotentialCustomerNotifyBuilder.java
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/content/context/PotentialCustomerNotifyContext.java
View file @
5ab16e5e
...
...
@@ -90,7 +90,7 @@ public class PotentialCustomerNotifyContext {
noticeMessageBO
.
setDescription
(
String
.
format
(
"新增%s个客户的销售线索,请及时跟进"
,
customerStaticsMap
.
get
(
item
.
getClerkId
())));
noticeMessageBO
.
setEnterpriseId
(
this
.
enterpriseId
);
noticeMessageBO
.
setRelationId
(
item
.
getClerkId
());
noticeMessageBO
.
setMessageContent
(
this
.
buildExtendParams
(
item
.
getStoreId
()));
noticeMessageBO
.
setMessageContent
(
this
.
buildExtendParams
(
item
.
getStoreId
()
,
item
.
getClerkId
()
));
return
noticeMessageBO
;
})
.
collect
(
Collectors
.
toList
());
...
...
@@ -101,9 +101,10 @@ public class PotentialCustomerNotifyContext {
* @param storeId
* @return
*/
public
String
buildExtendParams
(
String
storeId
)
{
public
String
buildExtendParams
(
String
storeId
,
String
clerkId
)
{
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"storeId"
,
storeId
);
jsonObject
.
put
(
"clerkId"
,
clerkId
);
return
jsonObject
.
toJSONString
();
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/adaptor/PotentialCustomerNotifyBuilder.java
View file @
5ab16e5e
...
...
@@ -184,7 +184,7 @@ public class PotentialCustomerNotifyBuilder {
continue
;
}
QywxXcxSendMessageDTO
messageDTO
=
this
.
buildApplicationMessage
(
staffClerkRelation
,
wxEnterpriseQwDTO
,
customerStaticsBOMap
.
get
(
staffClerkRelation
.
getClerkId
()).
getNum
(),
context
.
buildExtendParams
(
staffClerkRelation
.
getStoreId
()));
customerStaticsBOMap
.
get
(
staffClerkRelation
.
getClerkId
()).
getNum
(),
context
.
buildExtendParams
(
staffClerkRelation
.
getStoreId
()
,
staffClerkRelation
.
getClerkId
()
));
boolean
sendMessage
=
qywxSuiteApiService
.
sendMessage
(
wxEnterpriseQwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
messageDTO
);
log
.
info
(
"发送销售线索应用消息结果 {}"
,
sendMessage
);
}
...
...
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