|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.biutag.supervision.service; |
|
|
|
package com.biutag.supervision.service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
@ -56,10 +57,6 @@ public class DataMailService extends ServiceImpl<DataPetitionComplaintMapper, Da |
|
|
|
Long countryMail = dataPetitionComplaintMapper.selectCount(countryQueryWrapper); |
|
|
|
Long countryMail = dataPetitionComplaintMapper.selectCount(countryQueryWrapper); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 公安部信访
|
|
|
|
// 公安部信访
|
|
|
|
QueryWrapper<DataPetitionComplaint> policeQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DataPetitionComplaint> policeQueryWrapper = new QueryWrapper<>(); |
|
|
|
policeQueryWrapper.eq("problem_sources_code", 22); |
|
|
|
policeQueryWrapper.eq("problem_sources_code", 22); |
|
|
|
@ -93,13 +90,31 @@ public class DataMailService extends ServiceImpl<DataPetitionComplaintMapper, Da |
|
|
|
String departId = re.getDepartId(); |
|
|
|
String departId = re.getDepartId(); |
|
|
|
Long countryTotal = dataPetitionComplaintMapper.selectMailBySourceCode(beginTime, endTime, GJXFPT.getValue(), departId); |
|
|
|
Long countryTotal = dataPetitionComplaintMapper.selectMailBySourceCode(beginTime, endTime, GJXFPT.getValue(), departId); |
|
|
|
Long policeTotal = dataPetitionComplaintMapper.selectMailBySourceCode(beginTime, endTime, GABXF.getValue(), departId); |
|
|
|
Long policeTotal = dataPetitionComplaintMapper.selectMailBySourceCode(beginTime, endTime, GABXF.getValue(), departId); |
|
|
|
Long commissionerTotal = getCommissionerTotal(beginTime, endTime, re); |
|
|
|
|
|
|
|
Long numTotal = dataPetition12337Mapper.select12337MailBySourceCode(beginTime, endTime, departId); |
|
|
|
// Long commissionerTotal = getCommissionerTotal(beginTime, endTime, re);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Long numTotal = dataPetition12337Mapper.select12337MailBySourceCode(beginTime, endTime, departId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 12337
|
|
|
|
|
|
|
|
Long numTotal = negativeService.count(new LambdaQueryWrapper<Negative>().between(Negative::getCrtTime, beginTime, endTime).eq(Negative::getHandleSecondDepartId,departId).eq(Negative::getProblemSourcesCode, ProblemSourcesEnum.XF12337.getValue())); |
|
|
|
|
|
|
|
// 局长信箱
|
|
|
|
|
|
|
|
Long commissionerTotal = negativeService.count(new LambdaQueryWrapper<Negative>().between(Negative::getCrtTime, beginTime, endTime).eq(Negative::getHandleSecondDepartId,departId).eq(Negative::getProblemSourcesCode, ProblemSourcesEnum.JZXX.getValue())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Long total = countryTotal + policeTotal + commissionerTotal + numTotal; |
|
|
|
Long total = countryTotal + policeTotal + commissionerTotal + numTotal; |
|
|
|
|
|
|
|
//国家信访
|
|
|
|
re.setCountryTotal(countryTotal.toString()); |
|
|
|
re.setCountryTotal(countryTotal.toString()); |
|
|
|
|
|
|
|
//公安部信访
|
|
|
|
re.setPoliceTotal(policeTotal.toString()); |
|
|
|
re.setPoliceTotal(policeTotal.toString()); |
|
|
|
|
|
|
|
//局长信箱
|
|
|
|
re.setCommissionerTotal(commissionerTotal.toString()); |
|
|
|
re.setCommissionerTotal(commissionerTotal.toString()); |
|
|
|
|
|
|
|
//12337信访
|
|
|
|
re.setNumTotal(numTotal.toString()); |
|
|
|
re.setNumTotal(numTotal.toString()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
re.setTotal(total.toString()); |
|
|
|
re.setTotal(total.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
return res; |
|
|
|
return res; |
|
|
|
@ -110,11 +125,16 @@ public class DataMailService extends ServiceImpl<DataPetitionComplaintMapper, Da |
|
|
|
// 1、查出这个VO里面的departID所对应的局长信箱的部门ID
|
|
|
|
// 1、查出这个VO里面的departID所对应的局长信箱的部门ID
|
|
|
|
String exDepartId = supExternalDepartMapper.getExIdByInId(re.getDepartId(), EX_SOURCE); |
|
|
|
String exDepartId = supExternalDepartMapper.getExIdByInId(re.getDepartId(), EX_SOURCE); |
|
|
|
// 2、按照时间来看看有多少条数据
|
|
|
|
// 2、按照时间来看看有多少条数据
|
|
|
|
QueryWrapper<Mail> mailWrapper = new QueryWrapper<>(); |
|
|
|
if(StrUtil.isNotEmpty(exDepartId)){ |
|
|
|
mailWrapper.between("create_time", beginTime, endTime); |
|
|
|
QueryWrapper<Mail> mailWrapper = new QueryWrapper<>(); |
|
|
|
mailWrapper.eq("mail_state", VALID_SIGN); |
|
|
|
mailWrapper.between("create_time", beginTime, endTime); |
|
|
|
mailWrapper.eq("second_dept_id", exDepartId); |
|
|
|
mailWrapper.eq("mail_state", VALID_SIGN); |
|
|
|
return mailMapper.selectCount(mailWrapper); |
|
|
|
mailWrapper.eq("second_dept_id", exDepartId); |
|
|
|
|
|
|
|
return mailMapper.selectCount(mailWrapper); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
return 0L; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|