chenjiahe
2023-05-06 ed4e2b52d2d8193c329f4c484b6594178fa1d4c5
卡包退款优化
2个文件已修改
6 ■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/config/FeignRequestInterceptor.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/tool/refund/PartialRefundUtil.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phi_platform_user/src/main/java/com/hx/phip/config/FeignRequestInterceptor.java
@@ -64,7 +64,7 @@
                }
            }
            if (publicKeyMap.get(appId) != null) {
                logger.info("重新生成sign,当前AppId:" + appId);
                //logger.info("重新生成sign,当前AppId:" + appId);
                requestTemplate.header("sign", createRequestSign(appId, publicKeyMap.get(appId), ""));
            } else {
                //找不到publicKey
phi_platform_user/src/main/java/com/hx/phip/tool/refund/PartialRefundUtil.java
@@ -1153,6 +1153,10 @@
            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);