| | |
| | |
|
| | | 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
|
| | |
| | | @RequestMapping(FebsConstant.VIEW_PREFIX + "modules/trademanage")
|
| | | public class ViewController {
|
| | |
|
| | | /**
|
| | | @Resource
|
| | | private RedisUtils redisUtils;
|
| | |
|
| | | /**
|
| | | * 期貨记录
|
| | | */
|
| | | @GetMapping("gbzOrderList")
|
| | | @RequiresPermissions("gbzOrderList:view")
|
| | | public String gbzOrderList() {
|
| | | return FebsUtil.view("modules/trademanage/gbzOrderList");
|
| | | }
|
| | |
|
| | | /**
|
| | | * 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");
|
| | | String bzzStart = redisUtils.getString("bzz_start");
|
| | | BzzNewPriceVo bzzNewPriceVo = new BzzNewPriceVo();
|
| | | bzzNewPriceVo.setNewprice(newPrice);
|
| | | bzzNewPriceVo.setBzzStart(Integer.parseInt(bzzStart));
|
| | | bzzNewPriceVo.setId(1L);
|
| | | model.addAttribute("member", bzzNewPriceVo);
|
| | | return FebsUtil.view("modules/trademanage/bzzNewPriceUpdate");
|
| | | }
|
| | |
|
| | |
|
| | | /**
|
| | | * 当前持仓
|
| | | */
|
| | | @GetMapping("contractHoldOrder")
|
| | |
| | | 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");
|
| | | }
|
| | |
|
| | | /**
|
| | | * 返佣明细
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 历史委托明细--- Test
|
| | | * 历史委托明细---Test
|
| | | * @return
|
| | | */
|
| | | @GetMapping("historyOrderAloneTest")
|
| | |
| | | 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");
|
| | | }
|
| | |
|
| | | }
|