mitao
2024-04-19 b21c37b7899b17dede7773db3c799aab1063ae1c
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
package com.finance.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.finance.common.enums.AreaLevelEnum;
import com.finance.common.enums.DataScreenConfigEnum;
import com.finance.common.enums.SubTypeEnum;
import com.finance.system.domain.TbDataScreenScore;
import com.finance.system.vo.DataScreenScoreVO;
import com.finance.system.vo.RiskMapVO;
import com.finance.system.vo.RiskRankingVO;
import java.util.List;
import org.apache.ibatis.annotations.Param;
 
/**
 * <p>
 * 大屏得分表 Mapper 接口
 * </p>
 *
 * @author mitao
 * @since 2024-04-15
 */
public interface TbDataScreenScoreMapper extends BaseMapper<TbDataScreenScore> {
 
    List<RiskMapVO> queryScore4Map(@Param("nowQuarter") String nowQuarter,
            @Param("dataScreenConfigId") Long dataScreenConfigId);
 
    List<RiskRankingVO> queryRiskRanking(@Param("dataScreenConfigId") Long dataScreenConfigId,
            @Param("nowQuarter") String nowQuarter,
            @Param("areaTypeEnum") AreaLevelEnum areaLevelEnum);
 
    List<TbDataScreenScore> selectRiskByQuarter(@Param("nowQuarter") String nowQuarter,
            @Param("dataScreenConfigId") Long dataScreenConfigId,
            @Param("areaCode") String areaCode);
 
    List<DataScreenScoreVO> queryScoreByAreaAndYear(@Param("areaCode") String areaCode,
            @Param("dataScreenConfigId") Long dataScreenConfigId,
            @Param("yearType") Integer yearType);
 
    List<DataScreenScoreVO> selectIndicators(@Param("areaCode") String areaCode,
            @Param("nowQuarter") String nowQuarter,
            @Param("dataScreenConfigEnum") DataScreenConfigEnum dataScreenConfigEnum,
            @Param("yearType") Integer yearType);
 
    Integer getRankByScore(@Param("score") Double score,
            @Param("subType") SubTypeEnum subType, @Param("areaCode") String areaCode,
            @Param("nowQuarter") String nowQuarter,
            @Param("dataScreenConfigEnum") DataScreenConfigEnum dataScreenConfigEnum);
}