ProjectIntelligentDeclarationDao.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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="platform.modules.government.dao.ProjectIntelligentDeclarationDao">
  4. <select id="findPageInfo" resultType="platform.modules.government.entity.ProjectIntelligentDeclaration">
  5. SELECT * FROM project_intelligent_declaration d
  6. LEFT JOIN project_service_type t ON t.id = d.project_service_type
  7. WHERE 1=1
  8. AND d.del_flag = 0
  9. <if test="projectName != null and projectName != '' ">
  10. AND d.project_name LIKE CONCAT ('%',#{projectName},'%')
  11. </if>
  12. <if test="projectType != null and projectType != '' ">
  13. AND t.service_type_name LIKE CONCAT ('%',#{projectType},'%')
  14. </if>
  15. <if test="projectSource != null and projectSource != '' ">
  16. AND d.project_source = #{projectSource}
  17. </if>
  18. ORDER BY d.create_time DESC
  19. </select>
  20. <select id="selectById" resultType="platform.modules.government.entity.ProjectIntelligentDeclaration">
  21. select * from project_intelligent_declaration where id = #{id}
  22. </select>
  23. <select id="findFillingPageInfo" resultType="platform.modules.government.entity.ProjectIntelligentDeclaration">
  24. SELECT * FROM project_intelligent_declaration d
  25. LEFT JOIN project_service_type t ON t.id = d.project_service_type
  26. where d.del_flag = 0 and d.status = 1
  27. <if test="projectName != null and projectName != '' ">
  28. AND d.project_name LIKE CONCAT ('%',#{projectName},'%')
  29. </if>
  30. <if test="projectType != null and projectType != '' ">
  31. AND t.service_type_name LIKE CONCAT ('%',#{projectType},'%')
  32. </if>
  33. <if test="projectSource != null and projectSource != '' ">
  34. AND d.project_source = #{projectSource}
  35. </if>
  36. ORDER BY d.create_time DESC
  37. </select>
  38. </mapper>