| | |
| | | import com.ycl.dto.casePool.ViolationParam; |
| | | import com.ycl.entity.caseHandler.*; |
| | | import com.ycl.entity.common.ImageResources; |
| | | import com.ycl.entity.dict.DataDictionary; |
| | | import com.ycl.entity.video.VideoAlarmReport; |
| | | import com.ycl.exception.ApiException; |
| | | import com.ycl.mapper.caseHandler.*; |
| | |
| | | baseCase.setViolations(violations); |
| | | } else { |
| | | IllegalBuilding illegalBuilding = illegalBuildingMapper.selectById(baseCase.getId()); |
| | | LambdaQueryWrapper<DataDictionary> dict = new LambdaQueryWrapper<>(); |
| | | dict.eq(DataDictionary::getId, illegalBuilding.getCategoryId()); |
| | | DataDictionary dictionary = dataDictionaryMapper.selectOne(dict); |
| | | if (dictionary != null) { |
| | | illegalBuilding.setCategoryText(dictionary.getName()); |
| | | } |
| | | baseCase.setIllegalBuilding(illegalBuilding); |
| | | } |
| | | //获取调度信息 |
| | |
| | | continue; |
| | | } |
| | | for (DisposeRecord record : records) { |
| | | if (record != null && record.getEndTime() != null) { |
| | | if (record != null && record.getEndTime() != null && record.getStartTime() != null) { |
| | | record.setLinkTime( |
| | | DateUtil.getDistanceDateTime( |
| | | DateUtil.fromLocalDateTime(baseCase.getAlarmTime()), |
| | | DateUtil.fromLocalDateTime(record.getStartTime()), |
| | | DateUtil.fromLocalDateTime(record.getEndTime()))); |
| | | } |
| | | } |