|
@@ -556,6 +556,60 @@ END) as projectScale*/
|
|
<if test="endDate !=null">
|
|
<if test="endDate !=null">
|
|
AND a.create_date < #{endDate}
|
|
AND a.create_date < #{endDate}
|
|
</if>
|
|
</if>
|
|
|
|
+ <!-- 质量复核审核时间 -->
|
|
|
|
+ <if test="reportBeginDate !=null">
|
|
|
|
+ AND prd.audit_pass_date >= #{reportBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportEndDate !=null">
|
|
|
|
+ AND prd.audit_pass_date <= #{reportEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportBeginDate !=null or reportEndDate !=null">
|
|
|
|
+ AND prd.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 报告签发审核时间 -->
|
|
|
|
+ <if test="reportTwoBeginDate !=null">
|
|
|
|
+ AND prdt.audit_pass_date >= #{reportTwoBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportTwoEndDate !=null">
|
|
|
|
+ AND prdt.audit_pass_date <= #{reportTwoEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportTwoBeginDate !=null or reportTwoEndDate !=null">
|
|
|
|
+ AND prdt.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 电子归档审核时间 -->
|
|
|
|
+ <if test="reportRecordBeginDate !=null">
|
|
|
|
+ AND prr.accomplish_date >= #{reportRecordBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportRecordEndDate !=null">
|
|
|
|
+ AND prr.accomplish_date <= #{reportRecordEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportRecordBeginDate !=null or reportRecordEndDate !=null">
|
|
|
|
+ AND prr.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 纸质归档审核时间 -->
|
|
|
|
+ <if test="paperRecordBeginDate !=null">
|
|
|
|
+ and (pfp.audit_pass_date >= #{paperRecordBeginDate}
|
|
|
|
+ or ppf.audit_pass_date >= #{paperRecordBeginDate})
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paperRecordEndDate !=null">
|
|
|
|
+ and (pfp.audit_pass_date <= #{paperRecordEndDate}
|
|
|
|
+ or ppf.audit_pass_date <= #{paperRecordEndDate})
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paperRecordBeginDate !=null or paperRecordBeginDate !=null">
|
|
|
|
+ AND (ppf.status in (5,7) or pfp.status in (5,7))
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 上报审核时间 -->
|
|
|
|
+ <if test="reportedBeginDate !=null">
|
|
|
|
+ AND rprr.accomplish_date >= #{reportedBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportedEndDate !=null">
|
|
|
|
+ AND rprr.accomplish_date <= #{reportedEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportedBeginDate !=null or reportedEndDate !=null">
|
|
|
|
+ AND a.reported_state in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+
|
|
|
|
+
|
|
<if test="attachmentProjectSort !=null and attachmentProjectSort != ''">
|
|
<if test="attachmentProjectSort !=null and attachmentProjectSort != ''">
|
|
AND a.attachment_project_sort = #{attachmentProjectSort}
|
|
AND a.attachment_project_sort = #{attachmentProjectSort}
|
|
</if>
|
|
</if>
|
|
@@ -956,6 +1010,60 @@ END) as projectScale*/
|
|
<if test="endDate !=null">
|
|
<if test="endDate !=null">
|
|
AND a.create_date < #{endDate}
|
|
AND a.create_date < #{endDate}
|
|
</if>
|
|
</if>
|
|
|
|
+ <!-- 质量复核审核时间 -->
|
|
|
|
+ <if test="reportBeginDate !=null">
|
|
|
|
+ AND prd.audit_pass_date >= #{reportBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportEndDate !=null">
|
|
|
|
+ AND prd.audit_pass_date <= #{reportEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportBeginDate !=null or reportEndDate !=null">
|
|
|
|
+ AND prd.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 报告签发审核时间 -->
|
|
|
|
+ <if test="reportTwoBeginDate !=null">
|
|
|
|
+ AND prdt.audit_pass_date >= #{reportTwoBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportTwoEndDate !=null">
|
|
|
|
+ AND prdt.audit_pass_date <= #{reportTwoEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportTwoBeginDate !=null or reportTwoEndDate !=null">
|
|
|
|
+ AND prdt.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 电子归档审核时间 -->
|
|
|
|
+ <if test="reportRecordBeginDate !=null">
|
|
|
|
+ AND prr.accomplish_date >= #{reportRecordBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportRecordEndDate !=null">
|
|
|
|
+ AND prr.accomplish_date <= #{reportRecordEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportRecordBeginDate !=null or reportRecordEndDate !=null">
|
|
|
|
+ AND prr.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 纸质归档审核时间 -->
|
|
|
|
+ <if test="paperRecordBeginDate !=null">
|
|
|
|
+ and (pfp.audit_pass_date >= #{paperRecordBeginDate}
|
|
|
|
+ or ppf.audit_pass_date >= #{paperRecordBeginDate})
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paperRecordEndDate !=null">
|
|
|
|
+ and (pfp.audit_pass_date <= #{paperRecordEndDate}
|
|
|
|
+ or ppf.audit_pass_date <= #{paperRecordEndDate})
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paperRecordBeginDate !=null or paperRecordBeginDate !=null">
|
|
|
|
+ AND (ppf.status in (5,7) or pfp.status in (5,7))
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 上报审核时间 -->
|
|
|
|
+ <if test="reportedBeginDate !=null">
|
|
|
|
+ AND rprr.accomplish_date >= #{reportedBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportedEndDate !=null">
|
|
|
|
+ AND rprr.accomplish_date <= #{reportedEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportedBeginDate !=null or reportedEndDate !=null">
|
|
|
|
+ AND a.reported_state in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+
|
|
|
|
+
|
|
<if test="attachmentProjectSort !=null and attachmentProjectSort != ''">
|
|
<if test="attachmentProjectSort !=null and attachmentProjectSort != ''">
|
|
AND a.attachment_project_sort = #{attachmentProjectSort}
|
|
AND a.attachment_project_sort = #{attachmentProjectSort}
|
|
</if>
|
|
</if>
|
|
@@ -1217,9 +1325,9 @@ END) as projectScale*/
|
|
left join case_base cb on a.id = cb.project_id
|
|
left join case_base cb on a.id = cb.project_id
|
|
/*LEFT JOIN project_flingbatch_relation pfp on pfp.project_id=a.id*/
|
|
/*LEFT JOIN project_flingbatch_relation pfp on pfp.project_id=a.id*/
|
|
left join
|
|
left join
|
|
- (select id,status,project_id,filing_batch from
|
|
|
|
|
|
+ (select id,status,project_id,filing_batch,audit_pass_date from
|
|
(
|
|
(
|
|
- select id,create_date,status,project_id,filing_batch
|
|
|
|
|
|
+ select id,create_date,status,project_id,filing_batch,audit_pass_date
|
|
from project_flingbatch_relation order by create_date desc
|
|
from project_flingbatch_relation order by create_date desc
|
|
)z
|
|
)z
|
|
group by z.project_id desc
|
|
group by z.project_id desc
|
|
@@ -1296,6 +1404,60 @@ END) as projectScale*/
|
|
<if test="endDate !=null">
|
|
<if test="endDate !=null">
|
|
AND a.create_date < #{endDate}
|
|
AND a.create_date < #{endDate}
|
|
</if>
|
|
</if>
|
|
|
|
+
|
|
|
|
+ <!-- 质量复核审核时间 -->
|
|
|
|
+ <if test="reportBeginDate !=null">
|
|
|
|
+ AND prd.audit_pass_date >= #{reportBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportEndDate !=null">
|
|
|
|
+ AND prd.audit_pass_date < #{reportEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportBeginDate !=null or reportEndDate !=null">
|
|
|
|
+ AND prd.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 报告签发审核时间 -->
|
|
|
|
+ <if test="reportTwoBeginDate !=null">
|
|
|
|
+ AND prdt.audit_pass_date >= #{reportTwoBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportTwoEndDate !=null">
|
|
|
|
+ AND prdt.audit_pass_date < #{reportTwoEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportTwoBeginDate !=null or reportTwoEndDate !=null">
|
|
|
|
+ AND prdt.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 电子归档审核时间 -->
|
|
|
|
+ <if test="reportRecordBeginDate !=null">
|
|
|
|
+ AND prr.accomplish_date >= #{reportRecordBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportRecordEndDate !=null">
|
|
|
|
+ AND prr.accomplish_date < #{reportRecordEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportRecordBeginDate !=null or reportRecordEndDate !=null">
|
|
|
|
+ AND prr.status in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 纸质归档审核时间 -->
|
|
|
|
+ <if test="paperRecordBeginDate !=null">
|
|
|
|
+ and (pfp.audit_pass_date >= #{paperRecordBeginDate}
|
|
|
|
+ or ppf.audit_pass_date >= #{paperRecordBeginDate})
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paperRecordEndDate !=null">
|
|
|
|
+ and (pfp.audit_pass_date <= #{paperRecordEndDate}
|
|
|
|
+ or ppf.audit_pass_date <= #{paperRecordEndDate})
|
|
|
|
+ </if>
|
|
|
|
+ <if test="paperRecordBeginDate !=null or paperRecordBeginDate !=null">
|
|
|
|
+ AND (ppf.status in (5,7) or pfp.status in (5,7))
|
|
|
|
+ </if>
|
|
|
|
+ <!-- 上报审核时间 -->
|
|
|
|
+ <if test="reportedBeginDate !=null">
|
|
|
|
+ AND rprr.accomplish_date >= #{reportedBeginDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportedEndDate !=null">
|
|
|
|
+ AND rprr.accomplish_date < #{reportedEndDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reportedBeginDate !=null or reportedEndDate !=null">
|
|
|
|
+ AND a.reported_state in (5,7)
|
|
|
|
+ </if>
|
|
|
|
+
|
|
<if test="attachmentProjectSort !=null and attachmentProjectSort != ''">
|
|
<if test="attachmentProjectSort !=null and attachmentProjectSort != ''">
|
|
AND a.attachment_project_sort = #{attachmentProjectSort}
|
|
AND a.attachment_project_sort = #{attachmentProjectSort}
|
|
</if>
|
|
</if>
|