wl
2022-12-07 a9be2e0bfbd8e716207fc467e2699d9caec76a7c
ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java
@@ -31,6 +31,8 @@
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;
@@ -414,7 +416,11 @@
    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;
    }
@@ -442,4 +448,29 @@
        }
        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);
    }
}