zhouxiang
2023-02-23 bec88badaeb0341a1d5429b31357eb37c0b16fb0
phi_platform_user/src/main/java/com/hx/phip/util/api/PartialRefundUtil.java
@@ -217,10 +217,10 @@
        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){