从未出现人员

develop
hanrenchun 6 months ago
parent 67b8ebcad1
commit eb869dd8c8

@ -75,7 +75,6 @@
<select id="selectVillageBaseInfoList" parameterType="com.ssf.mysqloracletest.domain.BasePlaceInfo" resultMap="BaseResultMap"> <select id="selectVillageBaseInfoList" parameterType="com.ssf.mysqloracletest.domain.BasePlaceInfo" resultMap="BaseResultMap">
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
<where> <where>
and isactive = '1'
<if test="id != null and id != ''">and id = #{id}</if> <if test="id != null and id != ''">and id = #{id}</if>
<if test="placeCode != null and placeCode != ''">and placeCode = #{placeCode}</if> <if test="placeCode != null and placeCode != ''">and placeCode = #{placeCode}</if>
<if test="placeName != null and placeName != ''">and placeName like concat('%', #{placeName}, <if test="placeName != null and placeName != ''">and placeName like concat('%', #{placeName},

@ -16,7 +16,7 @@
<!--查询从未出现的住户--> <!--查询从未出现的住户-->
<select id="goalPersonNeverAppear" parameterType="java.util.Map" resultType="java.lang.String" flushCache="true" <select id="goalPersonNeverAppear" parameterType="java.util.Map" resultType="java.lang.String" flushCache="true"
useCache="false"> useCache="false">
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
</select> </select>
<!--查询满足次数要求 Dossier--> <!--查询满足次数要求 Dossier-->
<select id="queryUserRecordsByCountDossier" parameterType="java.util.Map" resultType="java.lang.String" <select id="queryUserRecordsByCountDossier" parameterType="java.util.Map" resultType="java.lang.String"

@ -121,5 +121,9 @@
from model_notfound_user_info from model_notfound_user_info
</sql> </sql>
<update id="cleanModelNotfoundUserInfo">
truncate table model_notfound_user_info
</update>
</mapper> </mapper>

Loading…
Cancel
Save