|
|
|
|
@ -128,42 +128,42 @@ public class DataPetitionComplaintService extends ServiceImpl<DataPetitionCompla
|
|
|
|
|
// 国家信访
|
|
|
|
|
QueryWrapper<DataPetitionComplaint> countryQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
countryQueryWrapper.eq("problem_sources_code", 21); |
|
|
|
|
countryQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
|
countryQueryWrapper.between("discovery_time", beginTime, endTime); |
|
|
|
|
Long countryMail = dataPetitionComplaintMapper.selectCount(countryQueryWrapper); |
|
|
|
|
// 公安部信访
|
|
|
|
|
QueryWrapper<DataPetitionComplaint> policeQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
policeQueryWrapper.eq("problem_sources_code", 22); |
|
|
|
|
policeQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
|
policeQueryWrapper.between("discovery_time", beginTime, endTime); |
|
|
|
|
Long policeMail = dataPetitionComplaintMapper.selectCount(policeQueryWrapper); |
|
|
|
|
// 初访
|
|
|
|
|
QueryWrapper<DataPetitionComplaint> firstQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
firstQueryWrapper.eq("initial_petition", 1); |
|
|
|
|
firstQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
|
firstQueryWrapper.between("discovery_time", beginTime, endTime); |
|
|
|
|
Long firstMail = dataPetitionComplaintMapper.selectCount(firstQueryWrapper); |
|
|
|
|
// 重访
|
|
|
|
|
QueryWrapper<DataPetitionComplaint> secondQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
secondQueryWrapper.eq("initial_petition", 2); |
|
|
|
|
secondQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
|
secondQueryWrapper.between("discovery_time", beginTime, endTime); |
|
|
|
|
Long secondMail = dataPetitionComplaintMapper.selectCount(secondQueryWrapper); |
|
|
|
|
// 领导接访
|
|
|
|
|
QueryWrapper<DataPetitionComplaint> leaderQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
leaderQueryWrapper.isNotNull("receiving_leader_name"); |
|
|
|
|
leaderQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
|
leaderQueryWrapper.between("discovery_time", beginTime, endTime); |
|
|
|
|
Long leaderReceiveMail = dataPetitionComplaintMapper.selectCount(leaderQueryWrapper); |
|
|
|
|
// 领导督办
|
|
|
|
|
QueryWrapper<DataPetitionComplaint> leaderViewQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
leaderViewQueryWrapper.isNotNull("receiving_leader_name"); |
|
|
|
|
leaderViewQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
|
leaderViewQueryWrapper.between("discovery_time", beginTime, endTime); |
|
|
|
|
Long leaderViewMail = dataPetitionComplaintMapper.selectCount(leaderViewQueryWrapper); |
|
|
|
|
// 闹访
|
|
|
|
|
QueryWrapper<DataPetitionComplaint> tangleQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
tangleQueryWrapper.eq("entanglement_visits", 1); |
|
|
|
|
tangleQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
|
tangleQueryWrapper.between("discovery_time", beginTime, endTime); |
|
|
|
|
Long tangleMail = dataPetitionComplaintMapper.selectCount(tangleQueryWrapper); |
|
|
|
|
// 集访
|
|
|
|
|
QueryWrapper<DataPetitionComplaint> massQueryWrapper = new QueryWrapper<>(); |
|
|
|
|
massQueryWrapper.eq("mass_visits", 1); |
|
|
|
|
massQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
|
massQueryWrapper.between("discovery_time", beginTime, endTime); |
|
|
|
|
Long massMail = dataPetitionComplaintMapper.selectCount(massQueryWrapper); |
|
|
|
|
JSONObject overview = new JSONObject() |
|
|
|
|
// 信访总数(起)
|
|
|
|
|
@ -192,7 +192,7 @@ public class DataPetitionComplaintService extends ServiceImpl<DataPetitionCompla
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 分类数据排行
|
|
|
|
|
// 初访重访分类数据排行
|
|
|
|
|
public List<CaseVerifDepart> mailRank(Integer departId, Integer Repeat, Date beginTime, Date endTime) { |
|
|
|
|
List<CaseVerifDepart> list = dataPetitionComplaintMapper. |
|
|
|
|
selectDepartStatistic(departId, Repeat, beginTime, endTime); |
|
|
|
|
|