| | |
| | | public void setVideoPointService(IVideoPointService videoPointService) { |
| | | this.videoPointService = videoPointService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setBaseCaseService(IBaseCaseService baseCaseService) { |
| | | this.baseCaseService = baseCaseService; |
| | |
| | | baseCase.setStreetId(videoPoint.getStreetId()); |
| | | baseCase.setCommunityId(videoPoint.getCommunityId()); |
| | | baseCase.setSite(videoPoint.getAddress()); |
| | | |
| | | baseCaseService.save(baseCase); |
| | | violations.setId(baseCase.getId()); |
| | | violations.setVideoAlarmReportId(videoAlarmReport.getId()); |
| | | violations.setVideoPointId(videoPoint.getId()); |
| | | violations.setDescription(videoAlarmReport.getAlgoName()); |
| | | baseMapper.insert(violations); |
| | | } |
| | | baseCaseService.save(baseCase); |
| | | violations.setId(baseCase.getId()); |
| | | violations.setVideoAlarmReportId(videoAlarmReport.getId()); |
| | | violations.setVideoPointId(videoPoint.getId()); |
| | | baseMapper.insert(violations); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<VideoAndAreaVO> selectType() { |
| | | return baseCaseMapper.selectType(); |
| | | return baseCaseMapper.selectType(); |
| | | } |
| | | } |