Merge remote-tracking branch 'origin/master'
| | |
| | | @ApiOperation("预警研判") |
| | | public CommonResult searchVideoInspection(@RequestParam Integer current, |
| | | @RequestParam Integer pageSize, |
| | | @RequestParam(required = false) Integer type, |
| | | @RequestParam(required = false) Long gradeId, |
| | | @RequestParam(required = false) Long videoId, |
| | | @RequestParam(required = false) String beginTime, |
| | | @RequestParam(required = false) String endTime) { |
| | | return CommonResult.success(baseCaseService.selectVideoInspection(current, pageSize, gradeId, videoId, beginTime, endTime)); |
| | | return CommonResult.success(baseCaseService.selectVideoInspection(current, pageSize, gradeId, videoId, beginTime, endTime, type)); |
| | | } |
| | | |
| | | @GetMapping("/video_inspection/{id}") |
| | |
| | | @GetMapping("/video_point") |
| | | public CommonResult<List<VideoPointVo>> videoPoint(@Validated CockpitVO params) { |
| | | checkApiUtil.cockpit(params); |
| | | IPage<VideoPointVo> page = videoPointService.getList(null, null, 1, 500); |
| | | IPage<VideoPointVo> page = videoPointService.getList(null, null, null, 1, 500); |
| | | return CommonResult.success(page.getRecords()); |
| | | } |
| | | |
| | |
| | | @GetMapping("page") |
| | | public CommonResult page(@RequestParam(value = "size", required = false) Long size, |
| | | @RequestParam(value = "current", required = false) Long current, |
| | | @RequestParam(value = "type", required = false) Integer type, |
| | | @RequestParam(value = "regionId", required = false) Integer streetId, |
| | | @RequestParam(value = "regionId", required = false) Integer communityId) { |
| | | Page<VideoPointVo> list = videoInspectionService.page(size, current, streetId, communityId); |
| | | Page<VideoPointVo> list = videoInspectionService.page(size, current, streetId, communityId, type); |
| | | return CommonResult.success(CommonPage.restPage(list)); |
| | | } |
| | | |
| | |
| | | @LogSave(operationType = "点位管理", contain = "查询点位") |
| | | public CommonResult searchVideoPoint(@RequestParam Long size, |
| | | @RequestParam Long current, |
| | | @RequestParam(required = false) Integer type, |
| | | @RequestParam(required = false) Integer streetId, |
| | | @RequestParam(required = false) Integer communityId) { |
| | | |
| | | IPage<VideoPointVo> pointVoIPage = iVideoPointService.getList(streetId, communityId, current.intValue(), size.intValue()); |
| | | IPage<VideoPointVo> pointVoIPage = iVideoPointService.getList(streetId, communityId, type, current.intValue(), size.intValue()); |
| | | // pointVoIPage.getRecords() |
| | | // .stream() |
| | | // .forEach(item -> item.setUrlAddress(videoUtil.getVideo(item.getPlatResourceId(), "HLS", 0))); |
| | |
| | | |
| | | BaseCase selectCondMap(Map map); |
| | | |
| | | Page<BaseCase> selectBaseCasePage(Page<BaseCase> page, @Param("code") String number, @Param("communityId") Integer communityId, @Param("categories") Integer categories, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime, @Param("site") String site, @Param("state") Integer state, @Param("streetId")Integer streetId); |
| | | Page<BaseCase> selectBaseCasePage(Page<BaseCase> page, @Param("code") String number, @Param("communityId") Integer communityId, @Param("categories") Integer categories, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime, @Param("site") String site, @Param("state") Integer state, @Param("streetId") Integer streetId); |
| | | |
| | | Page<QueryForViolationVO> selectViolationPage(Page<QueryForViolationVO> setCurrent, @Param(value = "queryForViolationParam") QueryForViolationParam queryForViolationParam); |
| | | |
| | | List<QueryForViolationVO> selectViolationPage(@Param(value = "queryForViolationParam") QueryForViolationParam queryForViolationParam); |
| | | |
| | | Page<BaseCaseVO> selectVideoInspection(Page<Object> objectPage, @Param("gradeId") Long gradeId, @Param("videoId") Long videoId, @Param("beginTime") String beginTime, @Param("endTime") String endTime); |
| | | Page<BaseCaseVO> selectVideoInspection(Page<Object> objectPage, @Param("gradeId") Long gradeId, @Param("videoId") Long videoId, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("type") Integer type); |
| | | |
| | | Integer dayCount(); |
| | | |
| | |
| | | @Mapper |
| | | public interface VideoPointMapper extends BaseMapper<VideoPoint> { |
| | | |
| | | IPage<VideoPointVo> search(Page<VideoPointVo> page, @Param("streetId") Integer streetId, @Param("communityId") Integer communityId); |
| | | IPage<VideoPointVo> search(Page<VideoPointVo> page, @Param("streetId") Integer streetId, |
| | | @Param("communityId") Integer communityId, @Param("type") Integer type); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | List<QueryForViolationVO> selectViolationList(QueryForViolationParam queryForViolationParam); |
| | | |
| | | Page<BaseCaseVO> selectVideoInspection(Integer current, Integer pageSize, Long gradeId, Long videoId, String beginTime, String endTime); |
| | | Page<BaseCaseVO> selectVideoInspection(Integer current, Integer pageSize, Long gradeId, Long videoId, String beginTime, String endTime, Integer type); |
| | | |
| | | Map<String, Object> selectCount(); |
| | | |
| | |
| | | Integer stateInt = baseCase.getState(); |
| | | if (stateInt == 0) { |
| | | baseCase.setStateName("待处理"); |
| | | }else if(stateInt == 1){ |
| | | } else if (stateInt == 1) { |
| | | baseCase.setStateName("报警"); |
| | | }else if(stateInt == 2){ |
| | | } else if (stateInt == 2) { |
| | | baseCase.setStateName("上报"); |
| | | }else if(stateInt == 3){ |
| | | } else if (stateInt == 3) { |
| | | baseCase.setStateName("在学习"); |
| | | }else if(stateInt == 4){ |
| | | } else if (stateInt == 4) { |
| | | baseCase.setStateName("暂不处理"); |
| | | }else if(stateInt == 5){ |
| | | } else if (stateInt == 5) { |
| | | baseCase.setStateName("立案"); |
| | | }else if(stateInt == 6 ){ |
| | | } else if (stateInt == 6) { |
| | | baseCase.setStateName("调度"); |
| | | }else if(stateInt == 7 ){ |
| | | } else if (stateInt == 7) { |
| | | baseCase.setStateName("处置"); |
| | | }else if(stateInt == 8 ){ |
| | | } else if (stateInt == 8) { |
| | | baseCase.setStateName("核查"); |
| | | }else if(stateInt == 9 ){ |
| | | } else if (stateInt == 9) { |
| | | baseCase.setStateName("结案"); |
| | | }else if(stateInt == 10 ){ |
| | | } else if (stateInt == 10) { |
| | | baseCase.setStateName("待上报"); |
| | | } |
| | | }); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Page<BaseCaseVO> selectVideoInspection(Integer current, Integer pageSize, Long gradeId, Long videoId, String beginTime, String endTime) { |
| | | return baseCaseMapper.selectVideoInspection(new Page<>(current, pageSize), gradeId, videoId, beginTime, endTime); |
| | | public Page<BaseCaseVO> selectVideoInspection(Integer current, Integer pageSize, Long gradeId, Long videoId, String beginTime, String endTime, Integer type) { |
| | | return baseCaseMapper.selectVideoInspection(new Page<>(current, pageSize), gradeId, videoId, beginTime, endTime, type); |
| | | } |
| | | |
| | | @Override |
| | |
| | | * @date 2022/11/08 |
| | | */ |
| | | public interface IVideoInspectionService { |
| | | Page<VideoPointVo> page(Long size, Long current, Integer streetId, Integer communityId); |
| | | Page<VideoPointVo> page(Long size, Long current, Integer streetId, Integer communityId,Integer type); |
| | | } |
| | |
| | | */ |
| | | public interface IVideoPointService extends IService<VideoPoint> { |
| | | |
| | | IPage<VideoPointVo> getList(Integer streetId, Integer communityId, Integer current, Integer size); |
| | | IPage<VideoPointVo> getList(Integer streetId, Integer communityId, Integer type, Integer current, Integer size); |
| | | |
| | | VideoPoint getByCode(String code); |
| | | } |
| | |
| | | private VideoPointMapper videoPointMapper; |
| | | |
| | | @Override |
| | | public Page<VideoPointVo> page(Long size, Long current, Integer streetId, Integer communityId) { |
| | | public Page<VideoPointVo> page(Long size, Long current, Integer streetId, Integer communityId, Integer type) { |
| | | Page<VideoPointVo> page = new Page<>(current, size); |
| | | return (Page<VideoPointVo>) videoPointMapper.search(page, streetId, communityId); |
| | | return (Page<VideoPointVo>) videoPointMapper.search(page, streetId, communityId, type); |
| | | } |
| | | } |
| | |
| | | public class VideoPointServiceImpl extends ServiceImpl<VideoPointMapper, VideoPoint> implements IVideoPointService { |
| | | |
| | | @Override |
| | | public IPage<VideoPointVo> getList(Integer streetId, Integer communityId, Integer current, Integer size) { |
| | | return baseMapper.search(new Page<>(current, size), streetId, communityId); |
| | | public IPage<VideoPointVo> getList(Integer streetId, Integer communityId, Integer type, Integer current, Integer size) { |
| | | return baseMapper.search(new Page<>(current, size), streetId, communityId, type); |
| | | } |
| | | |
| | | @Override |
| | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and t1.alarm_time between #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="type!=null"> |
| | | and t3.type = #{type} |
| | | </if> |
| | | group by t1.id |
| | | order by t1.id desc |
| | | </select> |
| | |
| | | <if test="communityId!=null"> |
| | | and vp.community_id = #{communityId} |
| | | </if> |
| | | <if test="type!=null"> |
| | | and vp.type = #{type} |
| | | </if> |
| | | </where> |
| | | ORDER BY vp.code DESC |
| | | </select> |