mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
114
115
116
117
118
119
120
121
package com.panzhihua.service_dangjian.dao;
 
import com.panzhihua.service_dangjian.entity.ComPbCheckUnit;
import com.panzhihua.common.model.dtos.common.*;
import com.panzhihua.common.model.vos.common.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 
import java.util.List;
 
/**
 * title: 党建-报到单位表数据库访问层
 * <p>
 * projectName 成都呐喊信息技术有限公司-智慧社区项目
 * <p>
 * description: 党建-报到单位表数据库访问层
 *
 * @author lyq
 * @date 2022-02-16 16:22:18
 */
@Mapper
public interface ComPbCheckUnitMapper extends BaseMapper<ComPbCheckUnit> {
 
    /**
     * description  detailById  查询详情
     *
     * @param id 主键id
     * @return 详情数据
     * @author lyq
     * @date 2022-02-16 16:22:18
     */
    ComPbCheckUnitVo queryById(Long id);
 
    /**
     * description  queryAllByLimit  分页查询
     *
     * @param comPbCheckUnit 请求参数
     * @param page           分页参数
     * @return 分页查询列表数据
     * @author lyq
     * @date 2022-02-16 16:22:18
     */
    IPage<ComPbCheckUnitVo> queryAllByLimit(@Param("dto") PageComPbCheckUnitDto comPbCheckUnit, Page page);
 
    /**
     * description  queryByPage  查询列表
     *
     * @param comPbCheckUnit 请求参数
     * @return 列表数据
     * @author lyq
     * @date 2022-02-16 16:22:18
     */
    List<ComPbCheckUnitVo> queryAllByList(@Param("dto") PageComPbCheckUnitDto comPbCheckUnit);
 
    Long selectCommunityId(@Param("area") String area,@Param("town")String town,@Param("community")String community);
 
    /**
     * 报到单位统计-顶部数据
     * @param communityIds
     * @param belongTo
     * @param choice
     * @return
     */
    PbCheckUnitStatisticsVo unitStatisticsTop(@Param("communityIds") List<Long> communityIds, @Param("belongTo") String belongTo,
                                              @Param("choice") String choice, @Param("unitIds")  Long[] unitIds,
                                              @Param("yearTime") String yearTime);
 
    /**
     * 报到单位统计
     * @param commonDto
     * @param page
     * @return
     */
    IPage<PbCheckUnitStatisticsVo> unitStatistics(@Param("commonDto") PagePbCheckUnitCommonDto commonDto, @Param("page") Page page);
 
    /**
     * 报到党员统计-顶部数据
     * @param communityIds
     * @param belongTo
     * @param choice
     * @param checkUnitId
     * @return
     */
    PbCheckUnitStatisticsVo pbStatisticsTop(@Param("communityIds") List<Long> communityIds, @Param("belongTo") String belongTo, @Param("choice") String choice, @Param("checkUnitId") Long checkUnitId, @Param("unitIds")Long[] unitIds,@Param("yearTime") String yearTime);
 
    /**
     * 报到党员统计-按单位归属统计
     * @param commonDto
     * @param page
     * @return
     */
    IPage<PbCheckUnitStatisticsVo> pbStatisticsBelong(@Param("commonDto") PagePbCheckUnitCommonDto commonDto, @Param("page") Page page);
 
    /**
     * 报到党员统计-按单位统计
     * @param commonDto
     * @param page
     * @return
     */
    IPage<ComPbCheckUnitVo> pbStatisticsUnit(@Param("commonDto") PagePbCheckUnitCommonDto commonDto, @Param("page") Page page);
 
    Integer organSumIntegral(@Param("communityIds") List<Long> communityIds,@Param("yearTime") String yearTime);
 
    Integer pbOrganSumIntegral(@Param("communityIds") List<Long> communityIds,@Param("yearTime") String yearTime);
 
 
 
 
    /**
     * 查询单位管理员
     *
     * @param phone
     * @return
     */
    Integer selectOrgAdmin(@Param("phone") String phone);
 
 
}