|
@@ -15,10 +15,7 @@ import com.travel.model.User;
|
|
|
import com.travel.model.WxWithdrawal;
|
|
import com.travel.model.WxWithdrawal;
|
|
|
import com.travel.service.LoginService;
|
|
import com.travel.service.LoginService;
|
|
|
import com.travel.service.ZFBPayService;
|
|
import com.travel.service.ZFBPayService;
|
|
|
-import com.travel.util.AmountUtil;
|
|
|
|
|
-import com.travel.util.DesDecry;
|
|
|
|
|
-import com.travel.util.ParsingToken;
|
|
|
|
|
-import com.travel.util.SnowflakeUtil;
|
|
|
|
|
|
|
+import com.travel.util.*;
|
|
|
import com.travel.zfb.ZfbPayUtils;
|
|
import com.travel.zfb.ZfbPayUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -106,10 +103,12 @@ public class ZfbCashController extends ZfbPayUtils {
|
|
|
AlipayFundTransUniTransferResponse response = alipayClient.certificateExecute(requestVal);
|
|
AlipayFundTransUniTransferResponse response = alipayClient.certificateExecute(requestVal);
|
|
|
if (response.isSuccess()) {
|
|
if (response.isSuccess()) {
|
|
|
WxWithdrawal wxWithdrawal = new WxWithdrawal()
|
|
WxWithdrawal wxWithdrawal = new WxWithdrawal()
|
|
|
- .setUuid(uuid)
|
|
|
|
|
- .setAmount(caSh.getMoney())
|
|
|
|
|
- .setOutTradeNo(out_trade_no)
|
|
|
|
|
- .setCode(supplier.getCode());
|
|
|
|
|
|
|
+ .setUuid(uuid) //id
|
|
|
|
|
+ .setAmount(caSh.getMoney()) //提现金额
|
|
|
|
|
+ .setOutTradeNo(out_trade_no) //提现单号
|
|
|
|
|
+ .setCode(supplier.getCode()) //提现人编号
|
|
|
|
|
+ .setName(caSh.getName()) //支付宝真实姓名
|
|
|
|
|
+ .setAccount(DesEncry.encrypt(caSh.getIdentity())); //支付宝账号
|
|
|
zfbPayService.zfbCash(wxWithdrawal);//存入提现记录
|
|
zfbPayService.zfbCash(wxWithdrawal);//存入提现记录
|
|
|
zfbPayService.minusBalanceOf(wxWithdrawal);//余额 - 提现额度
|
|
zfbPayService.minusBalanceOf(wxWithdrawal);//余额 - 提现额度
|
|
|
map.put("msg", "200");
|
|
map.put("msg", "200");
|