| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?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.ProjectFillingDeclarationDao">
- <select id="findPageInfo" resultType="platform.modules.government.entity.ProjectFillingDeclaration">
- SELECT * FROM project_filling_declaration d
- LEFT 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 d.project_type = #{projectType}
- </if>
- <if test="projectSource != null and projectSource != '' ">
- and d.project_source = #{projectSource}
- </if>
- order by d.create_time desc
- </select>
- <update id="updateForbiddenStateBatch" parameterType="java.lang.String">
- update project_filling_declaration
- <set>
- <if test="project.is_forbidden != null and project.is_forbidden != '' ">
- is_forbidden = #{project.is_forbidden},
- </if>
- </set>
- WHERE
- 1=1
- <if test="idList !=null and idList.size > 0 ">
- and id in
- <foreach collection="idList" open="(" close=")" separator="," item="id">
- #{id}
- </foreach>
- </if>
- </update>
- <select id="selectById" resultType="platform.modules.government.entity.ProjectFillingDeclaration">
- select * from project_filling_declaration where id = #{id}
- </select>
-
-
- <select id="findFillingPageInfo" resultType="platform.modules.government.entity.ProjectFillingDeclaration">
- SELECT * FROM project_filling_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 and d.is_forbidden = 1
- <if test="projectName != null and projectName != '' ">
- and d.project_name LIKE CONCAT ('%',#{projectName},'%')
- </if>
- <if test="projectType != null and projectType != '' ">
- and d.project_type = #{projectType}
- </if>
- <if test="projectSource != null and projectSource != '' ">
- and d.project_source = #{projectSource}
- </if>
- order by d.create_time desc
- </select>
- <select id="findAll" resultType="platform.modules.government.entity.ProjectFillingDeclaration">
- SELECT
- p.*
- FROM
- project_filling_declaration p
- inner join project_service_type t on p.project_service_type = t.id and t.del_flag = 0
- WHERE p.status = 1
- AND p.del_flag = 0
- <if test="searchCondition.begin_date != null and searchCondition.begin_date != ''">
- AND p.release_date <![CDATA[>=]]> #{searchCondition.begin_date}
- </if>
- <if test="searchCondition.end_date != null and searchCondition.end_date != ''">
- AND p.release_date <![CDATA[<=]]> #{searchCondition.end_date}
- </if>
- </select>
- </mapper>
|