郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.gkhy.safePlatform.riskCtrl.service;
 
import com.gkhy.safePlatform.commons.vo.ResultVO;
import com.gkhy.safePlatform.commons.vo.SearchResultVO;
import com.gkhy.safePlatform.riskCtrl.model.dto.req.CreateNewRespSpiReportReqDTO;
import com.gkhy.safePlatform.riskCtrl.model.dto.req.SearchRiskSpiReportConditionDTO;
import com.gkhy.safePlatform.riskCtrl.model.dto.resp.RiskSpiRepostRespDTO;
import com.gkhy.safePlatform.riskCtrl.model.dto.resp.SpiReportDetailDTO;
import com.gkhy.safePlatform.riskCtrl.model.dto.resp.SpiValueRespDTO;
 
import java.time.LocalDate;
import java.util.List;
 
public interface RiskSpiService {
 
    ResultVO saveOneRiskSpiReport(CreateNewRespSpiReportReqDTO dto);
 
    SearchResultVO<RiskSpiRepostRespDTO> getOneRiskSpiReportById(Long reportId);
 
    SearchResultVO<List<RiskSpiRepostRespDTO>> listRiskSpiReportListByConditions(SearchRiskSpiReportConditionDTO conditionDTO);
 
    /**
     * 查找部门月度SPI报表
     * @param depId
     * @param year
     * @param month
     * @return
     */
    SearchResultVO<RiskSpiRepostRespDTO> getMonthlySpiReport(Long depId,Integer year,Integer month);
 
    /**
     * 生成部门级SPI月报
     * @param depId
     * @param year
     * @param month
     * @return
     */
    ResultVO generateDepartmentSpiMonthReport(Long depId,Integer year,Integer month);
 
    /**
     * 定时调度生成部门SPI月度报表
     * @param depId
     * @return
     */
    ResultVO generateDepartmentSpiReportMonthlyScheduled(Long depId);
 
    /**
     * 定时调度生成企业SPI月度报表
     * @param eid
     * @return
     */
    ResultVO generateCompanySpiReportMonthlyScheduled(Long eid);
 
    /**
     * 计算SPI值
     * @param depId
     * @param year
     * @param month
     * @return
     */
    ResultVO<SpiValueRespDTO> calSpiValue(Long depId,Integer year,Integer month);
 
    /**
     * 计算最近12个月的SPI值
     * @param depId
     * @return
     */
    ResultVO<List<SpiValueRespDTO>> calSpiValueForLast12Months(Long depId);
 
    /**
     * 获取任意部门指定年月份的SPI报表
     * @param depId
     * @param year
     * @param month
     * @return
     */
    ResultVO<SpiValueRespDTO> getSpiReportByMonth(Long depId,Integer year,Integer month);
 
    /**
     * 新增一个部门的SPI详细月报记录
     * @param depId
     * @param year
     * @param month
     * @return
     */
    ResultVO addOneSpiReportDetail(Long depId,Integer year,Integer month);
 
    /**
     * 获取指定部门指定年月的SPI详细报表
     * @param eid
     * @param depId
     * @param year
     * @param month
     * @return
     */
    SearchResultVO<SpiReportDetailDTO> findSpiReportDetailForOne(Long eid,Long depId,Integer year,Integer month);
 
    /**
     * 获取指定部门指定日期区间内的SPI报表列表
     * @param eid
     * @param depId
     * @param startYear
     * @param startMonth
     * @param endYear
     * @param endMonth
     * @return
     */
    SearchResultVO<List<SpiReportDetailDTO>> listSpiReportDetailByCondition(Long eid, Long depId, Integer startYear,
                                                                            Integer startMonth,Integer endYear,
                                                                            Integer endMonth);
 
 
}