1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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.miaxis.file.mapper.FileInfoMapper">
- <resultMap type="FileInfo" id="FileInfoResult">
- <result property="fileId" column="file_id" />
- <result property="priceId" column="price_id" />
- <result property="engineId" column="engine_id" />
- <result property="fdjId" column="fdj_id" />
- <result property="controllerId" column="controller_id" />
- <result property="seq" column="seq" />
- <result property="fileUrl" column="file_url" />
- <result property="remark" column="remark" />
- <result property="filePath" column="file_path" />
- <result property="createTime" column="create_time" />
- <result property="updateTime" column="update_time" />
- </resultMap>
- <sql id="selectFileInfoVo">
- select * from file_info
- </sql>
- <select id="selectFileInfoList" parameterType="FileInfo" resultMap="FileInfoResult">
- <include refid="selectFileInfoVo"/>
- <where>
- <if test="priceId != null "> and price_id = #{priceId}</if>
- <if test="controllerId != null "> and controller_id = #{controllerId}</if>
- <if test="engineId != null "> and engine_id = #{engineId}</if>
- <if test="fdjId != null "> and fdj_id = #{fdjId}</if>
- <if test="seq != null "> and seq = #{seq}</if>
- <if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
- <if test="filePath != null and filePath != ''"> and file_path = #{filePath}</if>
- </where>
- </select>
- </mapper>
|