| | |
| | | @GetMapping("/query") |
| | | @ApiOperation("查询") |
| | | @LogSave(operationType = "图片资源管理", contain = "查询图片") |
| | | public CommonResult search(@RequestParam(required = false) Integer type, |
| | | public CommonResult search(@RequestParam(required = false) String type, |
| | | @RequestParam(required = false) String startTime, |
| | | @RequestParam(required = false) String endTime, |
| | | @RequestParam Long size, |
| | |
| | | @GetMapping("/query") |
| | | @ApiOperation("查询") |
| | | @LogSave(operationType = "视频资源管理", contain = "修改图片") |
| | | public CommonResult search(@RequestParam(required = false) Integer type, |
| | | public CommonResult search(@RequestParam(required = false) String type, |
| | | @RequestParam(required = false) String startTime, |
| | | @RequestParam(required = false) String endTime, |
| | | @RequestParam Long size, |
| | |
| | | */ |
| | | public interface ImageResourcesMapper extends BaseMapper<ImageResources> { |
| | | |
| | | Page<MediaVO> selectImagePage(Page<MediaVO> imagesVOPage, Integer type, String startTime, String endTime); |
| | | Page<MediaVO> selectImagePage(Page<MediaVO> imagesVOPage, String type, String startTime, String endTime); |
| | | } |
| | |
| | | */ |
| | | public interface VideoResourcesMapper extends BaseMapper<VideoResources> { |
| | | |
| | | Page<MediaVO> selectImagePage(Page<MediaVO> mediaVOPage, Integer type, String startTime, String endTime); |
| | | Page<MediaVO> selectImagePage(Page<MediaVO> mediaVOPage, String type, String startTime, String endTime); |
| | | } |
| | |
| | | */ |
| | | public interface IImageResourcesService extends IService<ImageResources> { |
| | | |
| | | Page<MediaVO> selectImages(Integer type, String startTime, String endTime, Long size, Long current); |
| | | Page<MediaVO> selectImages(String type, String startTime, String endTime, Long size, Long current); |
| | | } |
| | |
| | | */ |
| | | public interface IVideoResourcesService extends IService<VideoResources> { |
| | | |
| | | Page<MediaVO> selectImages(Integer type, String startTime, String endTime, Long size, Long current); |
| | | Page<MediaVO> selectImages(String type, String startTime, String endTime, Long size, Long current); |
| | | } |
| | |
| | | ImageResourcesMapper imageResourcesMapper; |
| | | |
| | | @Override |
| | | public Page<MediaVO> selectImages(Integer type, String startTime, String endTime, Long size, Long current) { |
| | | public Page<MediaVO> selectImages(String type, String startTime, String endTime, Long size, Long current) { |
| | | Page<MediaVO> imagesVOPage = new Page<>(); |
| | | imagesVOPage.setCurrent(current); |
| | | imagesVOPage.setSize(size); |
| | |
| | | VideoResourcesMapper videoResourcesMapper; |
| | | |
| | | @Override |
| | | public Page<MediaVO> selectImages(Integer type, String startTime, String endTime, Long size, Long current) { |
| | | public Page<MediaVO> selectImages(String type, String startTime, String endTime, Long size, Long current) { |
| | | Page<MediaVO> mediaVOPage = new Page<>(); |
| | | mediaVOPage.setCurrent(current); |
| | | mediaVOPage.setSize(size); |
| | |
| | | <if test="type == '03' and type != null and type !='' "> |
| | | t1.type='03' |
| | | </if> |
| | | <if test="type == null and type =='' "> |
| | | <if test="type == '01' and type != null and type !='' "> |
| | | t1.type='02' or t1.type='01' |
| | | </if> |
| | | <if test="startTime != '' and endTime != '' and startTime != null and endTime != null"> |
| | |
| | | <if test="type == '03' and type != null and type !='' "> |
| | | t1.type='03' |
| | | </if> |
| | | <if test="type == null and type =='' "> |
| | | <if test="type == '01' and type != null and type !='' "> |
| | | t1.type='02' or t1.type='01' |
| | | </if> |
| | | <if test="startTime != '' and endTime != '' and startTime != null and endTime != null"> |