From 98c29ae57c5f9cc2ade7856746b1b6acb9e0e8c6 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 29 Jul 2022 11:46:02 +0800 Subject: [PATCH] 20220727 保存代码 --- src/main/java/cc/mrbird/febs/mall/controller/ViewMallMemberController.java | 172 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 169 insertions(+), 3 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/ViewMallMemberController.java b/src/main/java/cc/mrbird/febs/mall/controller/ViewMallMemberController.java index a3a48a7..ef7b482 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/ViewMallMemberController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/ViewMallMemberController.java @@ -3,10 +3,12 @@ import cc.mrbird.febs.common.controller.BaseController; import cc.mrbird.febs.common.entity.FebsConstant; import cc.mrbird.febs.common.utils.FebsUtil; +import cc.mrbird.febs.mall.entity.AppVersion; import cc.mrbird.febs.mall.entity.MallMember; +import cc.mrbird.febs.mall.entity.MallNewsInfo; +import cc.mrbird.febs.mall.entity.MallShopApply; import cc.mrbird.febs.mall.service.IAdminMallMemberService; -import cc.mrbird.febs.mall.vo.AdminMallMemberPaymentVo; -import cc.mrbird.febs.mall.vo.MallMemberVo; +import cc.mrbird.febs.mall.vo.*; import lombok.RequiredArgsConstructor; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.stereotype.Controller; @@ -23,6 +25,18 @@ private final IAdminMallMemberService mallMemberService; public static long idFromMoneyFlow; + + public static long idFromAgentAllMember; + + /** + * 平台账单 + * @return + */ + @GetMapping("mallDataList") + @RequiresPermissions("mallDataList:view") + public String mallDataList() { + return FebsUtil.view("modules/mallMember/mallDataList"); + } /** * 会员列表 @@ -46,6 +60,21 @@ MallMemberVo data = mallMemberService.getMallMemberInfoById(id); model.addAttribute("member", data); return FebsUtil.view("modules/mallMember/detail"); + } + + /** + * 会员列表-系统拨付 + * @param id + * @param model + * @return + */ + @GetMapping("mallSystemPay/{type}/{id}") + @RequiresPermissions("mallSystemPay:update") + public String systemPay(@PathVariable long id, @PathVariable Integer type, Model model) { + MallMemberVo data = mallMemberService.getMallMemberInfoById(id); + model.addAttribute("systemPay", data); + model.addAttribute("type", type); + return FebsUtil.view("modules/mallMember/mallSystemPay"); } /** @@ -94,12 +123,149 @@ return FebsUtil.view("modules/mallMember/paymentInfo"); } + /** + * 代理列表 + * @return + */ + @GetMapping("agentList") + @RequiresPermissions("agentList:view") + public String agentList() { + return FebsUtil.view("modules/mallMember/agentList"); + } + + /** + * 代理级别-列表 + * @return + */ + @GetMapping("agentLevelList") + @RequiresPermissions("agentLevelList:view") + public String agentLevelList() { + return FebsUtil.view("modules/mallMember/agentLevelList"); + } + + /** + * 代理级别-详情 + * @param id + * @param model + * @return + */ + @GetMapping("agentLevelUpdate/{id}") + @RequiresPermissions("agentLevelUpdate:update") + public String agentLevelUpdate(@PathVariable long id, Model model) { + AdminAgentLevelUpdateInfoVo data = mallMemberService.getAgentLevelUpdateInfoById(id); + model.addAttribute("agentLevelUpdateInfo", data); + return FebsUtil.view("modules/mallMember/agentLevelUpdate"); + } + + /** + * 代理级别-全部成员 + * @param id + * @param model + * @return + */ + @GetMapping("agentAllMember/{id}") + public String agentAllMember(@PathVariable long id, Model model) { + idFromAgentAllMember = id; + return FebsUtil.view("modules/mallMember/agentAllMember"); + } + + /** + * 代理级别-设置代理 + * @param id + * @param model + * @return + */ + @GetMapping("agentLevelSet/{id}") + @RequiresPermissions("agentLevelSet:update") + public String agentLevelSet(@PathVariable long id, Model model) { + AdminAgentLevelSetInfoVo data = mallMemberService.getAgentLevelSetInfoByMemberId(id); + model.addAttribute("agentLevelSet", data); + return FebsUtil.view("modules/mallMember/agentLevelSet"); + } + + /** + * 奖励设置-列表 + * @return + */ + @GetMapping("rankAwardList") + @RequiresPermissions("rankAwardList:view") + public String rankAwardList() { + return FebsUtil.view("modules/mallMember/rankAwardList"); + } + + /** + * 奖励设置-详情 + * @param id + * @param model + * @return + */ + @GetMapping("rankAwardUpdate/{id}") + @RequiresPermissions("rankAwardUpdate:update") + public String rankAwardUpdate(@PathVariable long id, Model model) { + AdminRankAwardUpdateInfoVo data = mallMemberService.getRankAwardUpdateInfoById(id); + model.addAttribute("rankAwardUpdateInfo", data); + return FebsUtil.view("modules/mallMember/rankAwardUpdate"); + } + + /** + * App版本-列表 + * @return + */ + @GetMapping("appVersionList") + @RequiresPermissions("appVersionList:view") + public String appVersionList() { + return FebsUtil.view("modules/mallMember/appVersionList"); + } + + /** + * App版本-新增 + * @return + */ + @GetMapping("appVersionAdd") + @RequiresPermissions("appVersionAdd:add") + public String appVersionAdd() { + return FebsUtil.view("modules/mallMember/appVersionAdd"); + } + + /** + * App版本-详情 + * @param id + * @param model + * @return + */ + @GetMapping("appVerSionUpdate/{id}") + @RequiresPermissions("appVerSionUpdate:update") + public String appVerSionUpdate(@PathVariable long id, Model model) { + AppVersion data = mallMemberService.getAppVersionInfoById(id); + model.addAttribute("appVersion", data); + return FebsUtil.view("modules/mallMember/appVerSionUpdate"); + } + @GetMapping("shopApply") + public String shopApply() { + return FebsUtil.view("modules/mallMember/shopApply"); + } + @GetMapping("applyDetail/{id}") + public String applyDetail(@PathVariable("id") Long id, Model model) { + MallShopApply apply = mallMemberService.findShopApplyById(id); + model.addAttribute("apply", apply); + return FebsUtil.view("modules/mallMember/shopApplyInfo"); + } + @GetMapping("updateReferer/{id}") + public String updateReferer(@PathVariable("id") Long id, Model model) { + MallMember member = mallMemberService.getById(id); + model.addAttribute("referer", mallMemberService.findByInviteId(member.getReferrerId())); + model.addAttribute("id", id); + return FebsUtil.view("modules/mallMember/updateRefererId"); + } - + @GetMapping("addMember") + public String addMember() { + return FebsUtil.view("modules/mallMember/addMember"); + } -- Gitblit v1.9.1