From f1dc1baef82c993a59ce1adff02e36918ce236a9 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 14 Mar 2022 16:52:35 +0800 Subject: [PATCH] 20211201 fish --- src/main/java/com/xcong/excoin/modules/documentary/controller/ViewController.java | 82 +++++++++++++++++++++++++++++++++++++--- 1 files changed, 75 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/documentary/controller/ViewController.java b/src/main/java/com/xcong/excoin/modules/documentary/controller/ViewController.java index df03ba8..f4983b2 100644 --- a/src/main/java/com/xcong/excoin/modules/documentary/controller/ViewController.java +++ b/src/main/java/com/xcong/excoin/modules/documentary/controller/ViewController.java @@ -11,18 +11,64 @@ import com.xcong.excoin.common.entity.FebsConstant; import com.xcong.excoin.common.utils.FebsUtil; import com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity; +import com.xcong.excoin.modules.documentary.entity.FollowTraderLabelEntity; +import com.xcong.excoin.modules.documentary.mapper.FollowTraderLabelMapper; import com.xcong.excoin.modules.documentary.service.DocumentaryService; import com.xcong.excoin.modules.member.entity.MemberEntity; +import com.xcong.excoin.modules.systemSetting.entity.PlatformTradeSettingEntity; import lombok.RequiredArgsConstructor; @Controller("documentaryView") @RequestMapping(FebsConstant.VIEW_PREFIX + "modules/documentary") @RequiredArgsConstructor public class ViewController extends BaseController{ - - private final DocumentaryService documentaryService; - - /** + + private final DocumentaryService documentaryService; + + private final FollowTraderLabelMapper followTraderLabelMapper; + + public static long idFromMember; + + /** + *交易员利润分成---详情 + */ + @GetMapping("seeFollowerInfo/{id}") + public String seeFollowerInfo(@PathVariable long id, Model model) { + idFromMember = id; + return FebsUtil.view("modules/documentary/seeFollowerInfo"); + } + + /** + * 标签设置 + * @return + */ + @GetMapping("followLabelSet") + @RequiresPermissions("followLabelSet:view") + public String followLabelSet() { + return FebsUtil.view("modules/documentary/followLabelSet"); + } + + /** + * 标签设置---修改 + */ + @GetMapping("followLabelSetUpdate/{id}") + @RequiresPermissions("followLabelSetUpdate:update") + public String followLabelSetUpdate(@PathVariable long id, Model model) { + FollowTraderLabelEntity data = followTraderLabelMapper.selectById(id); + model.addAttribute("member", data); + return FebsUtil.view("modules/documentary/followLabelSetDetail"); + } + + /** + * 标签设置---新增 + */ + @GetMapping("followLabelSetAdd") + @RequiresPermissions("followLabelSetAdd:add") + public String noticeManageAdd() { + return FebsUtil.view("modules/documentary/followLabelSetAdd"); + } + + /** * 交易员申请 * @return */ @@ -31,7 +77,7 @@ public String traderUpdate() { return FebsUtil.view("modules/documentary/traderUpdate"); } - + /** * 交易员申请--审核 * @return @@ -39,9 +85,31 @@ @GetMapping("traderDetail/{id}") @RequiresPermissions("traderDetail:update") public String traderDetail(@PathVariable long id, Model model) { - FollowTraderInfoEntity data = documentaryService.selectTraderDetailByid(id); - model.addAttribute("member", data); + FollowTraderInfoEntity data = documentaryService.selectTraderDetailByid(id); + model.addAttribute("member", data); return FebsUtil.view("modules/documentary/traderDetail"); } + /** + * 交易员收益率修改 + * @return + */ + @GetMapping("modifyProfitRatio/{id}") + @RequiresPermissions("modifyProfitRatio:update") + public String modifyProfitRatio(@PathVariable long id, Model model) { + FollowTraderInfoEntity data = documentaryService.selectTraderDetailByid(id); + model.addAttribute("member", data); + return FebsUtil.view("modules/documentary/modifyProfitRatio"); + } + + /** + * 交易员利润分成 + * @return + */ + @GetMapping("traderProfit") + @RequiresPermissions("traderProfit:view") + public String traderProfit() { + return FebsUtil.view("modules/documentary/traderProfit"); + } + } -- Gitblit v1.9.1