|
|
|
@ -30,10 +30,7 @@ import java.time.LocalDate; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.YearMonth; |
|
|
|
import java.time.YearMonth; |
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.*; |
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Optional; |
|
|
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
@Service |
|
|
|
@Service |
|
|
|
@ -273,11 +270,22 @@ public class IndicatorStatisticsServiceImpl implements IndicatorStatisticsServic |
|
|
|
IndicatorStatisticsDto.MyToDoListResponse response = new IndicatorStatisticsDto.MyToDoListResponse(); |
|
|
|
IndicatorStatisticsDto.MyToDoListResponse response = new IndicatorStatisticsDto.MyToDoListResponse(); |
|
|
|
//查询用户信息
|
|
|
|
//查询用户信息
|
|
|
|
UserInfo userInfo = userProvider.get(); |
|
|
|
UserInfo userInfo = userProvider.get(); |
|
|
|
//待办数量
|
|
|
|
//待填报
|
|
|
|
response.setTodoCount(iBiddingProjectSubscribeChildService.lambdaQuery() |
|
|
|
response.setToBeFilledCount(iBiddingProjectSubscribeChildService.lambdaQuery() |
|
|
|
.eq(BiddingProjectSubscribeChild::getUserId, userInfo.getUserId()) |
|
|
|
.eq(BiddingProjectSubscribeChild::getUserId, userInfo.getUserId()) |
|
|
|
.in(BiddingProjectSubscribeChild::getChildStatus, Arrays.asList(BiddingProjectEnum.ChildStatusEnum.PENDING_REVIEW.getCode(), BiddingProjectEnum.ChildStatusEnum.TO_BE_ARCHIVED.getCode(), BiddingProjectEnum.ChildStatusEnum.TO_BE_SUBMITTED.getCode(), BiddingProjectEnum.ChildStatusEnum.TO_BE_EDIT.getCode())) |
|
|
|
.in(BiddingProjectSubscribeChild::getChildStatus, Arrays.asList(BiddingProjectEnum.ChildStatusEnum.TO_BE_SUBMITTED.getCode(), BiddingProjectEnum.ChildStatusEnum.TO_BE_EDIT.getCode())) |
|
|
|
.count() + ""); |
|
|
|
.count() + ""); |
|
|
|
|
|
|
|
//待归档
|
|
|
|
|
|
|
|
response.setToBeArchivedApprovalCount(iBiddingProjectSubscribeChildService.lambdaQuery() |
|
|
|
|
|
|
|
.eq(BiddingProjectSubscribeChild::getUserId, userInfo.getUserId()) |
|
|
|
|
|
|
|
.in(BiddingProjectSubscribeChild::getChildStatus, Collections.singletonList(BiddingProjectEnum.ChildStatusEnum.TO_BE_ARCHIVED.getCode())) |
|
|
|
|
|
|
|
.count() + ""); |
|
|
|
|
|
|
|
//待审核
|
|
|
|
|
|
|
|
response.setToBeArchivedApprovalCount(iBiddingProjectSubscribeChildService.lambdaQuery() |
|
|
|
|
|
|
|
.eq(BiddingProjectSubscribeChild::getUserId, userInfo.getUserId()) |
|
|
|
|
|
|
|
.in(BiddingProjectSubscribeChild::getChildStatus, Collections.singletonList(BiddingProjectEnum.ChildStatusEnum.PENDING_REVIEW.getCode())) |
|
|
|
|
|
|
|
.count() + ""); |
|
|
|
|
|
|
|
|
|
|
|
//已办数量
|
|
|
|
//已办数量
|
|
|
|
response.setAlreadyCount(iBiddingProjectSubscribeChildService.lambdaQuery() |
|
|
|
response.setAlreadyCount(iBiddingProjectSubscribeChildService.lambdaQuery() |
|
|
|
.eq(BiddingProjectSubscribeChild::getUserId, userInfo.getUserId()) |
|
|
|
.eq(BiddingProjectSubscribeChild::getUserId, userInfo.getUserId()) |
|
|
|
|