xiaoyong931011
2021-05-12 22210a5cf2fab56cf129fd313cfe448a2c2ef86b
src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java
@@ -514,12 +514,20 @@
      memberWalletCoinMapper.updateById(walletCoin);
      
      if ("Y".equals(selectById.getIsInside())) {
         Long aimMemberId = null;
         if(symbol.equals("XCH")){
            MemberEntity memberEntity = memberMapper.selectMemberByInviteId(address);
            if (memberEntity == null) {
               throw new GlobalException("地址有误或用户不存在,请拒绝!");
            }
            aimMemberId = memberEntity.getId();
         }else{
         Map<String, Object> columnMap = new HashMap<>();
         columnMap.put("symbol", symbol);
         columnMap.put("address", address);
         // 如果是内部转账 则需要将币加到内部地址
         List<MemberCoinAddressEntity> selectByMap = memberCoinAddressMapper.selectByMap(columnMap);
         Long aimMemberId = null;
         if(CollUtil.isEmpty(selectByMap)) {
//            return new FebsResponse().message("地址有误,请拒绝!");
//            throw new GlobalException("地址有误,请拒绝!");
@@ -532,6 +540,7 @@
         } else {
            aimMemberId = selectByMap.get(0).getMemberId();
         }
         }
         MemberWalletCoinEntity aimWalletCoin = memberWalletCoinMapper.findWalletCoinByMemberIdAndWalletCode(aimMemberId, symbol);
         
         BigDecimal addTotal = aimWalletCoin.getTotalBalance().add(selectById.getAmount());