From 1d573f8aecdeba9a0824eb10e45178c325cf7703 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期六, 06 五月 2023 17:14:57 +0800 Subject: [PATCH] 卡包退款优化 --- phi_platform_user/src/main/java/com/hx/phip/tool/refund/PartialRefundUtil.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/phi_platform_user/src/main/java/com/hx/phip/tool/refund/PartialRefundUtil.java b/phi_platform_user/src/main/java/com/hx/phip/tool/refund/PartialRefundUtil.java index 06ce33e..fe6176e 100644 --- a/phi_platform_user/src/main/java/com/hx/phip/tool/refund/PartialRefundUtil.java +++ b/phi_platform_user/src/main/java/com/hx/phip/tool/refund/PartialRefundUtil.java @@ -1138,6 +1138,10 @@ int opNum = 0; StringBuilder sql; for(UserCardUsed userCardUsed:userCardUsedList){ + //鍒ゆ柇鏄惁澶熶簡锛岃烦鍑哄惊鐜� + if(opNum == returnNum){ + break; + } sql = new StringBuilder(); sql.append("isDel = 1"); map.clear(); @@ -1153,10 +1157,6 @@ sql.append(" WHERE id = #{m.id} AND isDel = 0"); sqlSentence.sqlUpdate(sql.toString(),map); opNum = opNum+commonService.updateWhere(UserCardUsedMapper.class,sqlSentence); - //鍒ゆ柇鏄惁澶熶簡锛岃烦鍑哄惊鐜� - if(opNum == returnNum){ - return; - } } if(opNum != returnNum){ logger.error("鍗″寘鍥為��鏁伴噺閿欒-鍗″寘閫�娆惧け璐�,userCardId:{},cardItemInfoId:{},sourceId:{},orderId:{},refundNum:{},returnNum:{},opNum:{}",userCardId,cardItemInfoId,sourceId,orderId,refundNum,returnNum,opNum); -- Gitblit v1.8.0