InitializeOwnerServiceDaoImplMapper.xml 978 Bytes
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="initializeOwnerServiceDaoImpl">

    <!-- 初始化数据 add by wuxw 2018-07-03 -->
    <delete id="deleteBuildingOwner" parameterType="Map">
        delete from building_owner where 1=1
            and community_id = #{communityId}
    </delete>


    <delete id="deleteUser" parameterType="Map">
        delete from u_user where user_id in
        <foreach collection="userIds" item="item" open="(" close=")" separator=",">
            #{item}
        </foreach>
    </delete>
    <delete id="deleteOwnerAppUser" parameterType="Map">
        delete from owner_app_user where 1=1
        and community_id = #{communityId}
    </delete>
    <delete id="deleteOwnerAccount" parameterType="Map">
        delete from account where 1=1
        and part_id = #{communityId}
    </delete>

</mapper>