|
|
@@ -2,6 +2,7 @@ package com.ningdatech.pmapi.workbench.manage; |
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.ningdatech.basic.model.PageVo; |
|
|
|
import com.ningdatech.pmapi.common.helper.UserInfoHelper; |
|
|
|
import com.ningdatech.pmapi.projectdeclared.manage.DeclaredProjectManage; |
|
|
|
import com.ningdatech.pmapi.projectdeclared.manage.DefaultDeclaredProjectManage; |
|
|
|
import com.ningdatech.pmapi.projectdeclared.model.po.DeclaredProjectStatisticsPO; |
|
|
@@ -43,6 +44,8 @@ public class WorkbenchManage { |
|
|
|
|
|
|
|
private final NoticeManage noticeManage; |
|
|
|
|
|
|
|
private final UserInfoHelper userInfoHelper; |
|
|
|
|
|
|
|
public WorkbenchVO getWorkbenchData(Integer year){ |
|
|
|
UserInfoDetails userInfo = LoginUserUtil.loginUserDetail(); |
|
|
|
WorkbenchVO res = new WorkbenchVO(); |
|
|
@@ -57,7 +60,10 @@ public class WorkbenchManage { |
|
|
|
res.setTodoCerter(statisticsVO); |
|
|
|
|
|
|
|
//2.项目统计数据 |
|
|
|
res.setOrgDeclared(WorkbenchConverter.convert(defaultDeclaredProjectManage.declaredProjectStatistics(year))); |
|
|
|
res.setOrgDeclared(WorkbenchConverter.convert(defaultDeclaredProjectManage.declaredProjectOrgStatistics(year))); |
|
|
|
if(userInfoHelper.isAdmin(userInfo.getUserId())){ |
|
|
|
res.setRegionDeclared(WorkbenchConverter.convert(defaultDeclaredProjectManage.declaredProjectRegionStatistics(year))); |
|
|
|
} |
|
|
|
ProjectListReq projectListReq = new ProjectListReq(); |
|
|
|
projectListReq.setPageNumber(1); |
|
|
|
projectListReq.setPageSize(5); |
|
|
|