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>

猜你喜欢

转载自terry0501.iteye.com/blog/2184837