|
@@ -78,6 +78,8 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
private StudentInstrumentService studentInstrumentService;
|
|
|
@Autowired
|
|
|
private StudentGoodsSellService studentGoodsSellService;
|
|
|
+ @Autowired
|
|
|
+ private SysCouponCodeDao sysCouponCodeDao;
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
|
|
@@ -144,6 +146,11 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
if (orderByOrderNo.getBalancePaymentAmount() != null && orderByOrderNo.getBalancePaymentAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
sysUserCashAccountService.updateBalance(orderByOrderNo.getUserId(), orderByOrderNo.getBalancePaymentAmount(), PlatformCashAccountDetailTypeEnum.REFUNDS, "关闭订单");
|
|
|
}
|
|
|
+ //退优惠券
|
|
|
+ String couponCodeId = orderByOrderNo.getCouponCodeId();
|
|
|
+ if(StringUtils.isNotEmpty(couponCodeId)){
|
|
|
+ sysCouponCodeDao.quit(couponCodeId);
|
|
|
+ }
|
|
|
}
|
|
|
StudentGoodsSell byOrderNo = studentGoodsSellDao.findByOrderNo(studentGoodsSell.getOrderNo());
|
|
|
if (byOrderNo != null) {
|