VersionInfoMapper.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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.diagbot.mapper.VersionInfoMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.diagbot.entity.VersionInfo">
  6. <id column="id" property="id" />
  7. <result column="is_deleted" property="isDeleted" />
  8. <result column="gmt_create" property="gmtCreate" />
  9. <result column="gmt_modified" property="gmtModified" />
  10. <result column="creator" property="creator" />
  11. <result column="modifier" property="modifier" />
  12. <result column="name" property="name" />
  13. <result column="refresh_time" property="refreshTime" />
  14. <result column="status" property="status" />
  15. <result column="remark" property="remark" />
  16. </resultMap>
  17. <select id="getVersionInfoAPage" resultType="com.diagbot.dto.VersionWrapperDTO">
  18. SELECT
  19. id as id,
  20. gmt_create as gmtCreate,
  21. modifier as modifierid,
  22. name as name,
  23. refresh_time as
  24. refreshTime,
  25. status as status,
  26. remark as remark
  27. FROM icss_version_info u
  28. WHERE u.is_deleted = 'N' AND u.status = 1
  29. <if test="versionWrapperNameVO.name != null">
  30. AND u.name LIKE CONCAT('%', #{versionWrapperNameVO.name}, '%')
  31. </if>
  32. ORDER BY gmt_create DESC
  33. </select>
  34. </mapper>