| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="platform.modules.government.dao.ProjectIntelligentDeclarationDao">
- <select id="findPageInfo" resultType="platform.modules.government.entity.ProjectIntelligentDeclaration">
- SELECT * FROM project_intelligent_declaration d
- LEFT JOIN project_service_type t ON t.id = d.project_service_type
- WHERE 1=1
- AND d.del_flag = 0
- <if test="projectName != null and projectName != '' ">
- AND d.project_name LIKE CONCAT ('%',#{projectName},'%')
- </if>
- <if test="projectType != null and projectType != '' ">
- AND t.service_type_name LIKE CONCAT ('%',#{projectType},'%')
- </if>
- <if test="projectSource != null and projectSource != '' ">
- AND d.project_source = #{projectSource}
- </if>
- ORDER BY d.create_time DESC
- </select>
- <select id="selectById" resultType="platform.modules.government.entity.ProjectIntelligentDeclaration">
- select * from project_intelligent_declaration where id = #{id}
- </select>
- <select id="findFillingPageInfo" resultType="platform.modules.government.entity.ProjectIntelligentDeclaration">
- SELECT * FROM project_intelligent_declaration d
- LEFT JOIN project_service_type t ON t.id = d.project_service_type
- where d.del_flag = 0 and d.status = 1
- <if test="projectName != null and projectName != '' ">
- AND d.project_name LIKE CONCAT ('%',#{projectName},'%')
- </if>
- <if test="projectType != null and projectType != '' ">
- AND t.service_type_name LIKE CONCAT ('%',#{projectType},'%')
- </if>
- <if test="projectSource != null and projectSource != '' ">
- AND d.project_source = #{projectSource}
- </if>
- ORDER BY d.create_time DESC
- </select>
- </mapper>
|