Commit c57c1a45 by 张新旗

修复bug中

parent 41ef2769
...@@ -112,4 +112,4 @@ machine: ...@@ -112,4 +112,4 @@ machine:
json: json:
path: D:\workspecs\soss\soss\soss-admin\src\main\resources/province.json path: D:\workspecs\soss\soss\soss-admin\src\main\resources/province.json
timeout: 10 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\":\"您的订单已经制作完成了,现在可以去取餐啦!\"}}] 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 \ No newline at end of file
...@@ -136,15 +136,14 @@ public class MachineApiServiceImpl { ...@@ -136,15 +136,14 @@ public class MachineApiServiceImpl {
if(order1==null){ if(order1==null){
throw new ServiceException("该订单不存在"); throw new ServiceException("该订单不存在");
} }
Order order = new Order();
order.setId(orderID); order1.setState(status);
order.setState(status); order1.setUpdatedAt(new Date());
order.setUpdatedAt(new Date());
if(OrderStatusConstant.completed.equals(status)){ if(OrderStatusConstant.completed.equals(status)){
order.setFinishTime(new Date()); order1.setFinishTime(new Date());
} }
int i = orderService.updateOrder(order); int i = orderService.updateOrder(order1);
return i+""; return i+"";
......
...@@ -510,6 +510,7 @@ public class OrderServiceImpl implements IOrderService ...@@ -510,6 +510,7 @@ public class OrderServiceImpl implements IOrderService
map.put("waitTime",waitTime); map.put("waitTime",waitTime);
map.put("pickCode",order.getPickCode()); map.put("pickCode",order.getPickCode());
map.put("orderNum",order.getOrderNum()); map.put("orderNum",order.getOrderNum());
map.put("state",order.getState());
return map; return map;
} }
......
...@@ -50,7 +50,7 @@ public class SendMessageUtils { ...@@ -50,7 +50,7 @@ public class SendMessageUtils {
"\"param\": {" + "\"param\": {" +
"\"thing1\": \"$.shop.name\"," + "\"thing1\": \"$.shop.name\"," +
"\"date6\": \"now\"," + "\"date6\": \"now\"," +
"\"thing5\": \"您的订单已经开始制作了,马上就可以享用美食了!\"" + "\"thing5\": \"订单已经开始制作,即将可以享用美食!\"" +
"}" + "}" +
"}, {" + "}, {" +
"\"status\": \"4\"," + "\"status\": \"4\"," +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment