Commit 8dcc0c68 by 吕明尚

Merge branch 'test' into dev-lms

parents 4df53dda fbc0d459
......@@ -884,6 +884,14 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
sOrder.setRefundReasonTime(cn.hutool.core.date.DateUtil.date());
sOrder.setRefundPrice(BigDecimal.ZERO);
Boolean execute = Boolean.FALSE;
SConsumptionRecords sConsumptionRecords = new SConsumptionRecords();
sConsumptionRecords.setConsumerId(sOrder.getConsumerId());
sConsumptionRecords.setOrderId(sOrder.getId());
sConsumptionRecords.setName(ConsumeNameEnum.REFUND.getValue());
sConsumptionRecords.setPrice(sOrder.getPayPrice());
sConsumptionRecords.setPayType(PayTypeEnum.WECHAT.getName());
sConsumptionRecords.setSign(SignEnum.STRAINHT.getValue());
sConsumptionRecordsService.insertSConsumptionRecords(sConsumptionRecords);
try {
sOrder.setRefundReason(request.getRefundReason());
updateById(sOrder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment