|
@@ -2605,16 +2605,16 @@
|
|
,prsi.id as "prsiId"
|
|
,prsi.id as "prsiId"
|
|
FROM statement_data_info sdi
|
|
FROM statement_data_info sdi
|
|
|
|
|
|
- <if test="statementCompanyComprehensiveInfo.field5 != null and statementCompanyComprehensiveInfo.field5 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field5 == '5'.toString() ">
|
|
LEFT JOIN rural_project_records a ON sdi.field1 = a.id
|
|
LEFT JOIN rural_project_records a ON sdi.field1 = a.id
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field6 != null and statementCompanyComprehensiveInfo.field6 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field6 == '5'.toString() ">
|
|
LEFT JOIN rural_project_records a ON sdi.field2 = a.id
|
|
LEFT JOIN rural_project_records a ON sdi.field2 = a.id
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field7 != null and statementCompanyComprehensiveInfo.field7 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field7 == '5'.toString() ">
|
|
LEFT JOIN rural_project_records a ON sdi.field3 = a.id
|
|
LEFT JOIN rural_project_records a ON sdi.field3 = a.id
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field8 != null and statementCompanyComprehensiveInfo.field8 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field8 == '5'.toString() ">
|
|
LEFT JOIN rural_project_records a ON sdi.field4 = a.id
|
|
LEFT JOIN rural_project_records a ON sdi.field4 = a.id
|
|
</if>
|
|
</if>
|
|
|
|
|
|
@@ -2648,12 +2648,12 @@
|
|
and sdi.big_date_type = #{statementCompanyComprehensiveInfo.bigDateType}
|
|
and sdi.big_date_type = #{statementCompanyComprehensiveInfo.bigDateType}
|
|
and sdi.small_date_type = #{statementCompanyComprehensiveInfo.smallDateType}
|
|
and sdi.small_date_type = #{statementCompanyComprehensiveInfo.smallDateType}
|
|
and sdi.office_id = #{statementCompanyComprehensiveInfo.officeId}
|
|
and sdi.office_id = #{statementCompanyComprehensiveInfo.officeId}
|
|
- <if test="statementCompanyComprehensiveInfo.field5 != null and statementCompanyComprehensiveInfo.field5 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field5 == '5'.toString() ">
|
|
and a.record_state = 6
|
|
and a.record_state = 6
|
|
and a.over_record_status = 1
|
|
and a.over_record_status = 1
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field6 != null and statementCompanyComprehensiveInfo.field6 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field6 == '5'.toString() ">
|
|
and a.record_state = 7
|
|
and a.record_state = 7
|
|
and a.over_record_status = 1
|
|
and a.over_record_status = 1
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
@@ -2662,12 +2662,12 @@
|
|
and prr.accomplish_date >= #{beginDate}
|
|
and prr.accomplish_date >= #{beginDate}
|
|
and prr.accomplish_date <= #{endDate}
|
|
and prr.accomplish_date <= #{endDate}
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field7 != null and statementCompanyComprehensiveInfo.field7 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field7 == '5'.toString() ">
|
|
and a.reported_state = 6
|
|
and a.reported_state = 6
|
|
and a.over_due_status = 1
|
|
and a.over_due_status = 1
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field8 != null and statementCompanyComprehensiveInfo.field8 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field8 == '5'.toString() ">
|
|
and a.reported_state = 7
|
|
and a.reported_state = 7
|
|
and a.over_due_status = 1
|
|
and a.over_due_status = 1
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
@@ -2793,16 +2793,16 @@
|
|
and big_date_type = #{bigDateType}
|
|
and big_date_type = #{bigDateType}
|
|
and small_date_type = #{smallDateType}
|
|
and small_date_type = #{smallDateType}
|
|
and office_id = #{officeId}
|
|
and office_id = #{officeId}
|
|
- <if test="field5 != null and field5 != ''">
|
|
|
|
|
|
+ <if test="field5 == '5'.toString() ">
|
|
and field1 IS NOT NULL and field1 != ''
|
|
and field1 IS NOT NULL and field1 != ''
|
|
</if>
|
|
</if>
|
|
- <if test="field6 != null and field6 != ''">
|
|
|
|
|
|
+ <if test="field6 == '5'.toString() ">
|
|
and field2 IS NOT NULL and field2 != ''
|
|
and field2 IS NOT NULL and field2 != ''
|
|
</if>
|
|
</if>
|
|
- <if test="field7 != null and field7 != ''">
|
|
|
|
|
|
+ <if test="field7 == '5'.toString() ">
|
|
and field3 IS NOT NULL and field3 != ''
|
|
and field3 IS NOT NULL and field3 != ''
|
|
</if>
|
|
</if>
|
|
- <if test="field8 != null and field8 != ''">
|
|
|
|
|
|
+ <if test="field8 == '5'.toString() ">
|
|
and field4 IS NOT NULL and field4 != ''
|
|
and field4 IS NOT NULL and field4 != ''
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
@@ -3258,16 +3258,16 @@
|
|
,prsi.id as "prsiId"
|
|
,prsi.id as "prsiId"
|
|
FROM statement_office_data_info sodi
|
|
FROM statement_office_data_info sodi
|
|
|
|
|
|
- <if test="statementCompanyComprehensiveInfo.field5 != null and statementCompanyComprehensiveInfo.field5 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field5 == '5'.toString() ">
|
|
LEFT JOIN rural_project_records a ON sodi.field1 = a.id
|
|
LEFT JOIN rural_project_records a ON sodi.field1 = a.id
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field6 != null and statementCompanyComprehensiveInfo.field6 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field6 == '5'.toString() ">
|
|
LEFT JOIN rural_project_records a ON sodi.field2 = a.id
|
|
LEFT JOIN rural_project_records a ON sodi.field2 = a.id
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field7 != null and statementCompanyComprehensiveInfo.field7 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field7 == '5'.toString() ">
|
|
LEFT JOIN rural_project_records a ON sodi.field3 = a.id
|
|
LEFT JOIN rural_project_records a ON sodi.field3 = a.id
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field8 != null and statementCompanyComprehensiveInfo.field8 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field8 == '5'.toString() ">
|
|
LEFT JOIN rural_project_records a ON sodi.field4 = a.id
|
|
LEFT JOIN rural_project_records a ON sodi.field4 = a.id
|
|
</if>
|
|
</if>
|
|
|
|
|
|
@@ -3302,12 +3302,12 @@
|
|
and sodi.small_date_type = #{statementCompanyComprehensiveInfo.smallDateType}
|
|
and sodi.small_date_type = #{statementCompanyComprehensiveInfo.smallDateType}
|
|
and sodi.office_id = #{statementCompanyComprehensiveInfo.officeId}
|
|
and sodi.office_id = #{statementCompanyComprehensiveInfo.officeId}
|
|
and a.create_by = #{statementCompanyComprehensiveInfo.userId}
|
|
and a.create_by = #{statementCompanyComprehensiveInfo.userId}
|
|
- <if test="statementCompanyComprehensiveInfo.field5 != null and statementCompanyComprehensiveInfo.field5 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field5 == '5'.toString() ">
|
|
and a.record_state = 6
|
|
and a.record_state = 6
|
|
and a.over_record_status = 1
|
|
and a.over_record_status = 1
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field6 != null and statementCompanyComprehensiveInfo.field6 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field6 == '5'.toString() ">
|
|
and a.record_state = 7
|
|
and a.record_state = 7
|
|
and a.over_record_status = 1
|
|
and a.over_record_status = 1
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
@@ -3316,12 +3316,12 @@
|
|
and rprr.accomplish_date >= #{beginDate}
|
|
and rprr.accomplish_date >= #{beginDate}
|
|
and rprr.accomplish_date <= #{endDate}
|
|
and rprr.accomplish_date <= #{endDate}
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field7 != null and statementCompanyComprehensiveInfo.field7 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field7 == '5'.toString() ">
|
|
and a.reported_state = 6
|
|
and a.reported_state = 6
|
|
and a.over_due_status = 1
|
|
and a.over_due_status = 1
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
</if>
|
|
</if>
|
|
- <if test="statementCompanyComprehensiveInfo.field8 != null and statementCompanyComprehensiveInfo.field8 != ''">
|
|
|
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field8 == '5'.toString() ">
|
|
and a.reported_state = 7
|
|
and a.reported_state = 7
|
|
and a.over_due_status = 1
|
|
and a.over_due_status = 1
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
@@ -3448,16 +3448,16 @@
|
|
and small_date_type = #{smallDateType}
|
|
and small_date_type = #{smallDateType}
|
|
and office_id = #{officeId}
|
|
and office_id = #{officeId}
|
|
and user_id = #{userId}
|
|
and user_id = #{userId}
|
|
- <if test="field5 != null and field5 != ''">
|
|
|
|
|
|
+ <if test="field5 == '5'.toString() ">
|
|
and field1 IS NOT NULL and field1 != ''
|
|
and field1 IS NOT NULL and field1 != ''
|
|
</if>
|
|
</if>
|
|
- <if test="field6 != null and field6 != ''">
|
|
|
|
|
|
+ <if test="field6 == '5'.toString() ">
|
|
and field2 IS NOT NULL and field2 != ''
|
|
and field2 IS NOT NULL and field2 != ''
|
|
</if>
|
|
</if>
|
|
- <if test="field7 != null and field7 != ''">
|
|
|
|
|
|
+ <if test="field7 == '5'.toString() ">
|
|
and field3 IS NOT NULL and field3 != ''
|
|
and field3 IS NOT NULL and field3 != ''
|
|
</if>
|
|
</if>
|
|
- <if test="field8 != null and field8 != ''">
|
|
|
|
|
|
+ <if test="field8 == '5'.toString() ">
|
|
and field4 IS NOT NULL and field4 != ''
|
|
and field4 IS NOT NULL and field4 != ''
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|