店铺管理-店铺配置:打印机设置相关接口

This commit is contained in:
谭凯凯
2024-10-12 15:34:14 +08:00
committed by Tankaikai
parent 0b68aa89d5
commit 1e4223aa10
2 changed files with 8 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ public class NotifyController {
String payOrderId = bizData.getString("payOrderId");
String payType = bizData.getString("payType");
String payTime = bizData.getString("payTime");
long amount = bizData.getLongValue("amount");
long paidTime = DateUtil.parseDateTime(payTime).getTime();
if (!"TRADE_SUCCESS".equals(state)) {
log.error("支付失败:{},{}", state, note);
@@ -51,10 +52,11 @@ public class NotifyController {
}
TbOrderInfo entity = orderService.selectByPayOrderNo(payOrderId);
if (entity == null) {
log.error("订单不存在:{}", payOrderId);
return Result.fail("订单不存在");
}
entity.setPaidTime(paidTime);
orderService.payCallbackCloseOrder(entity, payType);
orderService.payCallbackCloseOrder(entity, payType, amount);
return Result.success(CodeEnum.SUCCESS);
}