|
@@ -135,6 +135,43 @@
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="findUnionProjectsOnHomeV2" resultType="platform.modules.government.entity.ProjectDeclaration">
|
|
|
|
|
+ select * from
|
|
|
|
|
+ (
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ a.id,a.project_name,a.create_time,a.project_source,a.apply_enddate,0 as isFilling,a.project_content AS
|
|
|
|
|
+ content
|
|
|
|
|
+ FROM project_declaration a
|
|
|
|
|
+ where
|
|
|
|
|
+ a.del_flag=0
|
|
|
|
|
+ and a.is_open = 1
|
|
|
|
|
+ and a.status = 1
|
|
|
|
|
+ UNION
|
|
|
|
|
+ select
|
|
|
|
|
+ b.id ,b.project_name,b.create_time,b.project_source,b.end_time AS apply_enddate,3 as isFilling,b.content
|
|
|
|
|
+ from project_intelligent_declaration b
|
|
|
|
|
+ where b.del_flag = 0 and b.status=1
|
|
|
|
|
+ union
|
|
|
|
|
+ select
|
|
|
|
|
+ c.id ,c.project_name,c.create_time,c.project_source,c.end_time AS apply_enddate,1 as isFilling,c.content
|
|
|
|
|
+ from project_provinces_declaration c
|
|
|
|
|
+ where c.del_flag = 0 and c.status=1
|
|
|
|
|
+ AND c.is_public = 1
|
|
|
|
|
+ ) temp
|
|
|
|
|
+ where 1=1
|
|
|
|
|
+ <if test="request.type != null and request.type != ''">
|
|
|
|
|
+ and temp.project_source = #{request.type}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="request.startTime !='' and request.startTime !=null ">
|
|
|
|
|
+ and temp.create_time <![CDATA[>=]]> #{request.startTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="request.endTime !='' and request.endTime !=null ">
|
|
|
|
|
+ and temp.create_time <![CDATA[<=]]> #{request.endTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ order by temp.create_time desc
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
<select id="findProjectsOnHome" resultType="platform.modules.government.entity.ProjectDeclaration">
|
|
<select id="findProjectsOnHome" resultType="platform.modules.government.entity.ProjectDeclaration">
|
|
|
SELECT
|
|
SELECT
|
|
|
a.project_name,a.id,a.create_time,a.project_source,a.apply_enddate
|
|
a.project_name,a.id,a.create_time,a.project_source,a.apply_enddate
|