From 3ea894165b42672d0a9d93341e84fbc9f24f5294 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 03 Mar 2021 11:39:36 +0800
Subject: [PATCH] 20210321  利润率后台修改,推荐上首页后台设置

---
 src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java |   51 ++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 46 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java b/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java
index 6941e80..764cf0e 100644
--- a/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java
+++ b/src/main/java/com/xcong/excoin/modules/documentary/controller/DocumentaryController.java
@@ -5,18 +5,20 @@
 import javax.validation.Valid;
 import javax.validation.constraints.NotNull;
 
+import com.xcong.excoin.modules.documentary.entity.FollowTraderProfitInfoEntity;
+import com.xcong.excoin.modules.trademanage.entity.ContractOrderEntity;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiResponse;
+import io.swagger.annotations.ApiResponses;
 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.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import com.xcong.excoin.common.annotation.ControllerEndpoint;
 import com.xcong.excoin.common.controller.BaseController;
 import com.xcong.excoin.common.entity.FebsResponse;
 import com.xcong.excoin.common.entity.QueryRequest;
 import com.xcong.excoin.modules.documentary.dto.FollowTraderInfoDto;
+import com.xcong.excoin.modules.documentary.dto.ModifyProfitRatioDto;
 import com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity;
 import com.xcong.excoin.modules.documentary.entity.FollowTraderLabelEntity;
 import com.xcong.excoin.modules.documentary.service.DocumentaryService;
@@ -93,6 +95,16 @@
     public FebsResponse traderConfirm(@Valid FollowTraderInfoDto followTraderInfoDto) {
         return documentaryService.traderConfirm(followTraderInfoDto);
     }
+
+    /**
+     * 交易员收益率修改---确认
+     * @return
+     */
+    @PostMapping("modifyProfitRatio")
+    @ControllerEndpoint(operation = "交易员收益率修改---确认", exceptionMessage = "修改失败")
+    public FebsResponse modifyProfitRatio(@Valid ModifyProfitRatioDto modifyProfitRatioDto) {
+        return documentaryService.modifyProfitRatio(modifyProfitRatioDto);
+    }
     
     /**
      * 踢出交易员
@@ -104,6 +116,26 @@
     public FebsResponse traderGetOut(@NotNull(message = "{required}") @PathVariable Long id) {
         return documentaryService.traderGetOut(id);
     }
+    /**
+     * 设置成首页交易员
+     * @param id
+     * @return
+     */
+    @GetMapping("traderGetOn/{id}")
+    @ControllerEndpoint(operation = "设置成首页交易员", exceptionMessage = "设置失败")
+    public FebsResponse traderGetOn(@NotNull(message = "{required}") @PathVariable Long id) {
+        return documentaryService.traderGetOn(id);
+    }
+    /**
+     * 设置成首页交易员---取消
+     * @param id
+     * @return
+     */
+    @GetMapping("traderGetOutFrist/{id}")
+    @ControllerEndpoint(operation = "设置成首页交易员", exceptionMessage = "设置失败")
+    public FebsResponse traderGetOutFrist(@NotNull(message = "{required}") @PathVariable Long id) {
+        return documentaryService.traderGetOutFrist(id);
+    }
     
     /**
      * 设置成【满员】状态
@@ -116,4 +148,13 @@
     	return documentaryService.traderGetFull(id);
     }
 
+    /**
+     * 交易员数据---列表
+     */
+    @GetMapping("traderDataInfo")
+    public FebsResponse traderDataInfo(FollowTraderProfitInfoEntity followTraderProfitInfoEntity, QueryRequest request) {
+        Map<String, Object> data = getDataTable(documentaryService.findTraderDataInfoInfoInPage(followTraderProfitInfoEntity, request));
+        return new FebsResponse().success().data(data);
+    }
+
 }

--
Gitblit v1.9.1