|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
package com.unis.projectManagement.modular.analysisInfo.controller;
|
|
2
|
2
|
|
|
|
3
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
3
|
4
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
4
|
5
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
5
|
6
|
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
|
|
@@ -9,14 +10,18 @@ import com.unis.projectManagement.modular.analysisInfo.entity.AnalysisPageListPa
|
|
9
|
10
|
import com.unis.projectManagement.modular.analysisInfo.entity.AnalysisPageParam;
|
|
10
|
11
|
import com.unis.projectManagement.modular.analysisInfo.service.AnalysisService;
|
|
11
|
12
|
import com.unis.projectManagement.modular.pmApplication.entity.PmApplication;
|
|
|
13
|
+import com.unis.projectManagement.modular.projectInfoPlan.entity.ProjectInfoPlan;
|
|
|
14
|
+import com.unis.projectManagement.modular.projectInfoPlan.service.ProjectInfoPlanService;
|
|
12
|
15
|
import io.swagger.annotations.Api;
|
|
13
|
16
|
import io.swagger.annotations.ApiOperation;
|
|
14
|
17
|
import org.springframework.validation.annotation.Validated;
|
|
15
|
18
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
19
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
16
|
20
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
17
|
21
|
import org.springframework.web.bind.annotation.RestController;
|
|
18
|
22
|
|
|
19
|
23
|
import javax.annotation.Resource;
|
|
|
24
|
+import java.util.List;
|
|
20
|
25
|
|
|
21
|
26
|
/**
|
|
22
|
27
|
* @author qingsong.han
|
|
|
@@ -31,6 +36,8 @@ import javax.annotation.Resource;
|
|
31
|
36
|
public class AnalysisController {
|
|
32
|
37
|
@Resource
|
|
33
|
38
|
private AnalysisService analysisService;
|
|
|
39
|
+ @Resource
|
|
|
40
|
+ private ProjectInfoPlanService projectInfoPlanService;
|
|
34
|
41
|
|
|
35
|
42
|
@ApiOperationSupport(order = 1)
|
|
36
|
43
|
@ApiOperation("获取分页")
|
|
|
@@ -39,7 +46,16 @@ public class AnalysisController {
|
|
39
|
46
|
return CommonResult.data(analysisService.getPage(param));
|
|
40
|
47
|
}
|
|
41
|
48
|
|
|
42
|
|
- @ApiOperationSupport(order = 1)
|
|
|
49
|
+ @ApiOperationSupport(order = 2)
|
|
|
50
|
+ @ApiOperation("详情列表数据")
|
|
|
51
|
+ @GetMapping("/getDetailList/{pmApplicationId}")
|
|
|
52
|
+ public CommonResult<List<ProjectInfoPlan>> getDetailList(@PathVariable("pmApplicationId") String pmApplicationId) {
|
|
|
53
|
+ QueryWrapper<ProjectInfoPlan> wrapper = new QueryWrapper<>();
|
|
|
54
|
+ wrapper.eq("pm_application_id", pmApplicationId);
|
|
|
55
|
+ return CommonResult.data(projectInfoPlanService.list(wrapper));
|
|
|
56
|
+ }
|
|
|
57
|
+
|
|
|
58
|
+ @ApiOperationSupport(order = 3)
|
|
43
|
59
|
@ApiOperation("获取统计(项目类型,资金来源)")
|
|
44
|
60
|
@GetMapping("/getCount")
|
|
45
|
61
|
public CommonResult<AnalysisCountParam> getCount() {
|