1234567891011121314151617181920212223242526272829 |
- <?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.yc.education.mapper.DownloadMapper" >
- <resultMap id="BaseResultMap" type="com.yc.education.model.Download" >
- <!--
- WARNING - @mbggenerated
- -->
- <id column="id" property="id" jdbcType="BIGINT" />
- <id column="sort" property="sort" jdbcType="INTEGER" />
- <result column="name" property="name" jdbcType="VARCHAR" />
- <result column="title" property="title" jdbcType="VARCHAR" />
- <result column="sketch" property="sketch" jdbcType="VARCHAR" />
- <result column="covermap" property="covermap" jdbcType="VARCHAR" />
- <result column="releasetime" property="releasetime" jdbcType="VARCHAR" />
- <result column="address" property="address" jdbcType="VARCHAR" />
- <result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
- <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
- </resultMap>
- <!-- 后台下载管理根据文件名称模糊查询 -->
- <select id="listDownload" resultMap="BaseResultMap">
- select * from download
- <where>
- <if test="name != null and name != '' ">
- and name like concat('%',#{name},'%')
- </if>
- </where>
- order by createtime desc
- </select>
- </mapper>
|