|
@ -104,4 +104,22 @@ |
|
|
<update id="updateSubTableToDel" parameterType="map"> |
|
|
<update id="updateSubTableToDel" parameterType="map"> |
|
|
update ${subTalbeName} set del_flag='1' where IC_RESI_USER=#{icResiUserId} |
|
|
update ${subTalbeName} set del_flag='1' where IC_RESI_USER=#{icResiUserId} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<select id="dynamicQuery" parameterType="map" resultType="map"> |
|
|
|
|
|
select |
|
|
|
|
|
${resultTableName}.* |
|
|
|
|
|
FROM |
|
|
|
|
|
ic_resi_user |
|
|
|
|
|
<if test="null != subTables and subTables.size() > 0"> |
|
|
|
|
|
<foreach item="subTableName" collection="subTables" open="" separator="" close=""> |
|
|
|
|
|
${subTableName} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<where> |
|
|
|
|
|
<include refid="listWhere"></include> |
|
|
|
|
|
</where> |
|
|
|
|
|
group by IC_RESI_USER.id |
|
|
|
|
|
order by ic_resi_user.CREATED_TIME desc |
|
|
|
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |