订单添加支付时间

This commit is contained in:
2024-10-12 09:15:30 +08:00
parent e1a5e491e5
commit 608fb72c78
2 changed files with 2 additions and 0 deletions

View File

@@ -618,6 +618,7 @@ public class TbOrderInfoServiceImpl implements TbOrderInfoService {
return;
}
orderInfo.setStatus("refund");
orderInfo.setPaidTime(cn.hutool.core.date.DateUtil.current());
orderInfoMapper.updateById(orderInfo);
}
}

View File

@@ -1548,6 +1548,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
}
if (!isOnline) {
orderInfo.setPaidTime(DateUtil.current());
orderInfo.setPayAmount(finalAmount);
orderInfo.setStatus("closed");
orderInfo.setDiscountRatio(BigDecimal.valueOf(payDTO.getDiscount()));