@ -27,6 +27,7 @@ import org.apache.ibatis.annotations.MapKey; 
			
		
	
		
			
				
					import  org.apache.ibatis.annotations.Mapper ;  
			
		
	
		
			
				
					import  org.apache.ibatis.annotations.Param ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					import  java.math.BigDecimal ;  
			
		
	
		
			
				
					import  java.util.List ;  
			
		
	
		
			
				
					import  java.util.Map ;  
			
		
	
		
			
				
					import  java.util.Set ;  
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -65,109 +66,111 @@ public interface IcResiUserDao extends BaseDao<IcResiUserEntity> { 
			
		
	
		
			
				
					     *  查询主表  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @param  icResiUserId  
			
		
	
		
			
				
					     *  @return    java . util . List < java . util . Map < java . lang . String , java . lang . Object > >  
			
		
	
		
			
				
					     *  @return  java . util . List < java . util . Map   <   java . lang . String ,   java . lang . Object > >  
			
		
	
		
			
				
					     *  @author  yinzuomei  
			
		
	
		
			
				
					     *  @date  2021 / 10 / 28  11 : 20  上午  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    List < Map < String ,  Object > >  selectListMapById ( @Param ( "customerId" )  String  customerId ,  
			
		
	
		
			
				
					                                                @Param ( "icResiUserId" ) String  icResiUserId ) ;  
			
		
	
		
			
				
					                                                @Param ( "icResiUserId" )   String  icResiUserId ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  根据ic_resi_user . id去查询各个子表记录 , 动态传入表名  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @param  icResiUserId  
			
		
	
		
			
				
					     *  @param  subTableName  
			
		
	
		
			
				
					     *  @return    java . util . List < java . util . Map < java . lang . String , java . lang . Object > >  
			
		
	
		
			
				
					     *  @return  java . util . List < java . util . Map   <   java . lang . String ,   java . lang . Object > >  
			
		
	
		
			
				
					     *  @author  yinzuomei  
			
		
	
		
			
				
					     *  @date  2021 / 10 / 28  11 : 19  上午  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    List < Map < String ,  Object > >  selectSubTableRecords ( @Param ( "customerId" ) String  customerId ,  
			
		
	
		
			
				
					    List < Map < String ,  Object > >  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 ) ;  
			
		
	
		
			
				
					    int  updateSubTableToDel ( @Param ( "subTalbeName" )  String  subTalbeName ,  @Param ( "icResiUserId" )   String  icResiUserId ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  接口名称  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @param  customerId  客户id  
			
		
	
		
			
				
					     *  @param  customerId        客户id  
			
		
	
		
			
				
					     *  @param  resultTableName  获取哪个表的数据 ? ? ?  
			
		
	
		
			
				
					     *  @param  conditions  前端传入的查询入参  
			
		
	
		
			
				
					     *  @return    java . util . List < java . util . Map < java . lang . String , java . lang . Object > >  
			
		
	
		
			
				
					     *  @param  conditions        前端传入的查询入参  
			
		
	
		
			
				
					     *  @return  java . util . List < java . util . Map   <   java . lang . String ,   java . lang . Object > >  
			
		
	
		
			
				
					     *  @author  yinzuomei  
			
		
	
		
			
				
					     *  @date  2021 / 11 / 2  10 : 35  上午  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    List < Map < String , Object > >  dynamicQuery ( @Param ( "customerId" ) String  customerId ,  
			
		
	
		
			
				
					                                          @Param ( "resultTableName" ) String  resultTableName ,  
			
		
	
		
			
				
					                                          @Param ( "conditions" )  List < ResiUserQueryValueDTO >  conditions ,  
			
		
	
		
			
				
					                                          @Param ( "subTables" )  List < String >  subTables ,  
			
		
	
		
			
				
					                                          @Param ( "currentStaffAgencyId" ) String  currentStaffAgencyId ,  
			
		
	
		
			
				
					                                          @Param ( "staffOrgPath" ) String  staffOrgPath ) ;  
			
		
	
		
			
				
					    List < Map < String ,   Object > >  dynamicQuery ( @Param ( "customerId" )   String  customerId ,  
			
		
	
		
			
				
					                                            @Param ( "resultTableName" )   String  resultTableName ,  
			
		
	
		
			
				
					                                            @Param ( "conditions" )  List < ResiUserQueryValueDTO >  conditions ,  
			
		
	
		
			
				
					                                            @Param ( "subTables" )  List < String >  subTables ,  
			
		
	
		
			
				
					                                            @Param ( "currentStaffAgencyId" )   String  currentStaffAgencyId ,  
			
		
	
		
			
				
					                                            @Param ( "staffOrgPath" )   String  staffOrgPath ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  @Description   查询个人信息  
			
		
	
		
			
				
					     *  @param  userId  
			
		
	
		
			
				
					     *  @Description  查询个人信息  
			
		
	
		
			
				
					     *  @author  zxc  
			
		
	
		
			
				
					     *  @date  2021 / 11 / 3  10 : 28  上午  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    PersonDataResultDTO  personData ( @Param ( "userId" )  String  userId ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  @Description   根据名字 , 组织查询人  
			
		
	
		
			
				
					     *  @param  name  
			
		
	
		
			
				
					     *  @param  agencyId  
			
		
	
		
			
				
					     *  @Description  根据名字 , 组织查询人  
			
		
	
		
			
				
					     *  @author  zxc  
			
		
	
		
			
				
					     *  @date  2021 / 11 / 3  2 : 05  下午  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    List < SearchByNameResultDTO >  searchByName ( @Param ( "name" ) String  name ,  @Param ( "agencyId" ) String  agencyId , @Param ( "pageNo" ) Integer  pageNo ) ;  
			
		
	
		
			
				
					    List < SearchByNameResultDTO >  searchByName ( @Param ( "name" )   String  name ,  @Param ( "agencyId" )   String  agencyId ,   @Param ( "pageNo" )   Integer  pageNo ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    Set < String >  selectUserDemandCode ( String  icResiUserId ) ;  
			
		
	
		
			
				
					    String  selectCategoryNames ( @Param ( "customerId" )  String  customerId , @Param ( "codeSet" )  Set < String >  codeSet ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    String  selectCategoryNames ( @Param ( "customerId" )  String  customerId ,  @Param ( "codeSet" )  Set < String >  codeSet ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    @MapKey ( "HOME_ID" )  
			
		
	
		
			
				
					    Map < String ,  Map < String ,  String > >  getHomeUserCategoryCount ( @Param ( "buildId" )  String  buildId ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  @Description   根据userId查询志愿者  
			
		
	
		
			
				
					     *  @param  userId  
			
		
	
		
			
				
					     *  @Description  根据userId查询志愿者  
			
		
	
		
			
				
					     *  @author  zxc  
			
		
	
		
			
				
					     *  @date  2021 / 11 / 5  5 : 44  下午  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    List < String >  selectVolunteerByUserId ( @Param ( "userId" ) String  userId ) ;  
			
		
	
		
			
				
					    List < String >  selectVolunteerByUserId ( @Param ( "userId" )   String  userId ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  @Description   查询人员类别  
			
		
	
		
			
				
					     *  @param  columns  
			
		
	
		
			
				
					     *  @Description  查询人员类别  
			
		
	
		
			
				
					     *  @author  zxc  
			
		
	
		
			
				
					     *  @date  2021 / 11 / 8  1 : 50  下午  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    Map < String , String >  selectPersonType ( @Param ( "columns" ) List < String >  columns , @Param ( "customerId" ) String  customerId ,  
			
		
	
		
			
				
					                                        @Param ( "tableName" ) String  tableName , @Param ( "userId" ) String  userId ) ;  
			
		
	
		
			
				
					    Map < String ,   String >  selectPersonType ( @Param ( "columns" )   List < String >  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 < DemandUserResDTO >  selectDemandUsers ( @Param ( "agencyId" )  String  agencyId ,  
			
		
	
		
			
				
					                                             @Param ( "gridId" ) String  gridId ,  
			
		
	
		
			
				
					                                             @Param ( "name" ) String  name ) ;  
			
		
	
		
			
				
					                                             @Param ( "gridId" )   String  gridId ,  
			
		
	
		
			
				
					                                             @Param ( "name" )   String  name ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    IcResiUserDTO    selectIdByIdCard ( @Param ( "customerId" )  String  customerId ,  
			
		
	
		
			
				
					                                     @Param ( "idNum" ) String  idNum ,  
			
		
	
		
			
				
					                                     @Param ( "icResiUserId" ) String  icResiUserId ) ;  
			
		
	
		
			
				
					    IcResiUserDTO  selectIdByIdCard ( @Param ( "customerId" )  String  customerId ,  
			
		
	
		
			
				
					                                   @Param ( "idNum" )   String  idNum ,  
			
		
	
		
			
				
					                                   @Param ( "icResiUserId" )   String  icResiUserId ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  获取居民名称 , 家属名称和id  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @param  isResiUserId  
			
		
	
		
			
				
					     *  @return  
			
		
	
		
			
				
					     * /  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -184,6 +187,7 @@ public interface IcResiUserDao extends BaseDao<IcResiUserEntity> { 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  组织内党员年龄范围统计  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @Param  orgType  
			
		
	
		
			
				
					     *  @Param  orgId  
			
		
	
		
			
				
					     *  @Return  { @link  List <  OptionDataResultDTO > }  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -194,6 +198,7 @@ public interface IcResiUserDao extends BaseDao<IcResiUserEntity> { 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  获取年龄范围内党员列表  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @Param  orgType  
			
		
	
		
			
				
					     *  @Param  orgId  
			
		
	
		
			
				
					     *  @Param  min  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -208,6 +213,7 @@ public interface IcResiUserDao extends BaseDao<IcResiUserEntity> { 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  党员文化程度统计  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @Param  orgType  
			
		
	
		
			
				
					     *  @Param  orgId  
			
		
	
		
			
				
					     *  @Return  { @link  List <  OptionDataResultDTO > }  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -218,6 +224,7 @@ public interface IcResiUserDao extends BaseDao<IcResiUserEntity> { 
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  按教育程度获取党员列表  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @Param  orgType  
			
		
	
		
			
				
					     *  @Param  orgId  
			
		
	
		
			
				
					     *  @Param  code  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -226,7 +233,7 @@ public interface IcResiUserDao extends BaseDao<IcResiUserEntity> { 
			
		
	
		
			
				
					     *  @Date  2021 / 12 / 10  17 : 24  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    List < PartyMemberEducationResultDTO >  getPartyMemberEducationList ( @Param ( "orgType" )  String  orgType ,  @Param ( "orgId" )  String  orgId ,  
			
		
	
		
			
				
					                                                        @Param ( "code" )  String  code ) ;  
			
		
	
		
			
				
					                                                                     @Param ( "code" )  String  code ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    List < VolunteerDistributionResultDTO . Distribution >  listIcResiInfosByUserIds ( @Param ( "userIds" )  List < String >  userIds ) ;  
			
		
	
		
			
				
					
 
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -239,4 +246,19 @@ public interface IcResiUserDao extends BaseDao<IcResiUserEntity> { 
			
		
	
		
			
				
					    List < String >  icUserCustomerIds ( ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    List < Map < String ,  String > >  getIcUserList ( @Param ( "customerId" )  String  customerId ) ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					    / * *  
			
		
	
		
			
				
					     *  desc :  获取数据分析列中的  各类居民数据  
			
		
	
		
			
				
					     *  
			
		
	
		
			
				
					     *  @param  customerId  
			
		
	
		
			
				
					     *  @param  tableName  
			
		
	
		
			
				
					     *  @param  columnList  
			
		
	
		
			
				
					     *  @param  id  非必填  leve有值时  必填  
			
		
	
		
			
				
					     *  @param  level  非必填  
			
		
	
		
			
				
					     *  @return  java . util . Map < java . lang . String , java . math . BigDecimal >  字段名 : 数量  
			
		
	
		
			
				
					     *  @author  LiuJanJun  
			
		
	
		
			
				
					     *  @date  2022 / 2 / 12  3 : 03  下午  
			
		
	
		
			
				
					     * /  
			
		
	
		
			
				
					    Map < String ,  BigDecimal >  getDataAnalyseCount ( @Param ( "customerId" )  String  customerId ,  @Param ( "tableName" )  String  tableName ,  
			
		
	
		
			
				
					                                                @Param ( "columnList" )  List < String >  columnList ,  @Param ( "id" )  String  id ,  @Param ( "level" )  String  level ) ;  
			
		
	
		
			
				
					}