| | |
| | | import cc.mrbird.febs.mall.entity.MallMember; |
| | | import cc.mrbird.febs.mall.mapper.*; |
| | | import cc.mrbird.febs.mall.vo.AdminPerkSetVo; |
| | | import cc.mrbird.febs.mall.vo.AdminPoolSetVo; |
| | | import cc.mrbird.febs.monitor.service.ILoginLogService; |
| | | import cc.mrbird.febs.system.service.IUserService; |
| | | import cn.hutool.core.date.DateUtil; |
| | |
| | | model.addAttribute("adminPerkSet", adminPerkSetVo); |
| | | return FebsUtil.view("modules/system/perkSet"); |
| | | } |
| | | |
| | | @GetMapping("poolSet") |
| | | @RequiresPermissions("poolSet:view") |
| | | public String poolSet(Model model) { |
| | | AdminPoolSetVo adminPoolSetVo = new AdminPoolSetVo(); |
| | | DataDictionaryCustom poolCashDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | PerkEnum.POOL_CASH.getType(), |
| | | PerkEnum.POOL_CASH.getCode()); |
| | | if (poolCashDic != null) { |
| | | adminPoolSetVo.setPoolCash(poolCashDic.getValue()); |
| | | } |
| | | DataDictionaryCustom poolScoreDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | PerkEnum.POOL_SCORE.getType(), |
| | | PerkEnum.POOL_SCORE.getCode()); |
| | | if (poolScoreDic != null) { |
| | | adminPoolSetVo.setPoolScore(poolScoreDic.getValue()); |
| | | } |
| | | DataDictionaryCustom poolScorePriceDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | PerkEnum.POOL_SCORE_PRICE.getType(), |
| | | PerkEnum.POOL_SCORE_PRICE.getCode()); |
| | | if (poolScorePriceDic != null) { |
| | | adminPoolSetVo.setPoolScorePrice(poolScorePriceDic.getValue()); |
| | | } |
| | | DataDictionaryCustom poolCashPercentDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | PerkEnum.POOL_CASH_PERCENT.getType(), |
| | | PerkEnum.POOL_CASH_PERCENT.getCode()); |
| | | if (poolCashPercentDic != null) { |
| | | adminPoolSetVo.setPoolCashPercent(poolCashPercentDic.getValue()); |
| | | } |
| | | DataDictionaryCustom poolScorePercentDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | PerkEnum.POOL_SCORE_PERCENT.getType(), |
| | | PerkEnum.POOL_SCORE_PERCENT.getCode()); |
| | | if (poolScorePercentDic != null) { |
| | | adminPoolSetVo.setPoolScorePercent(poolScorePercentDic.getValue()); |
| | | } |
| | | DataDictionaryCustom withdrawScoreCashPercentDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | PerkEnum.WITHDRAW_SCORE_CASH_PERCENT.getType(), |
| | | PerkEnum.WITHDRAW_SCORE_CASH_PERCENT.getCode()); |
| | | if (withdrawScoreCashPercentDic != null) { |
| | | adminPoolSetVo.setWithdrawScoreCashPercent(withdrawScoreCashPercentDic.getValue()); |
| | | } |
| | | |
| | | model.addAttribute("adminPoolSet", adminPoolSetVo); |
| | | return FebsUtil.view("modules/system/poolSet"); |
| | | } |
| | | } |