@ -30,10 +30,7 @@ import java.time.LocalDate;
@@ -30,10 +30,7 @@ import java.time.LocalDate;
import java.time.LocalDateTime ;
import java.time.YearMonth ;
import java.time.format.DateTimeFormatter ;
import java.util.ArrayList ;
import java.util.Arrays ;
import java.util.List ;
import java.util.Optional ;
import java.util.* ;
import java.util.stream.Collectors ;
@Service
@ -273,11 +270,22 @@ public class IndicatorStatisticsServiceImpl implements IndicatorStatisticsServic
@@ -273,11 +270,22 @@ public class IndicatorStatisticsServiceImpl implements IndicatorStatisticsServic
IndicatorStatisticsDto . MyToDoListResponse response = new IndicatorStatisticsDto . MyToDoListResponse ( ) ;
//查询用户信息
UserInfo userInfo = userProvider . get ( ) ;
//待办数量
response . setTodo Count ( iBiddingProjectSubscribeChildService . lambdaQuery ( )
//待填报
response . setToBeFille dCount ( iBiddingProjectSubscribeChildService . lambdaQuery ( )
. 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 ( ) + "" ) ;
//待归档
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 ( )
. eq ( BiddingProjectSubscribeChild : : getUserId , userInfo . getUserId ( ) )