| | |
| | | "AND cmp.house_id is null " + |
| | | " </if> " + |
| | | "<if test='populationListDTO.communityId != null'>" + |
| | | "AND cmp.community_id = #{populationListDTO.communityId} " + |
| | | "AND cmp.act_id = #{populationListDTO.communityId} " + |
| | | " </if> " + |
| | | "<if test='populationListDTO.politicalOutlook != null'>" + |
| | | "AND cmp.political_outlook = #{populationListDTO.politicalOutlook} " + |
| | |
| | | @Select("select relation from com_mng_population_house_user where house_id = #{houseId} and popul_id = #{populationId}") |
| | | Integer getPopulationRelationByHouseId(@Param("houseId") Long houseId, @Param("populationId") Long populationId); |
| | | |
| | | @Select("<script>" + |
| | | " select count(id) from event_visiting_tasks as evt where visiter_id in " + |
| | | "<foreach collection='ids' item='id' index='index' open='(' close=')' separator=',' >" + |
| | | "#{id}" + |
| | | "</foreach>" + |
| | | " </script>") |
| | | Integer getPopulationVisitingCount(@Param("ids") List<Long> ids); |
| | | |
| | | } |