FileInfoMapper.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.miaxis.file.mapper.FileInfoMapper">
  6. <resultMap type="FileInfo" id="FileInfoResult">
  7. <result property="fileId" column="file_id" />
  8. <result property="priceId" column="price_id" />
  9. <result property="engineId" column="engine_id" />
  10. <result property="fdjId" column="fdj_id" />
  11. <result property="controllerId" column="controller_id" />
  12. <result property="seq" column="seq" />
  13. <result property="fileUrl" column="file_url" />
  14. <result property="remark" column="remark" />
  15. <result property="filePath" column="file_path" />
  16. <result property="createTime" column="create_time" />
  17. <result property="updateTime" column="update_time" />
  18. </resultMap>
  19. <sql id="selectFileInfoVo">
  20. select * from file_info
  21. </sql>
  22. <select id="selectFileInfoList" parameterType="FileInfo" resultMap="FileInfoResult">
  23. <include refid="selectFileInfoVo"/>
  24. <where>
  25. <if test="priceId != null "> and price_id = #{priceId}</if>
  26. <if test="controllerId != null "> and controller_id = #{controllerId}</if>
  27. <if test="engineId != null "> and engine_id = #{engineId}</if>
  28. <if test="fdjId != null "> and fdj_id = #{fdjId}</if>
  29. <if test="seq != null "> and seq = #{seq}</if>
  30. <if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
  31. <if test="filePath != null and filePath != ''"> and file_path = #{filePath}</if>
  32. </where>
  33. </select>
  34. </mapper>