WmProjectEvidenceMapper.xml 1.0 KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.qunzhixinxi.hnqz.admin.mapper.WmProjectEvidenceMapper" >
  4. <resultMap id="BaseResultMap" type="com.qunzhixinxi.hnqz.admin.entity.WmProjectEvidence" >
  5. <result column="id" property="id" jdbcType="INTEGER" />
  6. <result column="project_id" property="projectId" jdbcType="INTEGER" />
  7. <result column="filename" property="filename" jdbcType="VARCHAR" />
  8. <result column="url" property="url" jdbcType="VARCHAR" />
  9. <result column="type" property="type" jdbcType="VARCHAR" />
  10. <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
  11. <result column="create_user" property="createUser" jdbcType="INTEGER" />
  12. </resultMap>
  13. <!-- 根据项目id查询 -->
  14. <select id="listByProjectId" resultMap="BaseResultMap">
  15. SELECT
  16. *
  17. FROM
  18. wm_project_evidence
  19. WHERE
  20. project_id = #{projectId}
  21. ORDER BY
  22. create_time DESC
  23. </select>
  24. </mapper>