select a.idcard as idcard from (select idcard from village_user_record where village_code=#{villageCode} and partition_field between #{startTime} and #{endTime})a inner join (select idcard from village_user_info where isactive='1' and village_code = #{villageCode})b on a.idcard=b.idcard
select distinct a.id_card from (select id_card from transit_user_record where place_code=#{placeCode} and partition_field between #{startTime} and #{endTime})a inner join (select id_card from base_user_info where place_code = #{placeCode})b on a.id_card=b.id_card