<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
<mapper namespace="com.gk.hotwork.Mapper.VideoInfoMapper" >
|
<resultMap id="BaseResultMap" type="com.gk.hotwork.Domain.VideoInfo" >
|
<!-- -->
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="appkey" property="appkey" jdbcType="VARCHAR" />
|
<result column="secret" property="secret" jdbcType="VARCHAR" />
|
<result column="token" property="token" jdbcType="VARCHAR" />
|
<result column="expiretime" property="expiretime" jdbcType="TIMESTAMP" />
|
<result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
<!-- -->
|
id, appkey, secret, token, expiretime, updatetime
|
</sql>
|
<select id="selectByTime" resultType="com.gk.hotwork.Domain.VideoInfo">
|
select *
|
from video
|
where expiretime <= #{endtime}
|
</select>
|
</mapper>
|