瀏覽代碼

驾驶舱专家统计数据

master
niohe·erbao 1 年之前
父節點
當前提交
6e50f6054c
共有 6 個文件被更改,包括 75 次插入13 次删除
  1. +12
    -8
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/controller/DashboardController.java
  2. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardExpertManage.java
  3. +4
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java
  4. +24
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/basic/StarExpertBO.java
  5. +19
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/po/QueryYearPO.java
  6. +14
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/vo/ExpertDashboardSummaryVO.java

+ 12
- 8
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/controller/DashboardController.java 查看文件

@@ -3,6 +3,7 @@ package com.ningdatech.pmapi.dashboard.controller;
import com.ningdatech.log.annotation.WebLog;
import com.ningdatech.pmapi.dashboard.manage.DashboardExpertManage;
import com.ningdatech.pmapi.dashboard.manage.DashboardProjectManage;
import com.ningdatech.pmapi.dashboard.model.po.QueryYearPO;
import com.ningdatech.pmapi.dashboard.model.vo.DashboardInvestmentSummaryVO;
import com.ningdatech.pmapi.dashboard.model.vo.DashboardProjectCntSummaryVO;
import com.ningdatech.pmapi.dashboard.model.vo.DashboardProjectSummaryVO;
@@ -12,9 +13,12 @@ import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
* @author liuxinxin
* @date 2023/8/2 上午10:36
@@ -33,29 +37,29 @@ public class DashboardController {
@PostMapping("/expert-summary")
@ApiOperation("专家驾驶舱统计数据")
@WebLog("专家驾驶舱统计数据")
public ExpertDashboardSummaryVO getExpertDashboardSummary() {
return dashboardExpertManage.getExpertDashboardSummary();
public ExpertDashboardSummaryVO getExpertDashboardSummary(@Valid @RequestBody QueryYearPO queryYearPO) {
return dashboardExpertManage.getExpertDashboardSummary(queryYearPO);
}

@PostMapping("project-summary")
@ApiOperation("驾驶舱项目总览")
@WebLog("驾驶舱项目总览")
public DashboardProjectSummaryVO getProjectSummary() {
return dashboardProjectManage.getProjectSummary();
public DashboardProjectSummaryVO getProjectSummary(@Valid @RequestBody QueryYearPO queryYearPO) {
return dashboardProjectManage.getProjectSummary(queryYearPO);
}

@PostMapping("project-cnt-summary")
@ApiOperation("驾驶舱项目数量")
@WebLog("驾驶舱项目数量")
public DashboardProjectCntSummaryVO getProjectCntSummary() {
return dashboardProjectManage.getProjectCntSummary();
public DashboardProjectCntSummaryVO getProjectCntSummary(@Valid @RequestBody QueryYearPO queryYearPO) {
return dashboardProjectManage.getProjectCntSummary(queryYearPO);
}

@PostMapping("investment-summary")
@ApiOperation("驾驶舱投资金额")
@WebLog("驾驶舱投资金额")
public DashboardInvestmentSummaryVO getInvestmentSummary() {
return dashboardProjectManage.getInvestmentSummary();
public DashboardInvestmentSummaryVO getInvestmentSummary(@Valid @RequestBody QueryYearPO queryYearPO) {
return dashboardProjectManage.getInvestmentSummary(queryYearPO);
}




+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardExpertManage.java 查看文件

@@ -1,5 +1,6 @@
package com.ningdatech.pmapi.dashboard.manage;

import com.ningdatech.pmapi.dashboard.model.po.QueryYearPO;
import com.ningdatech.pmapi.dashboard.model.vo.ExpertDashboardSummaryVO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
@@ -14,7 +15,7 @@ import org.springframework.stereotype.Component;
public class DashboardExpertManage {


public ExpertDashboardSummaryVO getExpertDashboardSummary() {
public ExpertDashboardSummaryVO getExpertDashboardSummary(QueryYearPO queryYearPO) {
return null;
}



+ 4
- 3
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java 查看文件

@@ -1,5 +1,6 @@
package com.ningdatech.pmapi.dashboard.manage;

import com.ningdatech.pmapi.dashboard.model.po.QueryYearPO;
import com.ningdatech.pmapi.dashboard.model.vo.DashboardInvestmentSummaryVO;
import com.ningdatech.pmapi.dashboard.model.vo.DashboardProjectCntSummaryVO;
import com.ningdatech.pmapi.dashboard.model.vo.DashboardProjectSummaryVO;
@@ -15,16 +16,16 @@ import org.springframework.stereotype.Component;
@RequiredArgsConstructor
public class DashboardProjectManage {

public DashboardInvestmentSummaryVO getInvestmentSummary() {
public DashboardInvestmentSummaryVO getInvestmentSummary(QueryYearPO queryYearPO) {
return null;
}


public DashboardProjectCntSummaryVO getProjectCntSummary() {
public DashboardProjectCntSummaryVO getProjectCntSummary(QueryYearPO queryYearPO) {
return null;
}

public DashboardProjectSummaryVO getProjectSummary() {
public DashboardProjectSummaryVO getProjectSummary(QueryYearPO queryYearPO) {
return null;
}
}

+ 24
- 0
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/basic/StarExpertBO.java 查看文件

@@ -0,0 +1,24 @@
package com.ningdatech.pmapi.dashboard.model.basic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
* @author liuxinxin
* @date 2023/8/2 下午3:57
*/

@Data
@ApiModel("明星专家")
public class StarExpertBO {

@ApiModelProperty("专家姓名")
private String expertName;

@ApiModelProperty("专家id")
private Long expertId;

@ApiModelProperty("履职平均分")
private Double averagePerformanceScore;
}

+ 19
- 0
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/po/QueryYearPO.java 查看文件

@@ -0,0 +1,19 @@
package com.ningdatech.pmapi.dashboard.model.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
* @author liuxinxin
* @date 2023/8/2 下午3:51
*/

@Data
@ApiModel("查询年份")
public class QueryYearPO {

@ApiModelProperty("查询年份")
private Integer year;

}

+ 14
- 1
pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/vo/ExpertDashboardSummaryVO.java 查看文件

@@ -1,8 +1,13 @@
package com.ningdatech.pmapi.dashboard.model.vo;

import com.ningdatech.pmapi.dashboard.model.basic.AnalysisChart;
import com.ningdatech.pmapi.dashboard.model.basic.StarExpertBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
* @author liuxinxin
* @date 2023/8/2 下午3:07
@@ -16,12 +21,20 @@ public class ExpertDashboardSummaryVO {
* 1、各区域专家总数
* 2、学历分布
* 3、职称级别分布
*
* <p>
* 4、明星专家
* 5、评审次数
* 6、各类型评审次数
*/

@ApiModelProperty("明星专家列表")
private List<StarExpertBO> starExpertList;

@ApiModelProperty("评审次数")
private Integer meetingCnt;

@ApiModelProperty("图表列表 各区域专家总数,学历分布,职称级别分布,各类型评审次数")
List<AnalysisChart> analysisChartList;


}


Loading…
取消
儲存