xiaoyong931011
2021-05-18 13cf5a68e9d64b722c1c38bb3d675b462ec19d5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package com.xcong.excoin.modules.documentary.controller;
 
import org.apache.shiro.authz.annotation.RequiresPermissions;
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 com.xcong.excoin.common.controller.BaseController;
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 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
     */
    @GetMapping("traderUpdate")
    @RequiresPermissions("traderUpdate:view")
    public String traderUpdate() {
        return FebsUtil.view("modules/documentary/traderUpdate");
    }
    
    /**
     * 交易员申请--审核
     * @return
     */
    @GetMapping("traderDetail/{id}")
    @RequiresPermissions("traderDetail:update")
    public String traderDetail(@PathVariable long id, Model model) {
        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");
    }
 
}