From a3f86d22b6b9d5ab4a335488ddaf8edf3aa5f787 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 03 Jun 2021 16:45:08 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java |   62 +++++++++++++++++++++++++++----
 1 files changed, 54 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java
index de52620..11c2544 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java
@@ -5,21 +5,19 @@
 import com.xcong.excoin.common.entity.FebsResponse;
 import com.xcong.excoin.common.entity.QueryRequest;
 import com.xcong.excoin.modules.member.entity.MemberAccountMoneyChangeEntity;
-import com.xcong.excoin.modules.otc.entity.OtcEntrustOrderEntity;
-import com.xcong.excoin.modules.otc.entity.OtcMarketBussinessEntity;
-import com.xcong.excoin.modules.otc.entity.OtcOrderAppealEntity;
-import com.xcong.excoin.modules.otc.entity.OtcOrderEntity;
+import com.xcong.excoin.modules.member.entity.MemberEntity;
+import com.xcong.excoin.modules.otc.entity.*;
 import com.xcong.excoin.modules.otc.service.OtcService;
 import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
+import javax.validation.Valid;
 import javax.validation.constraints.NotNull;
 import java.util.Map;
 
+@Slf4j
 @Validated
 @RestController
 @RequiredArgsConstructor
@@ -104,4 +102,52 @@
         return new FebsResponse().success().data(data);
     }
 
+    /**
+     *订单列表---付款人
+     * @return
+     */
+    @PostMapping("updateOrderInfo")
+    @ControllerEndpoint(operation = "订单列表---付款人", exceptionMessage = "失败")
+    public FebsResponse updateOrderInfo(@Valid OtcOrderEntity otcOrderEntity) {
+        return otcService.updateOrderInfo(otcOrderEntity);
+    }
+
+    /**
+     *回款
+     * @return
+     */
+    @PostMapping("otcHuiKuan")
+    @ControllerEndpoint(operation = "订单列表---付款人", exceptionMessage = "失败")
+    public FebsResponse otcHuiKuan(@Valid OtcMarketBussinessEntity otcMarketBussinessEntity) {
+        return otcService.otcHuiKuan(otcMarketBussinessEntity);
+    }
+
+    /**
+     * 设置列表
+     */
+    @GetMapping("otcSettingList")
+    public FebsResponse otcSettingList(OtcSettingEntity otcSettingEntity, QueryRequest request) {
+        Map<String, Object> data = getDataTable(otcService.otcSettingList(otcSettingEntity, request));
+        return new FebsResponse().success().data(data);
+    }
+    /**
+     *设置列表--更新
+     * @return
+     */
+    @PostMapping("updateOtcSetting")
+    @ControllerEndpoint(operation = "设置列表--更新", exceptionMessage = "失败")
+    public FebsResponse updateOtcSetting(@Valid OtcSettingEntity otcSettingEntity) {
+        return otcService.updateOtcSetting(otcSettingEntity);
+    }
+
+    /**
+     * 放币
+     */
+    @PostMapping("/reduceCoin/{id}")
+    @ControllerEndpoint(operation = "放币", exceptionMessage = "失败")
+    public FebsResponse reduceCoin(@PathVariable("id") Long id) {
+        otcService.reduceCoin(id);
+        return new FebsResponse().success();
+    }
+
 }

--
Gitblit v1.9.1