|
@@ -13,7 +13,7 @@ import com.zhongshu.payment.client.model.TransferModel;
|
|
|
import com.zhongshu.payment.client.model.param.AmountUpdateParam;
|
|
import com.zhongshu.payment.client.model.param.AmountUpdateParam;
|
|
|
import com.zhongshu.payment.client.model.param.ExamineParam;
|
|
import com.zhongshu.payment.client.model.param.ExamineParam;
|
|
|
import com.zhongshu.payment.client.model.param.RechargeParam;
|
|
import com.zhongshu.payment.client.model.param.RechargeParam;
|
|
|
-import com.zhongshu.payment.client.ret.ResultContent;
|
|
|
|
|
|
|
+import com.github.microservice.models.ret.ResultContent;
|
|
|
import com.zhongshu.payment.client.types.DataState;
|
|
import com.zhongshu.payment.client.types.DataState;
|
|
|
import com.zhongshu.payment.client.types.RechargeState;
|
|
import com.zhongshu.payment.client.types.RechargeState;
|
|
|
import com.zhongshu.payment.client.types.TradeType;
|
|
import com.zhongshu.payment.client.types.TradeType;
|
|
@@ -36,6 +36,7 @@ import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 提现
|
|
* 提现
|
|
|
|
|
+ *
|
|
|
* @author wjf
|
|
* @author wjf
|
|
|
* @date 2024/7/29
|
|
* @date 2024/7/29
|
|
|
*/
|
|
*/
|
|
@@ -64,27 +65,27 @@ public class TransferService {
|
|
|
OrganizationFeignService organizationFeignService;
|
|
OrganizationFeignService organizationFeignService;
|
|
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
|
- public Object transfer(RechargeParam param){
|
|
|
|
|
|
|
+ public Object transfer(RechargeParam param) {
|
|
|
String userId = authHelper.getCurrentUser().getUserId();
|
|
String userId = authHelper.getCurrentUser().getUserId();
|
|
|
Wallet userWallet = walletDao.findTop1ById(param.getWalletId());
|
|
Wallet userWallet = walletDao.findTop1ById(param.getWalletId());
|
|
|
//判断钱包是否初始化
|
|
//判断钱包是否初始化
|
|
|
- if (userWallet==null){
|
|
|
|
|
|
|
+ if (userWallet == null) {
|
|
|
return ResultContent.buildFail("用户钱包未开通");
|
|
return ResultContent.buildFail("用户钱包未开通");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (userWallet.getDataState().equals(DataState.Disable)){
|
|
|
|
|
|
|
+ if (userWallet.getDataState().equals(DataState.Disable)) {
|
|
|
return ResultContent.buildFail("钱包已停用");
|
|
return ResultContent.buildFail("钱包已停用");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (userWallet.getWalletType().equals(WalletType.Shop)){
|
|
|
|
|
|
|
+ if (userWallet.getWalletType().equals(WalletType.Shop)) {
|
|
|
return ResultContent.buildFail("商户提现暂未开通线上提现功能");
|
|
return ResultContent.buildFail("商户提现暂未开通线上提现功能");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//判断微信支付配置
|
|
//判断微信支付配置
|
|
|
ProjectWxPayParam wxPayParam = new ProjectWxPayParam();
|
|
ProjectWxPayParam wxPayParam = new ProjectWxPayParam();
|
|
|
wxPayParam.setAppId(param.getAppid());
|
|
wxPayParam.setAppId(param.getAppid());
|
|
|
- com.zhongshu.card.client.ret.ResultContent<WxPayConfigModel> paySetResult = paySettingFeignService.getProjectWxPayConfig(wxPayParam);
|
|
|
|
|
- if (paySetResult.isFailed()){
|
|
|
|
|
|
|
+ ResultContent<WxPayConfigModel> paySetResult = paySettingFeignService.getProjectWxPayConfig(wxPayParam);
|
|
|
|
|
+ if (paySetResult.isFailed()) {
|
|
|
return ResultContent.buildFail("获取微信支付配置失败");
|
|
return ResultContent.buildFail("获取微信支付配置失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -92,8 +93,8 @@ public class TransferService {
|
|
|
OrgUserDetailParam orgUserDetailParam = new OrgUserDetailParam();
|
|
OrgUserDetailParam orgUserDetailParam = new OrgUserDetailParam();
|
|
|
orgUserDetailParam.setOid(param.getSchoolId());
|
|
orgUserDetailParam.setOid(param.getSchoolId());
|
|
|
orgUserDetailParam.setUserId(userWallet.getUserId());
|
|
orgUserDetailParam.setUserId(userWallet.getUserId());
|
|
|
- com.zhongshu.card.client.ret.ResultContent<OrganizationUserModel> orgUserDetail = organizationFeignService.getOrgUserDetail(orgUserDetailParam);
|
|
|
|
|
- if (orgUserDetail.isFailed()){
|
|
|
|
|
|
|
+ ResultContent<OrganizationUserModel> orgUserDetail = organizationFeignService.getOrgUserDetail(orgUserDetailParam);
|
|
|
|
|
+ if (orgUserDetail.isFailed()) {
|
|
|
return ResultContent.buildFail("获取用户信息失败");
|
|
return ResultContent.buildFail("获取用户信息失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -125,11 +126,11 @@ public class TransferService {
|
|
|
transferDetailInput.setOutDetailNo(rechargeRecord.getOutTradeNo());
|
|
transferDetailInput.setOutDetailNo(rechargeRecord.getOutTradeNo());
|
|
|
transferDetailInput.setTransferAmount(rechargeRecord.getTotal().longValue());
|
|
transferDetailInput.setTransferAmount(rechargeRecord.getTotal().longValue());
|
|
|
transferDetailInput.setTransferRemark("余额提现");
|
|
transferDetailInput.setTransferRemark("余额提现");
|
|
|
- if(rechargeRecord.getTotal().compareTo(BigDecimal.valueOf(2000L))>=0){
|
|
|
|
|
|
|
+ if (rechargeRecord.getTotal().compareTo(BigDecimal.valueOf(2000L)) >= 0) {
|
|
|
//todo 获取用户信息
|
|
//todo 获取用户信息
|
|
|
transferDetailInput.setUserName("用户名");
|
|
transferDetailInput.setUserName("用户名");
|
|
|
}
|
|
}
|
|
|
- if (rechargeRecord.getTotal().compareTo(BigDecimal.valueOf(0.3))<0){
|
|
|
|
|
|
|
+ if (rechargeRecord.getTotal().compareTo(BigDecimal.valueOf(0.3)) < 0) {
|
|
|
transferDetailInput.setUserName(null);
|
|
transferDetailInput.setUserName(null);
|
|
|
}
|
|
}
|
|
|
request.setTransferDetailList(List.of(transferDetailInput));
|
|
request.setTransferDetailList(List.of(transferDetailInput));
|
|
@@ -140,16 +141,16 @@ public class TransferService {
|
|
|
TransferModel transferModel = new TransferModel();
|
|
TransferModel transferModel = new TransferModel();
|
|
|
BeanUtils.copyProperties(initiateBatchTransferResponse, transferModel);
|
|
BeanUtils.copyProperties(initiateBatchTransferResponse, transferModel);
|
|
|
rechargeRecord.setTransferModel(transferModel);
|
|
rechargeRecord.setTransferModel(transferModel);
|
|
|
- if (initiateBatchTransferResponse.getBatchStatus().equals("ACCEPTED")){
|
|
|
|
|
|
|
+ if (initiateBatchTransferResponse.getBatchStatus().equals("ACCEPTED")) {
|
|
|
rechargeRecord.setRechargeState(RechargeState.Taking);
|
|
rechargeRecord.setRechargeState(RechargeState.Taking);
|
|
|
}
|
|
}
|
|
|
- if (initiateBatchTransferResponse.getBatchStatus().equals("PROCESSING")){
|
|
|
|
|
|
|
+ if (initiateBatchTransferResponse.getBatchStatus().equals("PROCESSING")) {
|
|
|
rechargeRecord.setRechargeState(RechargeState.Taking);
|
|
rechargeRecord.setRechargeState(RechargeState.Taking);
|
|
|
}
|
|
}
|
|
|
- if (initiateBatchTransferResponse.getBatchStatus().equals("FINISHED")){
|
|
|
|
|
|
|
+ if (initiateBatchTransferResponse.getBatchStatus().equals("FINISHED")) {
|
|
|
rechargeRecord.setRechargeState(RechargeState.TakeSuccess);
|
|
rechargeRecord.setRechargeState(RechargeState.TakeSuccess);
|
|
|
}
|
|
}
|
|
|
- if (initiateBatchTransferResponse.getBatchStatus().equals("CLOSED")){
|
|
|
|
|
|
|
+ if (initiateBatchTransferResponse.getBatchStatus().equals("CLOSED")) {
|
|
|
rechargeRecord.setRechargeState(RechargeState.CLOSED);
|
|
rechargeRecord.setRechargeState(RechargeState.CLOSED);
|
|
|
return ResultContent.buildFail("该订单已关闭");
|
|
return ResultContent.buildFail("该订单已关闭");
|
|
|
}
|
|
}
|
|
@@ -166,21 +167,23 @@ public class TransferService {
|
|
|
return ResultContent.buildSuccess(toModel(record));
|
|
return ResultContent.buildSuccess(toModel(record));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /** 发起提现 */
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 发起提现
|
|
|
|
|
+ */
|
|
|
@Transactional
|
|
@Transactional
|
|
|
- public Object create(RechargeParam param){
|
|
|
|
|
|
|
+ public Object create(RechargeParam param) {
|
|
|
String userId = authHelper.getCurrentUser().getUserId();
|
|
String userId = authHelper.getCurrentUser().getUserId();
|
|
|
Wallet userWallet = walletDao.findTop1ById(param.getWalletId());
|
|
Wallet userWallet = walletDao.findTop1ById(param.getWalletId());
|
|
|
//判断钱包是否初始化
|
|
//判断钱包是否初始化
|
|
|
- if (userWallet==null){
|
|
|
|
|
|
|
+ if (userWallet == null) {
|
|
|
return ResultContent.buildFail("用户钱包未开通");
|
|
return ResultContent.buildFail("用户钱包未开通");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//判断微信支付配置
|
|
//判断微信支付配置
|
|
|
ProjectWxPayParam wxPayParam = new ProjectWxPayParam();
|
|
ProjectWxPayParam wxPayParam = new ProjectWxPayParam();
|
|
|
wxPayParam.setAppId(param.getAppid());
|
|
wxPayParam.setAppId(param.getAppid());
|
|
|
- com.zhongshu.card.client.ret.ResultContent<WxPayConfigModel> paySetResult = paySettingFeignService.getProjectWxPayConfig(wxPayParam);
|
|
|
|
|
- if (paySetResult.isFailed()){
|
|
|
|
|
|
|
+ ResultContent<WxPayConfigModel> paySetResult = paySettingFeignService.getProjectWxPayConfig(wxPayParam);
|
|
|
|
|
+ if (paySetResult.isFailed()) {
|
|
|
return ResultContent.buildFail("获取微信支付配置失败");
|
|
return ResultContent.buildFail("获取微信支付配置失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -188,8 +191,8 @@ public class TransferService {
|
|
|
OrgUserDetailParam orgUserDetailParam = new OrgUserDetailParam();
|
|
OrgUserDetailParam orgUserDetailParam = new OrgUserDetailParam();
|
|
|
orgUserDetailParam.setOid(userWallet.getOid());
|
|
orgUserDetailParam.setOid(userWallet.getOid());
|
|
|
orgUserDetailParam.setUserId(userWallet.getUserId());
|
|
orgUserDetailParam.setUserId(userWallet.getUserId());
|
|
|
- com.zhongshu.card.client.ret.ResultContent<OrganizationUserModel> orgUserDetail = organizationFeignService.getOrgUserDetail(orgUserDetailParam);
|
|
|
|
|
- if (orgUserDetail.isFailed()){
|
|
|
|
|
|
|
+ ResultContent<OrganizationUserModel> orgUserDetail = organizationFeignService.getOrgUserDetail(orgUserDetailParam);
|
|
|
|
|
+ if (orgUserDetail.isFailed()) {
|
|
|
return ResultContent.buildFail("获取用户信息失败");
|
|
return ResultContent.buildFail("获取用户信息失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -220,22 +223,22 @@ public class TransferService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
|
- public Object passTransfer(ExamineParam param){
|
|
|
|
|
|
|
+ public Object passTransfer(ExamineParam param) {
|
|
|
RechargeRecord record = rechargeRecordDao.findByOutTradeNo(param.getOutTradeNo());
|
|
RechargeRecord record = rechargeRecordDao.findByOutTradeNo(param.getOutTradeNo());
|
|
|
- if (record==null){
|
|
|
|
|
- return ResultContent.buildFail("充值订单:"+param.getOutTradeNo()+"不存在");
|
|
|
|
|
|
|
+ if (record == null) {
|
|
|
|
|
+ return ResultContent.buildFail("充值订单:" + param.getOutTradeNo() + "不存在");
|
|
|
}
|
|
}
|
|
|
Wallet userWallet = walletDao.findTop1ById(record.getWallet().getId());
|
|
Wallet userWallet = walletDao.findTop1ById(record.getWallet().getId());
|
|
|
|
|
|
|
|
//判断微信支付配置
|
|
//判断微信支付配置
|
|
|
ProjectWxPayParam wxPayParam = new ProjectWxPayParam();
|
|
ProjectWxPayParam wxPayParam = new ProjectWxPayParam();
|
|
|
wxPayParam.setAppId(record.getAppid());
|
|
wxPayParam.setAppId(record.getAppid());
|
|
|
- com.zhongshu.card.client.ret.ResultContent<WxPayConfigModel> paySetResult = paySettingFeignService.getProjectWxPayConfig(wxPayParam);
|
|
|
|
|
- if (paySetResult.isFailed()){
|
|
|
|
|
|
|
+ ResultContent<WxPayConfigModel> paySetResult = paySettingFeignService.getProjectWxPayConfig(wxPayParam);
|
|
|
|
|
+ if (paySetResult.isFailed()) {
|
|
|
return ResultContent.buildFail("获取微信支付配置失败");
|
|
return ResultContent.buildFail("获取微信支付配置失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (StringUtil.isNullOrEmpty(param.getRemark())){
|
|
|
|
|
|
|
+ if (StringUtil.isNullOrEmpty(param.getRemark())) {
|
|
|
param.setRemark("余额提现");
|
|
param.setRemark("余额提现");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -252,11 +255,11 @@ public class TransferService {
|
|
|
transferDetailInput.setOutDetailNo(record.getOutTradeNo());
|
|
transferDetailInput.setOutDetailNo(record.getOutTradeNo());
|
|
|
transferDetailInput.setTransferAmount(record.getTotal().longValue());
|
|
transferDetailInput.setTransferAmount(record.getTotal().longValue());
|
|
|
transferDetailInput.setTransferRemark(param.getRemark());
|
|
transferDetailInput.setTransferRemark(param.getRemark());
|
|
|
- if(record.getTotal().compareTo(BigDecimal.valueOf(2000L))>=0){
|
|
|
|
|
|
|
+ if (record.getTotal().compareTo(BigDecimal.valueOf(2000L)) >= 0) {
|
|
|
//获取用户信息
|
|
//获取用户信息
|
|
|
transferDetailInput.setUserName("用户名");
|
|
transferDetailInput.setUserName("用户名");
|
|
|
}
|
|
}
|
|
|
- if (record.getTotal().compareTo(BigDecimal.valueOf(0.3))<0){
|
|
|
|
|
|
|
+ if (record.getTotal().compareTo(BigDecimal.valueOf(0.3)) < 0) {
|
|
|
transferDetailInput.setUserName(null);
|
|
transferDetailInput.setUserName(null);
|
|
|
}
|
|
}
|
|
|
request.setTransferDetailList(List.of(transferDetailInput));
|
|
request.setTransferDetailList(List.of(transferDetailInput));
|
|
@@ -267,16 +270,16 @@ public class TransferService {
|
|
|
TransferModel transferModel = new TransferModel();
|
|
TransferModel transferModel = new TransferModel();
|
|
|
BeanUtils.copyProperties(initiateBatchTransferResponse, transferModel);
|
|
BeanUtils.copyProperties(initiateBatchTransferResponse, transferModel);
|
|
|
record.setTransferModel(transferModel);
|
|
record.setTransferModel(transferModel);
|
|
|
- if (initiateBatchTransferResponse.getBatchStatus().equals("ACCEPTED")){
|
|
|
|
|
|
|
+ if (initiateBatchTransferResponse.getBatchStatus().equals("ACCEPTED")) {
|
|
|
// record.setRechargeState(RechargeState.RECHARGING);
|
|
// record.setRechargeState(RechargeState.RECHARGING);
|
|
|
}
|
|
}
|
|
|
- if (initiateBatchTransferResponse.getBatchStatus().equals("PROCESSING")){
|
|
|
|
|
|
|
+ if (initiateBatchTransferResponse.getBatchStatus().equals("PROCESSING")) {
|
|
|
record.setRechargeState(RechargeState.Taking);
|
|
record.setRechargeState(RechargeState.Taking);
|
|
|
}
|
|
}
|
|
|
- if (initiateBatchTransferResponse.getBatchStatus().equals("FINISHED")){
|
|
|
|
|
|
|
+ if (initiateBatchTransferResponse.getBatchStatus().equals("FINISHED")) {
|
|
|
record.setRechargeState(RechargeState.TakeSuccess);
|
|
record.setRechargeState(RechargeState.TakeSuccess);
|
|
|
}
|
|
}
|
|
|
- if (initiateBatchTransferResponse.getBatchStatus().equals("CLOSED")){
|
|
|
|
|
|
|
+ if (initiateBatchTransferResponse.getBatchStatus().equals("CLOSED")) {
|
|
|
record.setRechargeState(RechargeState.CLOSED);
|
|
record.setRechargeState(RechargeState.CLOSED);
|
|
|
}
|
|
}
|
|
|
rechargeRecordDao.save(record);
|
|
rechargeRecordDao.save(record);
|
|
@@ -284,10 +287,10 @@ public class TransferService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
|
- public Object refuseTransfer(ExamineParam param){
|
|
|
|
|
|
|
+ public Object refuseTransfer(ExamineParam param) {
|
|
|
RechargeRecord record = rechargeRecordDao.findByOutTradeNo(param.getOutTradeNo());
|
|
RechargeRecord record = rechargeRecordDao.findByOutTradeNo(param.getOutTradeNo());
|
|
|
- if (record==null){
|
|
|
|
|
- return ResultContent.buildFail("充值订单:"+param.getOutTradeNo()+"不存在");
|
|
|
|
|
|
|
+ if (record == null) {
|
|
|
|
|
+ return ResultContent.buildFail("充值订单:" + param.getOutTradeNo() + "不存在");
|
|
|
}
|
|
}
|
|
|
record.setRechargeState(RechargeState.TakeRefuse);
|
|
record.setRechargeState(RechargeState.TakeRefuse);
|
|
|
record.setRemark(param.getRemark());
|
|
record.setRemark(param.getRemark());
|
|
@@ -304,39 +307,38 @@ public class TransferService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
|
- public Object getTransferState(String outTradeNo){
|
|
|
|
|
|
|
+ public Object getTransferState(String outTradeNo) {
|
|
|
RechargeRecord record = rechargeRecordDao.findByOutTradeNo(outTradeNo);
|
|
RechargeRecord record = rechargeRecordDao.findByOutTradeNo(outTradeNo);
|
|
|
|
|
|
|
|
ProjectWxPayParam param = new ProjectWxPayParam();
|
|
ProjectWxPayParam param = new ProjectWxPayParam();
|
|
|
param.setAppId(record.getAppid());
|
|
param.setAppId(record.getAppid());
|
|
|
- com.zhongshu.card.client.ret.ResultContent<WxPayConfigModel> configResult = paySettingFeignService.getProjectWxPayConfig(param);
|
|
|
|
|
- if (configResult.isFailed()){
|
|
|
|
|
|
|
+ ResultContent<WxPayConfigModel> configResult = paySettingFeignService.getProjectWxPayConfig(param);
|
|
|
|
|
+ if (configResult.isFailed()) {
|
|
|
return ResultContent.buildFail("获取微信支付配置失败");
|
|
return ResultContent.buildFail("获取微信支付配置失败");
|
|
|
}
|
|
}
|
|
|
GetTransferDetailByOutNoRequest request = new GetTransferDetailByOutNoRequest();
|
|
GetTransferDetailByOutNoRequest request = new GetTransferDetailByOutNoRequest();
|
|
|
request.setOutBatchNo(record.getId());
|
|
request.setOutBatchNo(record.getId());
|
|
|
request.setOutDetailNo(record.getOutTradeNo());
|
|
request.setOutDetailNo(record.getOutTradeNo());
|
|
|
TransferDetailEntity transferDetailByOutNo = wxTransferBatchService.getTransferDetailByOutNo(request, configResult.getContent());
|
|
TransferDetailEntity transferDetailByOutNo = wxTransferBatchService.getTransferDetailByOutNo(request, configResult.getContent());
|
|
|
- if (transferDetailByOutNo.getDetailStatus().equals("INIT")){
|
|
|
|
|
|
|
+ if (transferDetailByOutNo.getDetailStatus().equals("INIT")) {
|
|
|
record.setRechargeState(RechargeState.Taking);
|
|
record.setRechargeState(RechargeState.Taking);
|
|
|
record.setRechargeStateDesc("系统转账校验中");
|
|
record.setRechargeStateDesc("系统转账校验中");
|
|
|
}
|
|
}
|
|
|
- if (transferDetailByOutNo.getDetailStatus().equals("WAIT_PAY")){
|
|
|
|
|
|
|
+ if (transferDetailByOutNo.getDetailStatus().equals("WAIT_PAY")) {
|
|
|
record.setRechargeState(RechargeState.Taking);
|
|
record.setRechargeState(RechargeState.Taking);
|
|
|
record.setRechargeStateDesc("待商户确认");
|
|
record.setRechargeStateDesc("待商户确认");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (transferDetailByOutNo.getDetailStatus().equals("PROCESSING")){
|
|
|
|
|
|
|
+ if (transferDetailByOutNo.getDetailStatus().equals("PROCESSING")) {
|
|
|
record.setRechargeState(RechargeState.Taking);
|
|
record.setRechargeState(RechargeState.Taking);
|
|
|
record.setRechargeStateDesc("正在处理中");
|
|
record.setRechargeStateDesc("正在处理中");
|
|
|
}
|
|
}
|
|
|
- if (transferDetailByOutNo.getDetailStatus().equals("SUCCESS")){
|
|
|
|
|
|
|
+ if (transferDetailByOutNo.getDetailStatus().equals("SUCCESS")) {
|
|
|
record.setRechargeState(RechargeState.TakeSuccess);
|
|
record.setRechargeState(RechargeState.TakeSuccess);
|
|
|
record.setRechargeStateDesc("提现成功");
|
|
record.setRechargeStateDesc("提现成功");
|
|
|
}
|
|
}
|
|
|
- if (transferDetailByOutNo.getDetailStatus().equals("FAIL")){
|
|
|
|
|
|
|
+ if (transferDetailByOutNo.getDetailStatus().equals("FAIL")) {
|
|
|
record.setRechargeState(RechargeState.TakeFail);
|
|
record.setRechargeState(RechargeState.TakeFail);
|
|
|
record.setRechargeStateDesc(transferDetailByOutNo.getFailReason().name());
|
|
record.setRechargeStateDesc(transferDetailByOutNo.getFailReason().name());
|
|
|
AmountUpdateParam amountUpdateParam = new AmountUpdateParam();
|
|
AmountUpdateParam amountUpdateParam = new AmountUpdateParam();
|
|
@@ -353,7 +355,7 @@ public class TransferService {
|
|
|
|
|
|
|
|
private RechargeRecordModel toModel(RechargeRecord record) {
|
|
private RechargeRecordModel toModel(RechargeRecord record) {
|
|
|
RechargeRecordModel model = new RechargeRecordModel();
|
|
RechargeRecordModel model = new RechargeRecordModel();
|
|
|
- if (record!=null){
|
|
|
|
|
|
|
+ if (record != null) {
|
|
|
org.springframework.beans.BeanUtils.copyProperties(record, model, "total");
|
|
org.springframework.beans.BeanUtils.copyProperties(record, model, "total");
|
|
|
model.setTotal(record.getTotal().intValue());
|
|
model.setTotal(record.getTotal().intValue());
|
|
|
model.setUserInfo(record.getUserInfo());
|
|
model.setUserInfo(record.getUserInfo());
|