select product_id , count(distinct storage_id) as storage_id_count,count(*) as storage_count,sum( if( order_status = 0, 1, 0)) as un_shelf_storage_count,max(skup) as skup from storage_deposit
where owner_uid = #{uid} and status=1 and del_status=0 limit #{start}, #{count}
where owner_uid = #{uid} and status=1 and del_status=0