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: 党建-报到单位表数据库访问层
*
* projectName 成都呐喊信息技术有限公司-智慧社区项目
*
* description: 党建-报到单位表数据库访问层
*
* @author lyq
* @date 2022-02-16 16:22:18
*/
@Mapper
public interface ComPbCheckUnitMapper extends BaseMapper {
/**
* 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 queryAllByLimit(@Param("dto") PageComPbCheckUnitDto comPbCheckUnit, Page page);
/**
* description queryByPage 查询列表
*
* @param comPbCheckUnit 请求参数
* @return 列表数据
* @author lyq
* @date 2022-02-16 16:22:18
*/
List 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 communityIds, @Param("belongTo") String belongTo,
@Param("choice") String choice, @Param("unitIds") Long[] unitIds,
@Param("yearTime") String yearTime);
/**
* 报到单位统计
* @param commonDto
* @param page
* @return
*/
IPage unitStatistics(@Param("commonDto") PagePbCheckUnitCommonDto commonDto, @Param("page") Page page);
/**
* 报到党员统计-顶部数据
* @param communityIds
* @param belongTo
* @param choice
* @param checkUnitId
* @return
*/
PbCheckUnitStatisticsVo pbStatisticsTop(@Param("communityIds") List 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 pbStatisticsBelong(@Param("commonDto") PagePbCheckUnitCommonDto commonDto, @Param("page") Page page);
/**
* 报到党员统计-按单位统计
* @param commonDto
* @param page
* @return
*/
IPage pbStatisticsUnit(@Param("commonDto") PagePbCheckUnitCommonDto commonDto, @Param("page") Page page);
Integer organSumIntegral(@Param("communityIds") List communityIds,@Param("yearTime") String yearTime);
Integer pbOrganSumIntegral(@Param("communityIds") List communityIds,@Param("yearTime") String yearTime);
/**
* 查询单位管理员
*
* @param phone
* @return
*/
Integer selectOrgAdmin(@Param("phone") String phone);
}