1. 程式人生 > >mybatis 中 兩個時間段之間的查詢

mybatis 中 兩個時間段之間的查詢

mybatis中兩個時間段之間的查詢

between and 沒有實現想要的功能換成此方法解決

select
        <include refid="Base_Column_List" />
        from SVIP
        where  DELETE_FLAG != 1 and SVIP_STATUS =#{record.svipStatus} and RESERVE1 = #{record.reserve1} and TIME_ADD <![CDATA[>=]]> #{record.reserve11} and TIME_ADD <![CDATA[<=]]>
#{record.reserve12}