mitao
2024-08-30 6af08bad1986a72fa196afeb04c389c005fab673
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
package com.finance.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.finance.system.domain.TbScore;
import com.finance.system.query.CalculateDetailQuery;
import com.finance.system.query.DeptCalculateDetailQuery;
import com.finance.system.query.ScoreCalculateDetailQuery;
import com.finance.system.query.ScoreQuery;
import com.finance.system.vo.DeptCalculateDetailVO;
import com.finance.system.vo.RiskMapVO;
import com.finance.system.vo.RiskRankingVO;
import com.finance.system.vo.ScoreDetailVO;
import com.finance.system.vo.ScoreRankVO;
import com.finance.system.vo.ScoreVO;
import java.util.List;
import org.apache.ibatis.annotations.Param;
 
/**
 * <p>
 * 得分表 Mapper 接口
 * </p>
 *
 * @author mitao
 * @since 2024-03-13
 */
public interface TbScoreMapper extends BaseMapper<TbScore> {
 
    Page<ScoreVO> pageScore(@Param("query") ScoreQuery query, @Param("page") Page<ScoreVO> page);
 
    Page<ScoreDetailVO> scoreCalculateDetail(@Param("query") ScoreCalculateDetailQuery query,
            @Param("page") Page<ScoreDetailVO> page);
 
    List<ScoreRankVO> queryTotalScoreList();
 
    List<ScoreRankVO> queryRankAndScoreByAreaCode(@Param("areaCode") String areaCode,
            @Param("previousQuarter") String previousQuarter);
 
    List<DeptCalculateDetailVO> deptCalculateDetail(@Param("query") DeptCalculateDetailQuery query,
            @Param("nowQuarter") String nowQuarter);
 
    Page<ScoreDetailVO> fieldsDetail(@Param("query") CalculateDetailQuery query,
            @Param("page") Page<ScoreDetailVO> page, @Param("countyList") List<String> countyList);
 
    List<RiskMapVO> getCurrentScoreList(@Param("nowQuarter") String nowQuarter,
            @Param("areaCode") String areaCode);
 
    List<RiskRankingVO> queryRiskRanking(@Param("nowQuarter") String nowQuarter);
 
    List<RiskMapVO> getScoreByYearType(@Param("areaCode") String areaCode,
            @Param("quarter") String quarter);
 
    /**
     * 查询市的平均得分
     *
     * @param areaCode
     * @param previousQuarter
     * @return
     */
    Double getCityAverageScore(@Param("areaCode") String areaCode,
            @Param("previousQuarter") String previousQuarter);
 
    /**
     * 根据区划代码前四位查询区县得分列表
     *
     * @param areaCode
     * @param previousQuarter
     * @return
     */
    List<Double> getCountyScoreList(@Param("areaCode") String areaCode,
            @Param("previousQuarter") String previousQuarter);
}