xiaoyong931011
2023-05-10 135641e4b1825af375125f4c7f0778e193ac5d95
src/main/java/cc/mrbird/febs/mall/controller/ViewSystemController.java
@@ -215,6 +215,20 @@
            String agentPerk = ObjectUtil.isEmpty(agentPerkDic.getValue()) ? "0" : agentPerkDic.getValue();
            hlmBasicPerkDto.setAgentPerk(agentPerk);
        }
        DataDictionaryCustom perkAgentAchieveTotalDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.PERK_AGENT_ACHIEVE_TOTAL.getType(),
                DataDictionaryEnum.PERK_AGENT_ACHIEVE_TOTAL.getCode());
        if (perkAgentAchieveTotalDic != null) {
            String perkAgentAchieveTotal = ObjectUtil.isEmpty(perkAgentAchieveTotalDic.getValue()) ? "0" : perkAgentAchieveTotalDic.getValue();
            hlmBasicPerkDto.setPerkAgentAchieveTotal(perkAgentAchieveTotal);
        }
        DataDictionaryCustom perkAgentAchievePercentDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
                DataDictionaryEnum.PERK_AGENT_ACHIEVE_PERCENT.getType(),
                DataDictionaryEnum.PERK_AGENT_ACHIEVE_PERCENT.getCode());
        if (perkAgentAchievePercentDic != null) {
            String perkAgentAchievePercent = ObjectUtil.isEmpty(perkAgentAchievePercentDic.getValue()) ? "0" : perkAgentAchievePercentDic.getValue();
            hlmBasicPerkDto.setPerkAgentAchievePercent(perkAgentAchievePercent);
        }
        model.addAttribute("hlmBasicPerk", hlmBasicPerkDto);
        return FebsUtil.view("modules/system/hlmBasicPerk");
    }
@@ -348,8 +362,8 @@
     * @param model
     * @return
     */
    @GetMapping("hlmAchieveSetButton")
    @RequiresPermissions("hlmAchieveSetButton:view")
    @GetMapping("hlmAchieveSet")
    @RequiresPermissions("hlmAchieveSet:view")
    public String hlmAchieveSetButton(Model model) {
        HlmVoucherButtonDto hlmVoucherButtonDto = new HlmVoucherButtonDto();
        DataDictionaryCustom jobAchieveReleasePercentDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(