From 5e75c6faae3a68ec672db2ca509a2de9f863d0b6 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 15 Jun 2021 15:11:42 +0800
Subject: [PATCH] 20210615 最新价
---
src/main/java/com/xcong/excoin/modules/trademanage/controller/ViewController.java | 94 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 93 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/trademanage/controller/ViewController.java b/src/main/java/com/xcong/excoin/modules/trademanage/controller/ViewController.java
index e08dee9..a67fd23 100644
--- a/src/main/java/com/xcong/excoin/modules/trademanage/controller/ViewController.java
+++ b/src/main/java/com/xcong/excoin/modules/trademanage/controller/ViewController.java
@@ -2,10 +2,18 @@
import com.xcong.excoin.common.entity.FebsConstant;
import com.xcong.excoin.common.utils.FebsUtil;
+import com.xcong.excoin.common.utils.RedisUtils;
+import com.xcong.excoin.modules.systemSetting.entity.PlatformBannerEntity;
+import com.xcong.excoin.modules.trademanage.vo.BzzNewPriceVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
+
+import javax.annotation.Resource;
/**
* @author wzy
@@ -15,7 +23,35 @@
@RequestMapping(FebsConstant.VIEW_PREFIX + "modules/trademanage")
public class ViewController {
- /**
+ @Resource
+ private RedisUtils redisUtils;
+ /**
+ * BZZ最新价
+ */
+ @GetMapping("bzzNewPrice")
+ @RequiresPermissions("bzzNewPrice:view")
+ public String bzzNewPrice() {
+ return FebsUtil.view("modules/trademanage/bzzNewPrice");
+ }
+
+
+ /**
+ * BZZ最新价---修改
+ */
+ @GetMapping("bzzNewPriceUpdate")
+ @RequiresPermissions("platformBannerUpdate:update")
+ public String platformBannerUpdate(Model model) {
+
+ String newPrice = redisUtils.getString("bzz_order_new_price");
+ BzzNewPriceVo bzzNewPriceVo = new BzzNewPriceVo();
+ bzzNewPriceVo.setNewprice(newPrice);
+ bzzNewPriceVo.setId(1L);
+ model.addAttribute("member", bzzNewPriceVo);
+ return FebsUtil.view("modules/trademanage/bzzNewPriceUpdate");
+ }
+
+
+ /**
* 当前持仓
*/
@GetMapping("contractHoldOrder")
@@ -34,6 +70,15 @@
}
/**
+ * 当前持仓---Test
+ */
+ @GetMapping("contractHoldOrderAloneTest")
+ @RequiresPermissions("contractHoldOrderAloneTest:view")
+ public String contractHoldOrderAloneTest() {
+ return FebsUtil.view("modules/trademanage/contractHoldOrderAloneTest");
+ }
+
+ /**
* 账户信息
* @return
*/
@@ -41,6 +86,24 @@
@RequiresPermissions("accountInfo:view")
public String accountInfo() {
return FebsUtil.view("modules/trademanage/accountInfo");
+ }
+ /**
+ * 账户信息---alone
+ * @return
+ */
+ @GetMapping("accountInfoAlone")
+ @RequiresPermissions("accountInfoAlone:view")
+ public String accountInfoAlone() {
+ return FebsUtil.view("modules/trademanage/accountInfoAlone");
+ }
+ /**
+ * 账户信息---Test
+ * @return
+ */
+ @GetMapping("accountInfoAloneTest")
+ @RequiresPermissions("accountInfoAloneTest:view")
+ public String accountInfoAloneTest() {
+ return FebsUtil.view("modules/trademanage/accountInfoAloneTest");
}
/**
@@ -84,6 +147,16 @@
}
/**
+ * 历史委托明细---Test
+ * @return
+ */
+ @GetMapping("historyOrderAloneTest")
+ @RequiresPermissions("historyOrderAloneTest:view")
+ public String historyOrderAloneTest() {
+ return FebsUtil.view("modules/trademanage/historyOrderAloneTest");
+ }
+
+ /**
* 全部历史委托明细
* @return
*/
@@ -93,4 +166,23 @@
return FebsUtil.view("modules/trademanage/historyOrderAll");
}
+ /**
+ * 返佣总明细
+ * @return
+ */
+ @GetMapping("agentReturnInfosAlone")
+ @RequiresPermissions("agentReturnInfosAlone:view")
+ public String agentReturnInfosAlone() {
+ return FebsUtil.view("modules/trademanage/agentReturnInfosAlone");
+ }
+ /**
+ * 返佣总明细--Test
+ * @return
+ */
+ @GetMapping("agentReturnInfosAloneTest")
+ @RequiresPermissions("agentReturnInfosAloneTest:view")
+ public String agentReturnInfosAloneTest() {
+ return FebsUtil.view("modules/trademanage/agentReturnInfosAloneTest");
+ }
+
}
--
Gitblit v1.9.1