| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?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.ProjectMattersDeclarationDao">
- <select id="findPageInfo" resultType="platform.modules.government.entity.ProjectMattersDeclaration">
- SELECT * FROM project_matters_declaration d
- INNER JOIN project_service_type t ON t.id = d.project_service_type and t.del_flag = 0
- 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.ProjectMattersDeclaration">
- select * from project_matters_declaration where id = #{id}
- </select>
- <select id="findProvincesPageInfo" resultType="platform.modules.government.entity.ProjectMattersDeclaration">
- SELECT * FROM project_matters_declaration d
- INNER JOIN project_service_type t ON t.id = d.project_service_type AND t.del_flag = 0
- 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>
- <select id="selectByType" resultType="platform.modules.government.entity.ProjectMattersDeclaration">
- select * from project_matters_declaration where status = '1' and project_service_type = #{type}
- <if test="id != null and id != '' ">
- and id != #{id}
- </if>
- </select>
- <select id="findByProjectServerTypeId" resultType="platform.modules.government.entity.ProjectMattersDeclaration">
- select * from project_matters_declaration WHERE project_service_type=#{id};
- </select>
- </mapper>
|