ArchiveInspectionMapper.xml 1.1 KB

12345678910111213141516171819202122
  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="org.springblade.archive.mapper.ArchiveInspectionMapper">
  4. <!-- 这里可以定义各种SQL语句 -->
  5. <resultMap id="ResultMap" type="org.springblade.archive.entity.ArchiveInspection">
  6. <id column="id" property="id" />
  7. <result column="tenant_id" property="tenantId" />
  8. <result column="project_id" property="projectId" />
  9. <result column="opinion" property="opinion" />
  10. <result column="user_id" property="userId" />
  11. <result column="file_id" property="fileId" />
  12. <result column="archive_id" property="archiveId" />
  13. <result column="archive_name" property="archiveName" />
  14. <result column="source_type" property="sourceType" />
  15. </resultMap>
  16. <!-- 示例:查询所有记录 -->
  17. <select id="selectAll" resultType="org.springblade.archive.entity.ArchiveInspection">
  18. SELECT * FROM u_archive_inspection
  19. </select>
  20. </mapper>