| | |
| | | } |
| | | } |
| | | 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 |
| | |
| | | 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); |