diff --git a/src/main/resources/mapper/BasePlaceInfoMapper.xml b/src/main/resources/mapper/BasePlaceInfoMapper.xml index 93f9b9b..78241f5 100644 --- a/src/main/resources/mapper/BasePlaceInfoMapper.xml +++ b/src/main/resources/mapper/BasePlaceInfoMapper.xml @@ -75,7 +75,6 @@ - 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