From 24b53bf61f66428727e1dcbc4abf4320d8f48d8c Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 21 May 2021 17:21:20 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java b/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
index d778bf1..6f4966e 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
@@ -295,6 +295,7 @@
         buyDetail.setUnitPrice(buyOrder.getUnitPrice());
         buyDetail.setCreateTime(buyOrder.getCreateTime());
         buyDetail.setIsMb(member.getIsTrader());
+        buyDetail.setPayName(buyOrder.getPayName());
 
         OtcOrder saleOrder = this.baseMapper.selectOrderByOrderNoAndType(otcOrder.getOrderNo(), OtcEntrustOrder.ORDER_TYPE_S);
         MemberEntity saleMember = memberDao.selectById(saleOrder.getMemberId());
@@ -303,7 +304,7 @@
 
         buyDetail.setBankName(buyOrder.getBankName());
         buyDetail.setBankNo(buyOrder.getBankNo());
-        buyDetail.setPayName(buyOrder.getCardName());
+        buyDetail.setCardName(buyOrder.getCardName());
         buyDetail.setPayTime(buyOrder.getPayTime());
 
         if (!buyOrder.getMemberId().equals(buyOrder.getEntrustMemberId())) {
@@ -334,6 +335,8 @@
         if (saleOrder == null) {
             return Result.fail("参数错误");
         }
+        MemberEntity buyMember = memberDao.selectById(saleOrder.getOppositeMemberId());
+
 
         SaleOrderDetailVo saleDetail = new SaleOrderDetailVo();
         saleDetail.setOrderNo(saleOrder.getOrderNo());
@@ -344,6 +347,7 @@
         saleDetail.setCreateTime(saleOrder.getCreateTime());
         saleDetail.setIsMb(member.getIsTrader());
         saleDetail.setPayName(saleOrder.getPayName());
+        saleDetail.setSaleName(buyMember.getName());
 
         if (!saleOrder.getMemberId().equals(saleOrder.getEntrustMemberId())) {
             OtcMarketBussiness otcMb = otcMarketBussinessDao.selectMarketBussinessByMemberId(saleOrder.getEntrustMemberId());

--
Gitblit v1.9.1