fhx
2024-08-02 1a6d191e52b0003c8437b8e470dbc9f845b9fc0f
1.完善退款可退其他支付方式逻辑
1个文件已修改
11 ■■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/controller/refund/OrderRefundController.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/controller/refund/OrderRefundController.java
@@ -6,6 +6,7 @@
import com.hx.exception.TipsException;
import com.hx.mybatisTool.SqlSentence;
import com.hx.phiappt.common.OrderTotalConstants;
import com.hx.phiappt.common.PayMethodTypeConstants;
import com.hx.phiappt.dao.mapper.OrdersTotalMapper;
import com.hx.phiappt.model.*;
import com.hx.phiappt.model.consume.ConsumeNotify;
@@ -470,9 +471,17 @@
                otherRefundMethodList.add(orderPayMethodDto);
            }
        }
        //再遍历原支付方式,是现金和执行金额才赋值其他配置的支付方式退款
        for(OrderPayMethodDto payMethodDto : refundPayMethodList){
            if(PayMethodTypeConstants.PAY_ADD_FUND.equals(payMethodDto.getRefundNumberNo())
                    || PayMethodTypeConstants.PAY_STORED.equals(payMethodDto.getRefundNumberNo())
                    || PayMethodTypeConstants.PAY_MONEY.equals(payMethodDto.getRefundNumberNo())
                    || PayMethodTypeConstants.PAY_INTEGRAL.equals(payMethodDto.getRefundNumberNo())
                    || PayMethodTypeConstants.PAY_INTEGRAL_CASH.equals(payMethodDto.getRefundNumberNo())
            ){
                continue;
            }
            if(payMethodDto.getIsMoneyPay() == BaseEntity.YES && payMethodDto.getIsExecute() == BaseEntity.YES){
                payMethodDto.setOtherRefundMethodList(otherRefundMethodList);
            }