|
|
|
@ -10,14 +10,12 @@ import com.biutag.supervision.constants.enums.ProcessingStatusEnum; |
|
|
|
import com.biutag.supervision.mapper.CountyStreetDeptMapper; |
|
|
|
import com.biutag.supervision.mapper.CountyStreetDeptMapper; |
|
|
|
import com.biutag.supervision.mapper.NegativeMapper; |
|
|
|
import com.biutag.supervision.mapper.NegativeMapper; |
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
import com.biutag.supervision.pojo.entity.CountyStreetDept; |
|
|
|
import com.biutag.supervision.pojo.entity.*; |
|
|
|
import com.biutag.supervision.pojo.entity.Negative; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.entity.NegativeBlame; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.entity.News; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.vo.*; |
|
|
|
import com.biutag.supervision.pojo.vo.*; |
|
|
|
import com.biutag.supervision.service.NegativeBlameService; |
|
|
|
import com.biutag.supervision.service.NegativeBlameService; |
|
|
|
import com.biutag.supervision.service.NewsService; |
|
|
|
import com.biutag.supervision.service.NewsService; |
|
|
|
import com.biutag.supervision.service.SubOneSupervisionNotifyService; |
|
|
|
import com.biutag.supervision.service.SubOneSupervisionNotifyService; |
|
|
|
|
|
|
|
import com.biutag.supervision.service.SuperviseReportService; |
|
|
|
import com.biutag.supervision.util.CompletableUtils.CompletableFutureUtil; |
|
|
|
import com.biutag.supervision.util.CompletableUtils.CompletableFutureUtil; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
@ -56,6 +54,7 @@ public class SubOneSupervisionNotifyController { |
|
|
|
private final NewsService newsService; |
|
|
|
private final NewsService newsService; |
|
|
|
private final NegativeBlameService negativeBlameService; |
|
|
|
private final NegativeBlameService negativeBlameService; |
|
|
|
private final CountyStreetDeptMapper countyStreetDeptMapper; |
|
|
|
private final CountyStreetDeptMapper countyStreetDeptMapper; |
|
|
|
|
|
|
|
private final SuperviseReportService superviseReportService; |
|
|
|
// region 左边
|
|
|
|
// region 左边
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -133,6 +132,14 @@ public class SubOneSupervisionNotifyController { |
|
|
|
overView.setCompletedNumber(negatives.stream().filter(item -> ProcessingStatusEnum.completed.name().equals(item.getProcessingStatus())).count()); |
|
|
|
overView.setCompletedNumber(negatives.stream().filter(item -> ProcessingStatusEnum.completed.name().equals(item.getProcessingStatus())).count()); |
|
|
|
//办理中
|
|
|
|
//办理中
|
|
|
|
overView.setProcessingNumber(negatives.size() - overView.getCompletedNumber()); |
|
|
|
overView.setProcessingNumber(negatives.size() - overView.getCompletedNumber()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//问题期数
|
|
|
|
|
|
|
|
Long problemQuarter = superviseReportService.count(new LambdaQueryWrapper<SuperviseReport>() |
|
|
|
|
|
|
|
.eq(SuperviseReport::getCrtDepartId,departId) |
|
|
|
|
|
|
|
.between(SuperviseReport::getCrtTime,beginTime,endTime)); |
|
|
|
|
|
|
|
overView.setProblemQuarter(problemQuarter); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 办结率
|
|
|
|
// 办结率
|
|
|
|
// overView.setCompletedRate(overView.getProblemNumber() == 0 ? 0: NumberUtil.roundHalfEven(NumberUtil.mul(NumberUtil.div(overView.getCompletedNumber(), overView.getProblemNumber()), 100), 0).doubleValue());
|
|
|
|
// overView.setCompletedRate(overView.getProblemNumber() == 0 ? 0: NumberUtil.roundHalfEven(NumberUtil.mul(NumberUtil.div(overView.getCompletedNumber(), overView.getProblemNumber()), 100), 0).doubleValue());
|
|
|
|
CompletableFuture.allOf( |
|
|
|
CompletableFuture.allOf( |
|
|
|
|