| | |
| | | |
| | | @PostMapping(value = "/indexPngSet") |
| | | public FebsResponse indexPngSet(AdminIndexVideoDto adminIndexVideoDto) { |
| | | DataDictionaryCustom pngDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | CommonDictionaryEnum.PNG_URL_INDEX.getType(), |
| | | CommonDictionaryEnum.PNG_URL_INDEX.getCode() |
| | | ); |
| | | if(ObjectUtil.isEmpty(pngDic)){ |
| | | return new FebsResponse().fail().message("请刷新页面重试"); |
| | | } |
| | | pngDic.setValue(adminIndexVideoDto.getPngUrl()); |
| | | dataDictionaryCustomMapper.updateById(pngDic); |
| | | // DataDictionaryCustom pngDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | // CommonDictionaryEnum.PNG_URL_INDEX.getType(), |
| | | // CommonDictionaryEnum.PNG_URL_INDEX.getCode() |
| | | // ); |
| | | // if(ObjectUtil.isEmpty(pngDic)){ |
| | | // return new FebsResponse().fail().message("请刷新页面重试"); |
| | | // } |
| | | // pngDic.setValue(adminIndexVideoDto.getPngUrl()); |
| | | // dataDictionaryCustomMapper.updateById(pngDic); |
| | | |
| | | DataDictionaryCustom timeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | CommonDictionaryEnum.TIME_URL_INDEX.getType(), |