Browse Source

大屏来信总数api更新修正

master
21819 2 years ago
parent
commit
f6dc7b08dd
  1. 2
      mailbox-lan/src/main/java/com/biutag/lan/controller/datascreen/DataScreenController.java
  2. 11
      mailbox-lan/src/main/java/com/biutag/lan/service/DataScreenService.java

2
mailbox-lan/src/main/java/com/biutag/lan/controller/datascreen/DataScreenController.java

@ -8,6 +8,7 @@ import com.biutag.lan.domain.vo.MailDetail;
import com.biutag.lan.service.DataScreenService; import com.biutag.lan.service.DataScreenService;
import com.biutag.lan.service.IDutyService; import com.biutag.lan.service.IDutyService;
import com.biutag.lan.service.MailService; import com.biutag.lan.service.MailService;
import com.biutag.lan.service.MailSourceService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import jakarta.annotation.Resource; import jakarta.annotation.Resource;
@ -23,6 +24,7 @@ import java.util.*;
public class DataScreenController { public class DataScreenController {
@Resource @Resource
DataScreenService dataScreenService; DataScreenService dataScreenService;
@Resource @Resource
IDutyService iDutyService; IDutyService iDutyService;
@Resource @Resource

11
mailbox-lan/src/main/java/com/biutag/lan/service/DataScreenService.java

@ -12,6 +12,8 @@ import com.biutag.lan.domain.MailFlow;
import com.biutag.lan.domain.vo.MailDetail; import com.biutag.lan.domain.vo.MailDetail;
import com.biutag.lan.flow.FlowNodeEnum; import com.biutag.lan.flow.FlowNodeEnum;
import com.biutag.lan.mapper.DataScreenMapper; import com.biutag.lan.mapper.DataScreenMapper;
import com.biutag.lan.mapper.MailMapper;
import com.biutag.lan.mapper.MailSourceMapper;
import com.biutag.util.DateUtils; import com.biutag.util.DateUtils;
import com.biutag.util.StringUtils; import com.biutag.util.StringUtils;
import com.biutag.util.TimeUtils; import com.biutag.util.TimeUtils;
@ -30,7 +32,7 @@ import java.util.concurrent.atomic.AtomicReference;
@Service @Service
public class DataScreenService extends ServiceImpl<DataScreenMapper, Mail> { public class DataScreenService extends ServiceImpl<DataScreenMapper, Mail> {
private final MailMapper mailMapper;
private final MailFlowService mailFlowService; private final MailFlowService mailFlowService;
public List<Map<String,Object>> mapData(String deptId){ public List<Map<String,Object>> mapData(String deptId){
@ -113,7 +115,9 @@ public class DataScreenService extends ServiceImpl<DataScreenMapper, Mail> {
Map<String, Object> mapCompleted = baseMapper.getAllCompletedRate(null);//获取长沙市局 办结率 Map<String, Object> mapCompleted = baseMapper.getAllCompletedRate(null);//获取长沙市局 办结率
Map<String, Object> mapResolved = baseMapper.getAllResolvedRate(null);//获取长沙市局 解决率 Map<String, Object> mapResolved = baseMapper.getAllResolvedRate(null);//获取长沙市局 解决率
Map<String, Object> mapSatisfied = baseMapper.getAllSatisfiedRate(null);//获取长沙市局 满意率 Map<String, Object> mapSatisfied = baseMapper.getAllSatisfiedRate(null);//获取长沙市局 满意率
Integer allSum = baseMapper.getAllMailCount(null); // Integer allSum = baseMapper.getAllMailCount(null);
Long allSum = mailMapper.selectCount(null);
Integer toDayCount = baseMapper.getTodayMailCount(null); Integer toDayCount = baseMapper.getTodayMailCount(null);
mapCompleted.putAll(mapResolved); mapCompleted.putAll(mapResolved);
mapCompleted.putAll(mapSatisfied); mapCompleted.putAll(mapSatisfied);
@ -125,7 +129,8 @@ public class DataScreenService extends ServiceImpl<DataScreenMapper, Mail> {
Map<String, Object> mapCompleted = baseMapper.getAllCompletedRate(deptId);//获取长沙市局 办结率 Map<String, Object> mapCompleted = baseMapper.getAllCompletedRate(deptId);//获取长沙市局 办结率
Map<String, Object> mapResolved = baseMapper.getAllResolvedRate(deptId);//获取长沙市局 解决率 Map<String, Object> mapResolved = baseMapper.getAllResolvedRate(deptId);//获取长沙市局 解决率
Map<String, Object> mapSatisfied = baseMapper.getAllSatisfiedRate(deptId);//获取长沙市局 满意率 Map<String, Object> mapSatisfied = baseMapper.getAllSatisfiedRate(deptId);//获取长沙市局 满意率
Integer allSum = baseMapper.getAllMailCount(deptId); // Integer allSum = baseMapper.getAllMailCount(deptId);
Long allSum = mailMapper.selectCount(new LambdaQueryWrapper<Mail>().eq(Mail::getSecondDeptId,deptId));
Integer toDayCount = baseMapper.getTodayMailCount(deptId); Integer toDayCount = baseMapper.getTodayMailCount(deptId);
mapCompleted.putAll(mapResolved); mapCompleted.putAll(mapResolved);
mapCompleted.putAll(mapSatisfied); mapCompleted.putAll(mapSatisfied);

Loading…
Cancel
Save