|
@@ -1276,8 +1276,8 @@ public class OrderController extends BaseController {
|
|
orderService.update(order);
|
|
orderService.update(order);
|
|
|
|
|
|
JSONObject kindData = new JSONObject();
|
|
JSONObject kindData = new JSONObject();
|
|
- kindData.put("sn" , order.getSn());
|
|
|
|
- kindData.put("productName" , order.getProductName());
|
|
|
|
|
|
+// kindData.put("sn" , order.getSn());
|
|
|
|
+// kindData.put("productName" , order.getProductName());
|
|
|
|
|
|
Equipment byClientId = equipmentService.findByClientId(order.getClientId());
|
|
Equipment byClientId = equipmentService.findByClientId(order.getClientId());
|
|
List<Price> priceList = priceService.findAll();
|
|
List<Price> priceList = priceService.findAll();
|
|
@@ -1353,11 +1353,14 @@ public class OrderController extends BaseController {
|
|
}else{
|
|
}else{
|
|
int value = number.intValue();
|
|
int value = number.intValue();
|
|
byClientId.setRemaining(String.valueOf(value));
|
|
byClientId.setRemaining(String.valueOf(value));
|
|
|
|
+ equipmentService.update(byClientId);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
String gtClientId = byClientId.getGtClientId();
|
|
String gtClientId = byClientId.getGtClientId();
|
|
-
|
|
|
|
|
|
+ kindData.put("overdueDate" , byClientId.getOverdueDate());
|
|
|
|
+ kindData.put("remaining" , byClientId.getRemaining());
|
|
|
|
+ PushUtils.push(byClientId.getGtClientId(), "支付成功", "您的订单支付成功", PushUtils.buildJson("paySuccess", kindData.toString()).toString());
|
|
// PushUtils.push(gtClientId, "支付成功", "您的订单支付成功", PushUtils.buildJson("pay_success", kindData.toString()).toString());
|
|
// PushUtils.push(gtClientId, "支付成功", "您的订单支付成功", PushUtils.buildJson("pay_success", kindData.toString()).toString());
|
|
// PushUtils.push(equipmentService.findByClientId(order.getClientId()).getGtClientId(), "支付成功", "您的订单支付成功", PushUtils.buildJson("pay_success", kindData.toString()).toString());
|
|
// PushUtils.push(equipmentService.findByClientId(order.getClientId()).getGtClientId(), "支付成功", "您的订单支付成功", PushUtils.buildJson("pay_success", kindData.toString()).toString());
|
|
order.setNote(gtClientId+"已推送");
|
|
order.setNote(gtClientId+"已推送");
|