java110
2021-06-16 bd59c19c6fccfc8d0bf3804c0d0c712454bd7d42
java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml
@@ -368,4 +368,19 @@
    </select>
    <select id="queryOwnerParkingSpaceCount" parameterType="Map" resultType="Map">
        select count(DISTINCT t.ps_id) count
        from owner_car t
        where
         t.ps_id != '-1'
        <if test="statusCd !=null and statusCd != ''">
            and t.status_cd= #{statusCd}
        </if>
        <if test="ownerId !=null and ownerId != ''">
            and t.owner_id= #{ownerId}
        </if>
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}
        </if>
    </select>
</mapper>