| | |
| | | import com.ycl.entity.caseHandler.QuestionCategory; |
| | | import com.ycl.entity.caseHandler.Violations; |
| | | import com.ycl.entity.dict.DataDictionary; |
| | | import com.ycl.entity.resources.ImageResources; |
| | | import com.ycl.entity.video.VideoAlarmReport; |
| | | import com.ycl.entity.video.VideoPoint; |
| | | import com.ycl.enums.common.DictTypeEnum; |
| | |
| | | import com.ycl.service.caseHandler.IBaseCaseService; |
| | | import com.ycl.service.caseHandler.IViolationsService; |
| | | import com.ycl.service.dict.IDataDictionaryService; |
| | | import com.ycl.service.resources.IImageResourcesService; |
| | | import com.ycl.service.video.impl.IVideoPointService; |
| | | import com.ycl.vo.cockpit.enforcementEvents.VideoAndAreaVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private IVideoPointService videoPointService; |
| | | private IBaseCaseService baseCaseService; |
| | | private IDataDictionaryService dataDictionaryService; |
| | | private IImageResourcesService imageResourcesService; |
| | | |
| | | @Resource |
| | | BaseCaseMapper baseCaseMapper; |
| | |
| | | @Autowired |
| | | public void setDataDictionaryService(IDataDictionaryService dataDictionaryService) { |
| | | this.dataDictionaryService = dataDictionaryService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setImageResourcesService(IImageResourcesService imageResourcesService) { |
| | | this.imageResourcesService = imageResourcesService; |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | baseMapper.insert(violations); |
| | | |
| | | try { |
| | | ImageResources imageResources = new ImageResources(); |
| | | imageResources.setType("01"); |
| | | imageResources.setBelongToId(baseCase.getId()); |
| | | imageResources.setUrl(videoAlarmReport.getPicData()); |
| | | imageResources.setCreateTime(LocalDateTime.now()); |
| | | imageResourcesService.save(imageResources); |
| | | } catch (Exception ex) { |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |