<?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="com.api.butlerApp.dao.jurisdiction.ButlerPackageCollectionDao">

    <select id="list" parameterType="java.lang.Integer" resultType="com.api.vo.operationManagement.VoPackageCollection">
        select * from sys_package_collection where status = #{collectionStatus} order by create_date desc
    </select>
    <select id="findById" parameterType="java.lang.Integer" resultType="com.api.vo.operationManagement.VoFBIPackageCollection">
        select * from sys_package_collection where id = #{packageCollectionId}
    </select>
    <select id="findResidentIdByTel" parameterType="java.lang.String" resultType="java.lang.Integer">
        select id from user_resident where tel = #{addresseeTel}
    </select>
</mapper>