订单添加支付时间
This commit is contained in:
@@ -618,6 +618,7 @@ public class TbOrderInfoServiceImpl implements TbOrderInfoService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
orderInfo.setStatus("refund");
|
orderInfo.setStatus("refund");
|
||||||
|
orderInfo.setPaidTime(cn.hutool.core.date.DateUtil.current());
|
||||||
orderInfoMapper.updateById(orderInfo);
|
orderInfoMapper.updateById(orderInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1548,6 +1548,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isOnline) {
|
if (!isOnline) {
|
||||||
|
orderInfo.setPaidTime(DateUtil.current());
|
||||||
orderInfo.setPayAmount(finalAmount);
|
orderInfo.setPayAmount(finalAmount);
|
||||||
orderInfo.setStatus("closed");
|
orderInfo.setStatus("closed");
|
||||||
orderInfo.setDiscountRatio(BigDecimal.valueOf(payDTO.getDiscount()));
|
orderInfo.setDiscountRatio(BigDecimal.valueOf(payDTO.getDiscount()));
|
||||||
|
|||||||
Reference in New Issue
Block a user