Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
ms
soss
Commits
c57c1a45
Commit
c57c1a45
authored
Jun 09, 2022
by
张新旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug中
parent
41ef2769
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
soss-admin/src/main/resources/application.yml
+2
-2
soss-system/src/main/java/com/soss/system/service/impl/MachineApiServiceImpl.java
+5
-6
soss-system/src/main/java/com/soss/system/service/impl/OrderServiceImpl.java
+1
-0
soss-system/src/main/java/com/soss/system/weixin/util/SendMessageUtils.java
+1
-1
No files found.
soss-admin/src/main/resources/application.yml
View file @
c57c1a45
...
...
@@ -112,4 +112,4 @@ machine:
json
:
path
:
D:\workspecs\soss\soss\soss-admin\src\main\resources/province.json
timeout
:
10
template
:
[{
\"status\"
:
\"2\"
,
\"templateId\"
:
\"1uErx-15S-3vuopXSvvsxCeM_Jd-1iZC-nXzd2yW3QU\"
,
\"param\"
:{
\"character_string1\"
:
\"$.orderNum\"
,
\"thing2\"
:
\"$.shop.name\"
,
\"thing12\"
:
\"$.shop.address\"
,
\"time7\"
:
\"now\"
,
\"thing6\"
:
\"您的订单已经下单成功了~\"
}},{
\"status\"
:
\"3\"
,
\"templateId\"
:
\"Q4HDwBEvpTXpwtZktqWm4SZOTEuQK1x48xjqjD2GqyM\"
,
\"param\"
:{
\"thing1\"
:
\"$.shop.name\"
,
\"date6\"
:
\"now\"
,
\"thing5\"
:
\"您的订单已经开始制作了,马上就可以享用美食了!\"
}},{
\"status\"
:
\"4\"
,
\"templateId\"
:
\"Fu_CPIXa0cnJ4EDdVKqFQ3qqKJccMqt2oorI5mfNq74\"
,
\"param\"
:{
\"character_string4\"
:
\"$.orderNum\"
,
\"thing2\"
:
\"$.shop.name\"
,
\"thing7\"
:
\"$.shop.address\"
,
\"time6\"
:
\"now\"
,
\"thing11\"
:
\"您的订单已经制作完成了,现在可以去取餐啦!\"
}}]
\ No newline at end of file
template
:
[{
\"status\"
:
\"2\"
,
\"templateId\"
:
\"1uErx-15S-3vuopXSvvsxCeM_Jd-1iZC-nXzd2yW3QU\"
,
\"param\"
:{
\"character_string1\"
:
\"$.orderNum\"
,
\"thing2\"
:
\"$.shop.name\"
,
\"thing12\"
:
\"$.shop.address\"
,
\"time7\"
:
\"now\"
,
\"thing6\"
:
\"您的订单已经下单成功了~\"
}},{
\"status\"
:
\"3\"
,
\"templateId\"
:
\"Q4HDwBEvpTXpwtZktqWm4SZOTEuQK1x48xjqjD2GqyM\"
,
\"param\"
:{
\"thing1\"
:
\"$.shop.name\"
,
\"date6\"
:
\"now\"
,
\"thing5\"
:
\"您的订单已经开始制作了!\"
}},{
\"status\"
:
\"4\"
,
\"templateId\"
:
\"Fu_CPIXa0cnJ4EDdVKqFQ3qqKJccMqt2oorI5mfNq74\"
,
\"param\"
:{
\"character_string4\"
:
\"$.orderNum\"
,
\"thing2\"
:
\"$.shop.name\"
,
\"thing7\"
:
\"$.shop.address\"
,
\"time6\"
:
\"now\"
,
\"thing11\"
:
\"您的订单已经制作完成了,现在可以去取餐啦!\"
}}]
\ No newline at end of file
soss-system/src/main/java/com/soss/system/service/impl/MachineApiServiceImpl.java
View file @
c57c1a45
...
...
@@ -136,15 +136,14 @@ public class MachineApiServiceImpl {
if
(
order1
==
null
){
throw
new
ServiceException
(
"该订单不存在"
);
}
Order
order
=
new
Order
();
order
.
setId
(
orderID
);
order
.
setState
(
status
);
order
.
setUpdatedAt
(
new
Date
());
order1
.
setState
(
status
);
order1
.
setUpdatedAt
(
new
Date
());
if
(
OrderStatusConstant
.
completed
.
equals
(
status
)){
order
.
setFinishTime
(
new
Date
());
order
1
.
setFinishTime
(
new
Date
());
}
int
i
=
orderService
.
updateOrder
(
order
);
int
i
=
orderService
.
updateOrder
(
order
1
);
return
i
+
""
;
...
...
soss-system/src/main/java/com/soss/system/service/impl/OrderServiceImpl.java
View file @
c57c1a45
...
...
@@ -510,6 +510,7 @@ public class OrderServiceImpl implements IOrderService
map
.
put
(
"waitTime"
,
waitTime
);
map
.
put
(
"pickCode"
,
order
.
getPickCode
());
map
.
put
(
"orderNum"
,
order
.
getOrderNum
());
map
.
put
(
"state"
,
order
.
getState
());
return
map
;
}
...
...
soss-system/src/main/java/com/soss/system/weixin/util/SendMessageUtils.java
View file @
c57c1a45
...
...
@@ -50,7 +50,7 @@ public class SendMessageUtils {
"\"param\": {"
+
"\"thing1\": \"$.shop.name\","
+
"\"date6\": \"now\","
+
"\"thing5\": \"
您的订单已经开始制作了,马上就可以享用美食了!
\""
+
"\"thing5\": \"
订单已经开始制作,即将可以享用美食!
\""
+
"}"
+
"}, {"
+
"\"status\": \"4\","
+
...
...
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