mybatis 时间查询

 <select id="queryLiveInfo" resultMap="BaseResultMap" parameterType="java.util.Map" >
    select
     id,liveId,liveListId,isTaped,ProgramListDate,startTime,endTime,title,length,sCover,cover,status,activityId,adapter,ext
    from Live_Program_Info
    where  liveId=( #{liveId,jdbcType=VARCHAR}) and <![CDATA[ unix_timestamp(startTime)  <= unix_timestamp(#{time,jdbcType=DATE})  ]]> and <![CDATA[ unix_timestamp(startTime)  <= unix_timestamp(#{time,jdbcType=DATE})  ]]>
  </select>

你可能感兴趣的:(mybatis)