package com.gkhy.safePlatform.incidentManage.service.baseService.impl;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.gkhy.safePlatform.incidentManage.entity.*;
|
import com.gkhy.safePlatform.incidentManage.query.db.AccidentReportDBQuery;
|
import com.gkhy.safePlatform.incidentManage.query.db.AccidentReportCountDBQuery;
|
import com.gkhy.safePlatform.incidentManage.repository.AccidentReportInfoRepository;
|
import com.gkhy.safePlatform.incidentManage.service.baseService.AccidentReportInfoService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service("accidentReportInfoService")
|
public class AccidentReportInfoServiceImpl extends ServiceImpl<AccidentReportInfoRepository, AccidentReportInfo> implements AccidentReportInfoService {
|
|
@Autowired
|
private AccidentReportInfoRepository accidentReportInfoRepository;
|
|
@Override
|
public List<AccidentReportInfoPageDO> selectAccidentReportList(Page<AccidentReportInfoPageDO> page, AccidentReportDBQuery AccidentReportDBQuery) {
|
return accidentReportInfoRepository.selectAccidentReportList(page,AccidentReportDBQuery);
|
}
|
|
@Override
|
public void addAccidentReport(AccidentReportInfo AccidentReportInfo) {
|
accidentReportInfoRepository.addAccidentReport(AccidentReportInfo);
|
}
|
|
@Override
|
public AccidentReportInfoDetailDO selectAccidentReportById(Long id) {
|
return accidentReportInfoRepository.selectAccidentReportById(id);
|
}
|
|
@Override
|
public void updateAccidentReport(AccidentReportInfo AccidentReportInfo) {
|
accidentReportInfoRepository.updateAccidentReport(AccidentReportInfo);
|
}
|
|
@Override
|
public void deleteAccidentReportById(Long teamId) {
|
accidentReportInfoRepository.deleteAccidentReportById(teamId);
|
}
|
|
@Override
|
public List<AccidentReportCount> selectByTimeAndType(AccidentReportCountDBQuery dbQuery) {
|
return accidentReportInfoRepository.selectByTimeAndType(dbQuery);
|
}
|
|
@Override
|
public List<AccidentReportCountRPC> getCountForRPCByDeptIdAndMonth(String startTime, String endTime, Long deptId) {
|
return accidentReportInfoRepository.getCountForRPCByDeptIdAndMonth(startTime,endTime,deptId);
|
}
|
|
@Override
|
public List<AccidentReportCountRPC> getCountForRPCByDeptIdAndDay(String startTime, String endTime, Long deptId) {
|
return accidentReportInfoRepository.getCountForRPCByDeptIdAndDay(startTime,endTime,deptId);
|
}
|
}
|