| | |
| | | import com.ycl.service.caseHandler.IViolationsService; |
| | | import com.ycl.service.video.IVideoAlarmReportService; |
| | | import com.ycl.vo.casePool.*; |
| | | import com.ycl.vo.cockpit.enforcementEvents.EnforcementEventsVO; |
| | | import com.ycl.vo.cockpit.enforcementEvents.EventVO; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | public Map<String, Object> selectCount() { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | Long review = baseCaseMapper.selectCount(new LambdaQueryWrapper<BaseCase>().eq(BaseCase::getState, 1)); |
| | | Long register = baseCaseMapper.selectCount(new LambdaQueryWrapper<BaseCase>().in(BaseCase::getState, 2,6)); |
| | | Long study = baseCaseMapper.selectCount(new LambdaQueryWrapper<BaseCase>().eq(BaseCase::getState, 3)); |
| | | map.put("review", review); |
| | | map.put("register",register); |
| | | map.put("study",study); |
| | | return map; |
| | | } |
| | | |
| | |
| | | } |
| | | return violationsMapper.insert(violations) == 1 ? true : false; |
| | | } |
| | | |
| | | @Override |
| | | public Integer dayCount() { |
| | | return baseCaseMapper.dayCount(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer weekCount() { |
| | | return baseCaseMapper.weekCount(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer dispatchCount() { |
| | | return baseCaseMapper.dispatchCount(); |
| | | } |
| | | |
| | | @Override |
| | | public Integer alCount() { |
| | | return baseCaseMapper.alCount(); |
| | | } |
| | | |
| | | @Override |
| | | public List<EventVO> selectEventList(String beginTime, String endTime) { |
| | | return baseCaseMapper.selectEventList(beginTime,endTime); |
| | | } |
| | | } |