zxl
11 小时以前 fa90edeeb9396b8a8031f7fb14cc30c4386cc1db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package com.ycl.controller;
 
 
import com.ycl.common.base.Result;
import com.ycl.domain.form.ProjectProgressStatisticsForm;
import com.ycl.service.IndexHomeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * nongtou-project-java
 * 新首页控制层
 * @author : zxl
 * @date : 2025-11-26 15:55
 **/
 
@RestController
@RequiredArgsConstructor
@RequestMapping("/index")
public class IndexHomeController {
    private final IndexHomeService indexHomeService;
 
    /**
     * 首页统计项目状态
     * @return
     */
    @GetMapping("/codingCount")
    Result projectCodingStatusCount(){
        return indexHomeService.projectCodingStatusCount();
    }
 
    /**
     * 项目阶段状态统计
     * @return
     */
    @GetMapping("/stageCount")
    Result projectStageCount(){
        return indexHomeService.projectStageCount();
    }
 
    /**
     * 项目进度统计
     * @return
     */
    Result projectTaskStatus(ProjectProgressStatisticsForm form){
        return indexHomeService.projectTaskStatus(form);
    }
 
    /**
     * 项目资金状态
     * @return
     */
    @GetMapping("/fundingStatus")
    Result projectFundingStatus(){
        return indexHomeService.projectFundingStatus();
    }
 
    /**
     * 项目推进卡点
     * @return
     */
    Result projectAdvanceCheckPoint(){
        return indexHomeService.projectAdvanceCheckPoint();
    }
}