| | |
| | | import cc.mrbird.febs.dapp.entity.DappSystemProfit; |
| | | import cc.mrbird.febs.dapp.entity.DataDictionaryCustom; |
| | | import cc.mrbird.febs.dapp.enumerate.DataDictionaryEnum; |
| | | import cc.mrbird.febs.dapp.mapper.DappMemberDao; |
| | | import cc.mrbird.febs.dapp.mapper.DappSystemProfitDao; |
| | | import cc.mrbird.febs.dapp.mapper.DataDictionaryCustomMapper; |
| | | import cc.mrbird.febs.dapp.service.DappMemberService; |
| | | import cc.mrbird.febs.dapp.vo.AdminAgentLevelSetInfoVo; |
| | | import cc.mrbird.febs.dapp.vo.AdminSystemFeeVo; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | private final RedisUtils redisUtils; |
| | | private final DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | private final DappSystemProfitDao dappSystemProfitDao; |
| | | private final DappMemberDao dappMemberDao; |
| | | |
| | | @GetMapping(value = "admin") |
| | | @RequiresPermissions("admin:view") |
| | |
| | | String value = symbolPrice.getValue() == null ? "0" : symbolPrice.getValue(); |
| | | adminSystemFeeVo.setSymbolPrice(value); |
| | | } |
| | | |
| | | DataDictionaryCustom directProfitDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | DataDictionaryEnum.DIRECT_PROFIT.getType(), DataDictionaryEnum.DIRECT_PROFIT.getCode()); |
| | | if (ObjectUtil.isNotEmpty(directProfitDic)) { |
| | | String value = directProfitDic.getValue() == null ? "0" : directProfitDic.getValue(); |
| | | adminSystemFeeVo.setDirectProfit(value); |
| | | } |
| | | model.addAttribute("systemFee", adminSystemFeeVo); |
| | | return FebsUtil.view("dapp/system-fee-set"); |
| | | } |
| | |
| | | teamInfoMemberId = id; |
| | | return FebsUtil.view("dapp/member-teamInfo"); |
| | | } |
| | | |
| | | |
| | | |
| | | public static long memberNodeInfoMemberId; |
| | | /** |
| | | * 用户列表-购买记录 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("/memberNodeInfo/{id}") |
| | | @RequiresPermissions("memberNodeInfo:view") |
| | | public String memberNodeInfo(@PathVariable long id, Model model) { |
| | | memberNodeInfoMemberId = id; |
| | | return FebsUtil.view("dapp/member-node-Info"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 代理级别-设置代理 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("agentLevel/{id}") |
| | | @RequiresPermissions("agentLevel:view") |
| | | public String agentLevelSet(@PathVariable long id, Model model) { |
| | | DappMemberEntity dappMemberEntity = dappMemberDao.selectById(id); |
| | | AdminAgentLevelSetInfoVo data = new AdminAgentLevelSetInfoVo(); |
| | | data.setId(id); |
| | | data.setLevelCode(dappMemberEntity.getAccountType()); |
| | | model.addAttribute("agentLevelSet", data); |
| | | return FebsUtil.view("dapp/member-agent-level"); |
| | | } |
| | | } |