chenjiahe
2023-05-10 01fbcb62fbd9ac4d72d1bed3d87da5a6c73af698
作废退款-测
2个文件已修改
6 ■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/service/order/impl/OrderRefundServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/tool/refund/OrderRefundCancelTool.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/service/order/impl/OrderRefundServiceImpl.java
@@ -1422,7 +1422,7 @@
            }
            refundRecordItem.setRealRefundNum(refundRecordItem.getRefundNum());
            refundRecordItem.setRealRefundTotal(refundRecordItem.getRealRefundTotal());
            refundRecordItem.setRealRefundTotal(refundRecordItem.getRefundMoney());
            refundRecordItemService.insert(refundRecordItem);
            //减去已经分配的退款金额
phi_platform_user/src/main/java/com/hx/phip/tool/refund/OrderRefundCancelTool.java
@@ -83,7 +83,7 @@
            values.put("status",RefundRecordConsumePay.NO);
            values.put("statusOld",RefundRecordConsumePay.YES);
            values.put("id",refundRecordConsumePay.getId());
            sqlSentence.sqlUpdate("status = #{m.status} WHERE id = #{m.id} AND statusOld = #{m.statusOld}",values);
            sqlSentence.sqlUpdate("status = #{m.status} WHERE id = #{m.id} AND status = #{m.statusOld}",values);
            if(commonService.updateWhere(RefundRecordConsumePayMapper.class,sqlSentence) != 1){
                throw new TipsException("退款金额记录状态错误!");
            }
@@ -468,7 +468,7 @@
        }
        //找到用户项目
        UserProjectItem userProjectItem = PartialRefundUtil.getUserProject(refundRecordItem.getId(),commonService);
        UserProjectItem userProjectItem = PartialRefundUtil.getUserProject(orderItem.getId(),commonService);
        if (userProjectItem == null) {
            throw new PlatTipsException(PlatformCode.ERROR_TIPS,orderItem.getGoodsName()+"["+orderItem.getGoodsNo()+"]"+"未找到用户子项项目信息");
        }