Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
huluobin
gogirl-miniapp-backend
Commits
1b0778b0
Commit
1b0778b0
authored
Apr 14, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业微信推送Fix bug
parent
ae621e21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
TechnicianPushServiceImpl.java
...tructure/service/push/impl/TechnicianPushServiceImpl.java
+7
-6
No files found.
src/main/java/com/gogirl/infrastructure/service/push/impl/TechnicianPushServiceImpl.java
View file @
1b0778b0
...
...
@@ -20,6 +20,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.web.client.RestTemplate
;
import
javax.annotation.Resource
;
import
java.text.SimpleDateFormat
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -42,7 +43,7 @@ public class TechnicianPushServiceImpl implements TechnicianPushService {
ScheduleManage
scheduleManage
=
scheduleManageMapper
.
selectById
(
scheduledId
);
String
name
=
scheduleManage
.
getStoreScheduleUsername
();
String
phone
=
scheduleManage
.
getTelephone
();
String
date
=
scheduleManage
.
getArriveTime
().
toString
(
);
String
date
=
new
SimpleDateFormat
(
"yyyy年MM月dd HH:mm:ss"
).
format
(
scheduleManage
.
getArriveTime
()
);
List
<
ScheduleServe
>
scheduleServeList
=
scheduleServeMapper
.
selectList
(
new
LambdaQueryWrapper
<
ScheduleServe
>().
eq
(
ScheduleServe:
:
getSchId
,
scheduledId
));
String
serves
=
scheduleServeList
.
stream
().
map
(
ScheduleServe:
:
getServeName
).
collect
(
Collectors
.
joining
(
","
));
...
...
@@ -56,11 +57,11 @@ public class TechnicianPushServiceImpl implements TechnicianPushService {
EnterpriseWxMsg
.
EnterpriseTextWxMsg
textWxMsg
=
new
EnterpriseWxMsg
.
EnterpriseTextWxMsg
();
StringBuilder
builder
=
new
StringBuilder
();
String
content
=
builder
.
append
(
"预约提醒\n"
)
.
append
(
"预约客户
:
"
).
append
(
name
).
append
(
"\n"
)
.
append
(
"预约客户手机
:
"
).
append
(
phone
).
append
(
"\n"
)
.
append
(
"预约时
间:
"
).
append
(
date
).
append
(
"\n"
)
.
append
(
"预约技师"
).
append
(
technicianNames
).
append
(
"\n"
)
String
content
=
builder
.
append
(
"预约提醒\n
\n
"
)
.
append
(
"预约客户
:
"
).
append
(
name
).
append
(
"\n"
)
.
append
(
"预约客户手机
:
"
).
append
(
phone
).
append
(
"\n"
)
.
append
(
"预约时
:
"
).
append
(
date
).
append
(
"\n"
)
.
append
(
"预约技师
:
"
).
append
(
technicianNames
).
append
(
"\n"
)
.
append
(
"预约项目: "
).
append
(
serves
).
append
(
"\n"
)
.
toString
();
textWxMsg
.
setMentioned_mobile_list
(
storeTechnicianList
.
stream
().
map
(
StoreTechnician:
:
getMobile
).
collect
(
Collectors
.
toList
()));
...
...
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