| | |
| | | |
| | | import cc.mrbird.febs.common.annotation.ControllerEndpoint; |
| | | import cc.mrbird.febs.common.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.enumerates.CommonDictionaryEnum; |
| | | import cc.mrbird.febs.common.enumerates.DataDictionaryEnum; |
| | | import cc.mrbird.febs.common.utils.AppContants; |
| | | import cc.mrbird.febs.mall.dto.*; |
| | |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @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 timeDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | CommonDictionaryEnum.TIME_URL_INDEX.getType(), |
| | | CommonDictionaryEnum.TIME_URL_INDEX.getCode() |
| | | ); |
| | | if(ObjectUtil.isEmpty(timeDic)){ |
| | | return new FebsResponse().fail().message("请刷新页面重试"); |
| | | } |
| | | timeDic.setValue(adminIndexVideoDto.getTimeStop()); |
| | | dataDictionaryCustomMapper.updateById(timeDic); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | // public static void main(String[] args) { |
| | | // List<Integer> lines = Arrays.asList(new Integer[]{1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0}); |
| | | // //数字连续出现的计数 |