mapper时间条件查询

  select
    
    from meet_room
    where
   = #{startTime,jdbcType=VARCHAR} and
     mr_open_time <= #{lastTime,jdbcType=VARCHAR} and mr_close_time >= #{lastTime,jdbcType=VARCHAR} and mr_count >= #{counts,jdbcType=INTEGER} and
     mr_id not in (select or_mr_id from order_record
    where
    (or_time < #{dateTime,jdbcType=TIMESTAMP }
    and or_use_time > #{dateTime,jdbcType=TIMESTAMP })
    or (or_time < #{dateUseTime,jdbcType=TIMESTAMP}
    and  or_use_time> #{dateUseTime,jdbcType=TIMESTAMP})
    )
    ]]>
    order by mr_count

你可能感兴趣的:(java,项目相关)