| | |
| | | model.setCondition(tbOrders.getRemark()); // 设置备注信息 |
| | | // model.setDoctor("医生" + (int) (Math.random() * 10)); // 随机设置患者医生 |
| | | // model.setDoctorPhone("13" + (int) (Math.random() * 900000000 + 100000000)); // 随机生成患者医生电话 |
| | | model.setOfferPrice(tbOrders.getBookingPrice().doubleValue()); // 随机生成报价 |
| | | model.setOfferPrice(tbOrders.getBookingPrice().doubleValue()); // 生成报价 |
| | | // model.setReferrals("推介人" + (int) (Math.random() * 10)); // 随机设置推介人信息 |
| | | // model.setUnitRemarks("商户随机备注信息"); // 随机设置商户备注 |
| | | // model.setPayQRcodeURL("https://example.com/qrcode/" + (int) (Math.random() * 100)); // 随机生成外部支付二维码链接 |
| | | model.setPayQRcodeURL(scApp.getPayUrl()); |
| | | |
| | | ServiceOrderAppResultVo result = ServiceOrderUtil.CreateServiceOrder(model); |
| | | ServiceOrderAppResultVo result = ServiceOrderUtil.CreateServiceOrder(model,scApp.getMinAppSecret()); |
| | | |
| | | if (result.getResult() == 1) { |
| | | tbOrders.setOrderID(tbOrders.getOrderID()); |
| | |
| | | return AjaxResult.error("订单状态已取消"); |
| | | } |
| | | |
| | | SysClientApp scApp = clientAppService.selectSysClientAppByAppId(1L); |
| | | SysClientApp scApp = clientAppService.selectSysClientAppByAppKey("appId1"); |
| | | |
| | | |
| | | ServiceOrderAppVo model = new ServiceOrderAppVo(); |
| | |
| | | model.setOfferPrice(tbOrders.getBookingPrice().doubleValue()); // 报价 |
| | | // model.setReferrals("推介人")); // 设置推介人信息--没有推介人信息 |
| | | // model.setUnitRemarks("商户备注信息"); // 设置商户备注--没有商户备注 |
| | | // model.setPayQRcodeURL("https://example.com/qrcode/")); // 外部支付二维码链接--用不到 |
| | | model.setPayQRcodeURL(scApp.getPayUrl()); |
| | | |
| | | ServiceOrderAppResultVo result = ServiceOrderUtil.CreateServiceOrder(model); |
| | | ServiceOrderAppResultVo result = ServiceOrderUtil.CreateServiceOrder(model,scApp.getMinAppSecret()); |
| | | |
| | | if (result.getResult() == 1) { |
| | | tbOrders.setOrderID(tbOrders.getOrderID()); |
| | |
| | | model.setServiceOrdID(cancelVo.getThirdOrderNo()); // 设置第三方订单号 |
| | | model.setDELRemarks(cancelVo.getReason()); // 设置取消原因 |
| | | |
| | | ServiceOrderAppResultVo result = ServiceOrderUtil.CancelServiceOrder(model); |
| | | ServiceOrderAppResultVo result = ServiceOrderUtil.CancelServiceOrder(model,scApp.getMinAppSecret()); |
| | | |
| | | if (result.getResult() == 1) { |
| | | // 更新本地订单状态 |