| | |
| | | sqlSentence.setSqlSentence("select * from refund_record_coupon where refundRecordId=#{m.refundRecordId} and isDel=0 "); |
| | | List<RefundRecordCoupon> refundRecordCouponList=commonService.selectList(RefundRecordCouponMapper.class,sqlSentence); |
| | | //退款成功 |
| | | map.put("isDel", BaseEntity.YES); |
| | | map.put("status", BaseEntity.YES); |
| | | CouponOrderDiscountLog couponOrderDiscountLog=null; |
| | | for (RefundRecordCoupon refundRecordCoupon : refundRecordCouponList) { |
| | | sqlSentence.setSqlSentence(" isDel=#{m.isDel} WHERE id = #{m.id} "); |
| | | sqlSentence.setSqlSentence(" status=#{m.status} WHERE id = #{m.id} "); |
| | | map.put("id", refundRecordCoupon.getCouponOrderId()); |
| | | couponOrderDiscountLog=commonService.selectOneByKey(CouponOrderDiscountLogMapper.class,refundRecordCoupon.getCouponOrderId()); |
| | | if(couponOrderDiscountLog==null){ |