/** * Copyright 2018 人人开源 https://www.renren.io *

* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. *

* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *

* You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package com.epmet.dao; import com.epmet.commons.mybatis.dao.BaseDao; import com.epmet.commons.tools.dto.result.OptionDataResultDTO; import com.epmet.dto.IcResiUserDTO; import com.epmet.dto.form.ResiUserQueryValueDTO; import com.epmet.dto.result.*; import com.epmet.entity.IcResiUserEntity; import org.apache.ibatis.annotations.MapKey; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; import java.util.Set; /** * 用户基础信息 * * @author generator generator@elink-cn.com * @since v1.0.0 2021-10-26 */ @Mapper public interface IcResiUserDao extends BaseDao { /** * @Author sun * @Description 居民信息各表新增数据 **/ void add(@Param("tableName") String tableName, @Param("map") Map map); /** * @Author sun * @Description 更新或新增居民信息各表数据 **/ void upTable(@Param("tableName") String tableName, @Param("id") String id, @Param("map") Map map); List> selectListResiMap(@Param("customerId") String customerId, @Param("formCode") String formCode, @Param("conditions") List conditions, @Param("resultColumns") List resultColumns, @Param("subTables") List subTables, @Param("currentStaffAgencyId")String currentStaffAgencyId, @Param("staffOrgPath") String staffOrgPath, @Param("resultTableName")String resultTableName); /** * 查询主表 * * @param icResiUserId * @return java.util.List> * @author yinzuomei * @date 2021/10/28 11:20 上午 */ List> selectListMapById(@Param("customerId") String customerId, @Param("icResiUserId")String icResiUserId); /** * 根据ic_resi_user.id去查询各个子表记录,动态传入表名 * * @param icResiUserId * @param subTableName * @return java.util.List> * @author yinzuomei * @date 2021/10/28 11:19 上午 */ List> selectSubTableRecords(@Param("customerId")String customerId, @Param("icResiUserId") String icResiUserId, @Param("subTableName") String subTableName); int updateToDel(String icResiUserId); int updateSubTableToDel(@Param("subTalbeName") String subTalbeName, @Param("icResiUserId")String icResiUserId); /** * 接口名称 * * @param customerId 客户id * @param resultTableName 获取哪个表的数据??? * @param conditions 前端传入的查询入参 * @return java.util.List> * @author yinzuomei * @date 2021/11/2 10:35 上午 */ List> dynamicQuery(@Param("customerId")String customerId, @Param("resultTableName")String resultTableName, @Param("conditions") List conditions, @Param("subTables") List subTables, @Param("currentStaffAgencyId")String currentStaffAgencyId, @Param("staffOrgPath")String staffOrgPath); /** * @Description 查询个人信息 * @param userId * @author zxc * @date 2021/11/3 10:28 上午 */ PersonDataResultDTO personData(@Param("userId") String userId); /** * @Description 根据名字,组织查询人 * @param name * @param agencyId * @author zxc * @date 2021/11/3 2:05 下午 */ List searchByName(@Param("name")String name, @Param("agencyId")String agencyId,@Param("pageNo")Integer pageNo); Set selectUserDemandCode(String icResiUserId); String selectCategoryNames(@Param("customerId") String customerId,@Param("codeSet") Set codeSet); @MapKey("HOME_ID") Map> getHomeUserCategoryCount(@Param("buildId") String buildId); /** * @Description 根据userId查询志愿者 * @param userId * @author zxc * @date 2021/11/5 5:44 下午 */ List selectVolunteerByUserId(@Param("userId")String userId); /** * @Description 查询人员类别 * @param columns * @author zxc * @date 2021/11/8 1:50 下午 */ Map selectPersonType(@Param("columns")List columns,@Param("customerId")String customerId, @Param("tableName")String tableName,@Param("userId")String userId); /** * @Author sun * @Description 查询居民信息 **/ IcResiUserDTO getResiUser(IcResiUserDTO dto); /** * * @param agencyId * @param gridId * @param name * @return */ List selectDemandUsers(@Param("agencyId") String agencyId, @Param("gridId")String gridId, @Param("name")String name); IcResiUserDTO selectIdByIdCard(@Param("customerId") String customerId, @Param("idNum")String idNum, @Param("icResiUserId")String icResiUserId); /** * 获取居民名称,家属名称和id * @param isResiUserId * @return */ IcResiUserBriefDTO selectIcResuUser(@Param("isResiUserId") String isResiUserId); /** * 除了本人以外,住在这个房子的人 * * @param currentIcResiUserId * @param homeId * @return */ List selectListFamilyMember(@Param("currentIcResiUserId") String currentIcResiUserId, @Param("homeId") String homeId); /** * 组织内党员年龄范围统计 * @Param orgType * @Param orgId * @Return {@link List< OptionDataResultDTO>} * @Author zhaoqifeng * @Date 2021/12/10 17:11 */ List getPartyMemberAgeStatistics(@Param("orgType") String orgType, @Param("orgId") String orgId); /** * 获取年龄范围内党员列表 * @Param orgType * @Param orgId * @Param min * @Param max * @Return {@link List< PartyMemberAgeResultDTO>} * @Author zhaoqifeng * @Date 2021/12/10 17:11 */ List getPartyMemberAgeList(@Param("orgType") String orgType, @Param("orgId") String orgId, @Param("code") String code); /** * 党员文化程度统计 * @Param orgType * @Param orgId * @Return {@link List< OptionDataResultDTO>} * @Author zhaoqifeng * @Date 2021/12/10 17:29 */ List getPartyMemberEducationStatistics(@Param("orgType") String orgType, @Param("orgId") String orgId); /** * 按教育程度获取党员列表 * @Param orgType * @Param orgId * @Param code * @Return {@link List< PartyMemberAgeResultDTO>} * @Author zhaoqifeng * @Date 2021/12/10 17:24 */ List getPartyMemberEducationList(@Param("orgType") String orgType, @Param("orgId") String orgId, @Param("code") String code); }