| | |
| | | |
| | | String serviceCode = ""; |
| | | String phone = ""; |
| | | String narration = ""; |
| | | if(tPubWithdrawal.getUserType() == 1){ |
| | | TUser tUser = userService.selectById(tPubWithdrawal.getUserId()); |
| | | serviceCode = tUser.getPhoneOperator(); |
| | | phone = tUser.getPhone(); |
| | | narration = "用户提现"; |
| | | }else{ |
| | | TDriver tDriver = driverService.selectById(tPubWithdrawal.getUserId()); |
| | | serviceCode = tDriver.getPhoneOperator(); |
| | | phone = tDriver.getPhone(); |
| | | narration = "司机提现"; |
| | | } |
| | | if(2 == state){ |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); |
| | | String payerTransactionID = sdf.format(new Date()) + tPubWithdrawal.getId(); |
| | | PayoutResponse payoutResponse = tinggPayoutUtil.sendPayout(serviceCode, "+" + phone, payerTransactionID, tPubWithdrawal.getMoney().doubleValue(), callbackPath + "/tPubWithdrawal/base/withdrawalCallback", "用户提现"); |
| | | PayoutResponse payoutResponse = tinggPayoutUtil.sendPayout(serviceCode, "+" + phone, payerTransactionID, tPubWithdrawal.getMoney().doubleValue(), callbackPath + "/tPubWithdrawal/base/withdrawalCallback", narration); |
| | | AuthStatus authStatus = payoutResponse.getAuthStatus(); |
| | | Results results = payoutResponse.getResults().get(0); |
| | | String statusCode = results.getStatusCode(); |
| | |
| | | List<String> shellList = new ArrayList<String>(); |
| | | shellList.add("申请时间"); |
| | | shellList.add("提现人"); |
| | | shellList.add("银行卡号"); |
| | | shellList.add("开户行"); |
| | | shellList.add("提现方式"); |
| | | shellList.add("提现手机号"); |
| | | shellList.add("账户类型"); |
| | | shellList.add("提现金额"); |
| | | shellList.add("提现类型"); |
| | | shellList.add("账户余额"); |
| | | shellList.add("提现金额"); |
| | | shellList.add("联系人"); |
| | | shellList.add("联系电话"); |
| | | shellList.add("备注"); |
| | |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | | if(SinataUtil.isNotEmpty(map.get("bankName"))){ |
| | | shellList.add(map.get("bankName").toString()); |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | | //withdrawalType |
| | | if(SinataUtil.isNotEmpty(map.get("withdrawalType"))){ |
| | | switch (map.get("withdrawalType").toString()){ |
| | | case "1": |
| | | shellList.add("银行卡"); |
| | | break; |
| | | case "2": |
| | | shellList.add("线下"); |
| | | break; |
| | | default: |
| | | shellList.add("-"); |
| | | } |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | | //userType |
| | | if(SinataUtil.isNotEmpty(map.get("userType"))){ |
| | | switch (map.get("userType").toString()){ |
| | |
| | | default: |
| | | shellList.add("-"); |
| | | } |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | | //money |
| | | if(SinataUtil.isNotEmpty(map.get("money"))){ |
| | | shellList.add(map.get("money").toString()); |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | |
| | | //balance |
| | | if(SinataUtil.isNotEmpty(map.get("balance"))){ |
| | | shellList.add(map.get("balance").toString()); |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |
| | | //money |
| | | if(SinataUtil.isNotEmpty(map.get("money"))){ |
| | | shellList.add(map.get("money").toString()); |
| | | }else{ |
| | | shellList.add("-"); |
| | | } |