Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
ea4b6776
Commit
ea4b6776
authored
Dec 01, 2023
by
wuwenlong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/main'
parents
a706f7f3
2cc7b36c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+1
-1
WechatNewServiceImpl.java
.../java/share/system/service/impl/WechatNewServiceImpl.java
+12
-6
No files found.
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
ea4b6776
...
...
@@ -877,7 +877,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
throw
new
BaseException
(
"预约时间未到达,可提前"
+
Constants
.
OPEN_DOOR_AHEAD_HOUR
+
"进场,请耐心等候!"
);
}
//更改订单状态,房间状态,开始时间,结束时间
sOrder
.
setStatus
(
1
);
sOrder
.
setStatus
(
OrderStatusEnum
.
INUSE
.
getCode
()
);
//计算预约开始和结束时间时长
BigDecimal
bigDecimal
=
DateUtils
.
differentHour
(
sOrder
.
getPreStartDate
(),
sOrder
.
getPreEndDate
());
sOrder
.
setStartDate
(
new
Date
());
...
...
share-system/src/main/java/share/system/service/impl/WechatNewServiceImpl.java
View file @
ea4b6776
...
...
@@ -67,6 +67,9 @@ public class WechatNewServiceImpl implements WechatNewService {
@Autowired
private
ISStoreService
storeService
;
@Autowired
private
ISRoomService
roomService
;
/**
* 获取公众号accessToken
*/
...
...
@@ -526,8 +529,11 @@ public class WechatNewServiceImpl implements WechatNewService {
public
Boolean
sendMiniSubscribeMessage
(
SOrder
byOrderNo
,
MessageReminderEnum
messageReminderEnum
)
{
//发送模板消息 预约提醒到期
TemplateMessageVo
templateMessageVo
=
new
TemplateMessageVo
();
String
url
=
"https://www.coujio.com/front-api/order/"
+
byOrderNo
.
getOrderNo
();
templateMessageVo
.
setUrl
(
url
);
HashMap
<
String
,
SendTemplateMessageItemVo
>
data
=
new
HashMap
<>();
SStore
sStore
=
storeService
.
getById
(
byOrderNo
.
getStoreId
());
SRoomVo
sRoomVo
=
roomService
.
selectSRoomById
(
byOrderNo
.
getRoomId
());
//拼接开始和结束时间
Date
preStartDate
=
byOrderNo
.
getPreStartDate
();
Date
preEndDate
=
byOrderNo
.
getPreEndDate
();
...
...
@@ -539,9 +545,9 @@ public class WechatNewServiceImpl implements WechatNewService {
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
RESERVER
))
{
templateMessageVo
.
setTemplate_id
(
MessageReminderEnum
.
RESERVER
.
getValue
());
//添加门店名称
data
.
put
(
"thing4"
,
new
SendTemplateMessageItemVo
());
data
.
put
(
"thing4"
,
new
SendTemplateMessageItemVo
(
"武汉"
+
sStore
.
getName
()
));
//服务名称
data
.
put
(
"thing7"
,
new
SendTemplateMessageItemVo
());
data
.
put
(
"thing7"
,
new
SendTemplateMessageItemVo
(
sRoomVo
.
getName
()
));
//预约时间
data
.
put
(
"date3"
,
new
SendTemplateMessageItemVo
(
preStartDateStr
+
"-"
+
preEndDateStr
));
//地址
...
...
@@ -549,9 +555,9 @@ public class WechatNewServiceImpl implements WechatNewService {
}
else
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
START
))
{
templateMessageVo
.
setTemplate_id
(
MessageReminderEnum
.
START
.
getValue
());
//预约门店
data
.
put
(
"thing6"
,
new
SendTemplateMessageItemVo
());
data
.
put
(
"thing6"
,
new
SendTemplateMessageItemVo
(
"武汉"
+
sStore
.
getName
()
));
//服务名称
data
.
put
(
"thing7"
,
new
SendTemplateMessageItemVo
());
data
.
put
(
"thing7"
,
new
SendTemplateMessageItemVo
(
sRoomVo
.
getName
()
));
//预约时间
data
.
put
(
"time8"
,
new
SendTemplateMessageItemVo
(
preStartDateStr
+
"-"
+
preEndDateStr
));
//地址
...
...
@@ -561,9 +567,9 @@ public class WechatNewServiceImpl implements WechatNewService {
}
else
if
(
messageReminderEnum
.
equals
(
MessageReminderEnum
.
END
))
{
templateMessageVo
.
setTemplate_id
(
MessageReminderEnum
.
END
.
getValue
());
//订单门店
data
.
put
(
"thing5"
,
new
SendTemplateMessageItemVo
());
data
.
put
(
"thing5"
,
new
SendTemplateMessageItemVo
(
"武汉"
+
sStore
.
getName
()
));
//服务名称
data
.
put
(
"thing6"
,
new
SendTemplateMessageItemVo
());
data
.
put
(
"thing6"
,
new
SendTemplateMessageItemVo
(
sRoomVo
.
getName
()
));
//订单时间
data
.
put
(
"time7"
,
new
SendTemplateMessageItemVo
(
preStartDateStr
+
"-"
+
preEndDateStr
));
//地址
...
...
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