From 19a8cf376dc92c059a20845eaa82d365db56c23e Mon Sep 17 00:00:00 2001
From: gao <gaoleox@163>
Date: Wed, 27 May 2020 15:33:54 +0800
Subject: [PATCH] 快捷买入接口
---
src/main/java/com/xcong/excoin/modules/home/service/impl/MemberQuickBuySaleServiceImpl.java | 8 +++++++-
src/main/java/com/xcong/excoin/modules/home/vo/MemberQuickBuySaleVo.java | 25 ++-----------------------
2 files changed, 9 insertions(+), 24 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/home/service/impl/MemberQuickBuySaleServiceImpl.java b/src/main/java/com/xcong/excoin/modules/home/service/impl/MemberQuickBuySaleServiceImpl.java
index 5842411..94575aa 100644
--- a/src/main/java/com/xcong/excoin/modules/home/service/impl/MemberQuickBuySaleServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/modules/home/service/impl/MemberQuickBuySaleServiceImpl.java
@@ -77,7 +77,13 @@
// memberQuickBuySaleEntity.setPaymentName(paymemtMethod.getName());
// memberQuickBuySaleEntity.setPaymentAccount(paymemtMethod.getAccount());
memberQuickBuySaleDao.insert(memberQuickBuySaleEntity);
- MemberQuickBuySaleVo memberQuickBuySaleVo = MemberQuickBuySaleEntityMapper.INSTANCE.entityToVo(memberQuickBuySaleEntity);
+ MemberQuickBuySaleVo memberQuickBuySaleVo = new MemberQuickBuySaleVo();
+ memberQuickBuySaleVo.setId(memberQuickBuySaleEntity.getId());
+ memberQuickBuySaleVo.setPlatforPaymentMethodList(paymentMethodList);
+ long startTime = memberQuickBuySaleEntity.getCreateTime().getTime();
+ long nowTime = new Date().getTime();
+ long third = 30*60*1000;
+ memberQuickBuySaleVo.setTimeLeft((third-nowTime+startTime)/1000);
// 返回前台付款方式
// memberQuickBuySaleVo.setPlatforPaymentMethodList(paymentMethodList);
// memberQuickBuySaleEntity.setReceiveMethod(payMethodList.get(index));
diff --git a/src/main/java/com/xcong/excoin/modules/home/vo/MemberQuickBuySaleVo.java b/src/main/java/com/xcong/excoin/modules/home/vo/MemberQuickBuySaleVo.java
index 0e4bd89..6d41454 100644
--- a/src/main/java/com/xcong/excoin/modules/home/vo/MemberQuickBuySaleVo.java
+++ b/src/main/java/com/xcong/excoin/modules/home/vo/MemberQuickBuySaleVo.java
@@ -1,6 +1,5 @@
package com.xcong.excoin.modules.home.vo;
-import java.math.BigDecimal;
import java.util.List;
import com.xcong.excoin.modules.platform.entity.PlatformPaymentMethodEntity;
@@ -12,28 +11,8 @@
@ApiModel(value = "会员快捷买入卖出", description = "会员快捷买入卖出类")
public class MemberQuickBuySaleVo {
- @ApiModelProperty(value = "用户Id")
- private Long memberId;
- @ApiModelProperty(value = "金额(人民币)")
- private BigDecimal amountCny;
- @ApiModelProperty(value = "金额(USDT)")
- private BigDecimal amountUsdt;
- @ApiModelProperty(value = "付款方式 1-支付宝2-微信3-银行卡")
- private int paymentType;
- @ApiModelProperty(value = "收款账号")
- private String paymentAccount;
- @ApiModelProperty(value = "收款人姓名")
- private String paymentName;
- @ApiModelProperty(value = "支付码")
- private String paymentCode;
- @ApiModelProperty(value = "单价")
- private BigDecimal unitPrice;
- @ApiModelProperty(value = "订单状态 1-新建2-已付款3-已审核4-撤单5-系统取消")
- private int orderStatus;
- @ApiModelProperty(value = "订单编号")
- private String orderNo;
- @ApiModelProperty(value = "订单类型 B买入 S卖出")
- private String orderType;
+ @ApiModelProperty(value = "订单Id")
+ private Long id;
@ApiModelProperty(value = "剩余时间")
private Long timeLeft;
@ApiModelProperty(value = "平台收款方式")
--
Gitblit v1.9.1