|
@@ -159,13 +159,13 @@ public class LiftCaseAppealServiceImpl extends ServiceImpl<LiftCaseAppealMapper,
|
|
|
if (byId.getCouponId() != null) {
|
|
|
Coupon byCouponId = couponMapper.getByCouponId(byId.getCouponId());
|
|
|
if (byCouponId != null) {
|
|
|
- serviceCost.subtract(byCouponId.getDiscount());
|
|
|
+ serviceCost = serviceCost.subtract(byCouponId.getDiscount());
|
|
|
}
|
|
|
}
|
|
|
if (byId.getRedEnvelopeId() != null) {
|
|
|
Coupon byCouponId = couponMapper.getByCouponId(byId.getRedEnvelopeId());
|
|
|
if (byCouponId != null) {
|
|
|
- serviceCost.subtract(byCouponId.getPrice());
|
|
|
+ serviceCost = serviceCost.subtract(byCouponId.getPrice());
|
|
|
}
|
|
|
}
|
|
|
|