|  |  |  | 
|---|
|  |  |  | 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.MallMemberVo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.*; | 
|---|
|  |  |  | import lombok.RequiredArgsConstructor; | 
|---|
|  |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
|---|
|  |  |  | import org.springframework.stereotype.Controller; | 
|---|
|  |  |  | 
|---|
|  |  |  | 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"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 会员列表 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 会员列表-系统拨付 | 
|---|
|  |  |  | * @param id | 
|---|
|  |  |  | * @param model | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("mallSystemPay/{id}") | 
|---|
|  |  |  | @RequiresPermissions("mallSystemPay:update") | 
|---|
|  |  |  | public String systemPay(@PathVariable long id, Model model) { | 
|---|
|  |  |  | MallMemberVo data = mallMemberService.getMallMemberInfoById(id); | 
|---|
|  |  |  | model.addAttribute("systemPay", data); | 
|---|
|  |  |  | return FebsUtil.view("modules/mallMember/mallSystemPay"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 会员列表-资金流水 | 
|---|
|  |  |  | * @param id | 
|---|
|  |  |  | * @param model | 
|---|
|  |  |  | 
|---|
|  |  |  | return FebsUtil.view("modules/mallMember/moneyFlow"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 资金流水列表 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("moneyFlowList") | 
|---|
|  |  |  | @RequiresPermissions("moneyFlowList:view") | 
|---|
|  |  |  | public String moneyFlowList() { | 
|---|
|  |  |  | return FebsUtil.view("modules/mallMember/moneyFlowList"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 提现列表 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("chargeFlowList") | 
|---|
|  |  |  | @RequiresPermissions("chargeFlowList:view") | 
|---|
|  |  |  | public String chargeFlowList() { | 
|---|
|  |  |  | return FebsUtil.view("modules/mallMember/chargeFlowList"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 提现列表-收款方式 | 
|---|
|  |  |  | * @param id | 
|---|
|  |  |  | * @param model | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("paymentInfo/{id}") | 
|---|
|  |  |  | @RequiresPermissions("paymentInfo:update") | 
|---|
|  |  |  | public String paymentInfo(@PathVariable long id, Model model) { | 
|---|
|  |  |  | AdminMallMemberPaymentVo data = mallMemberService.getMallMemberPaymentInfoByFlowId(id); | 
|---|
|  |  |  | model.addAttribute("paymentInfo", data); | 
|---|
|  |  |  | 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"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|