| | |
| | | public String agentAmountSet(Model model) { |
| | | DataDictionaryCustom dic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.PRICE_AMOUNT.getType(), |
| | | DataDictionaryEnum.PRICE_AMOUNT.getCode()); |
| | | DataDictionaryCustom giveStateDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.GIVE_STATE.getType(), |
| | | DataDictionaryEnum.GIVE_STATE.getCode()); |
| | | DataDictionaryCustom activityBulletinDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.ACTIVITY_BULLETIN.getType(), |
| | | DataDictionaryEnum.ACTIVITY_BULLETIN.getCode()); |
| | | DataDictionaryCustom giveAmountDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.GIVE_AMOUNT.getType(), |
| | | DataDictionaryEnum.GIVE_AMOUNT.getCode()); |
| | | AdminAgentAmountDto adminAgentAmountDto = new AdminAgentAmountDto(); |
| | | if (dic != null) { |
| | | adminAgentAmountDto.setAgentAmountValue(dic.getValue()); |
| | | model.addAttribute("agentAmountSet", adminAgentAmountDto); |
| | | } |
| | | if (giveStateDic != null) { |
| | | adminAgentAmountDto.setGiveState(giveStateDic.getValue()); |
| | | } |
| | | if (activityBulletinDic != null) { |
| | | adminAgentAmountDto.setActivityBulletin(activityBulletinDic.getValue()); |
| | | } |
| | | if (giveAmountDic != null) { |
| | | adminAgentAmountDto.setGiveAmount(giveAmountDic.getValue()); |
| | | } |
| | | model.addAttribute("agentAmountSet", adminAgentAmountDto); |
| | | return FebsUtil.view("modules/system/agentAmountSet"); |
| | | } |
| | | |