|
@@ -1516,7 +1516,7 @@
|
|
|
and a.office_id in(select id from sys_office where id = #{officeIdd} or parent_ids like concat('%',#{officeIdd},'%'))
|
|
|
|
|
|
<choose>
|
|
|
- <when test="contractRecordState != null and contractRecordState != ''">
|
|
|
+ <when test="contractRecordState == '5'.toString() ">
|
|
|
and a.contract_record_state = 5
|
|
|
and a.over_due_status = 0
|
|
|
and wcr.accomplish_date >= #{beginDate}
|
|
@@ -1609,7 +1609,7 @@
|
|
|
and a.office_id in(select id from sys_office where id = #{officeIdd} or parent_ids like concat('%',#{officeIdd},'%'))
|
|
|
|
|
|
<choose>
|
|
|
- <when test="contractRecordState != null and contractRecordState != ''">
|
|
|
+ <when test="contractRecordState == '5'.toString() ">
|
|
|
and a.contract_record_state = 5
|
|
|
and a.over_due_status = 0
|
|
|
and wcr.accomplish_date >= #{beginDate}
|
|
@@ -1751,10 +1751,10 @@
|
|
|
a.describe_content AS "describeContent",
|
|
|
o.name as "createUserOfficeName"
|
|
|
FROM statement_data_info sdi
|
|
|
- <if test="statementCompanyComprehensiveInfo.field3 != null and statementCompanyComprehensiveInfo.field3 != ''">
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field3 == '5'.toString() ">
|
|
|
left join work_contract_info a on a.id = sdi.field1
|
|
|
</if>
|
|
|
- <if test="statementCompanyComprehensiveInfo.field4 != null and statementCompanyComprehensiveInfo.field4 != ''">
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field4 == '5'.toString() ">
|
|
|
left join work_contract_info a on a.id = sdi.field2
|
|
|
</if>
|
|
|
<include refid="workContractInfoJoins"/>
|
|
@@ -1769,11 +1769,11 @@
|
|
|
and a.office_id in(select id from sys_office where id = #{statementCompanyComprehensiveInfo.officeId} or parent_ids like concat('%',#{statementCompanyComprehensiveInfo.officeId},'%'))
|
|
|
and a.over_due_status = 1
|
|
|
|
|
|
- <if test="statementCompanyComprehensiveInfo.field3 != null and statementCompanyComprehensiveInfo.field3 != ''">
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field3 == '5'.toString() ">
|
|
|
and a.contract_record_state != 7
|
|
|
</if>
|
|
|
|
|
|
- <if test="statementCompanyComprehensiveInfo.field4 != null and statementCompanyComprehensiveInfo.field4 != ''">
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field4 == '5'.toString() ">
|
|
|
and a.contract_record_state = 7
|
|
|
and wcr.accomplish_date >= #{beginDate}
|
|
|
and wcr.accomplish_date <= #{endDate}
|
|
@@ -1858,10 +1858,10 @@
|
|
|
and big_date_type = #{bigDateType}
|
|
|
and small_date_type = #{smallDateType}
|
|
|
and office_id = #{officeId}
|
|
|
- <if test="field3 != null and field3 != ''">
|
|
|
+ <if test="field3 == '5'.toString() ">
|
|
|
and field1 IS NOT NULL and field1 != ''
|
|
|
</if>
|
|
|
- <if test="field4 != null and field4 != ''">
|
|
|
+ <if test="field4 == '5'.toString() ">
|
|
|
and field2 IS NOT NULL and field2 != ''
|
|
|
</if>
|
|
|
</where>
|
|
@@ -1946,7 +1946,7 @@
|
|
|
and a.create_by = #{statementCompanyComprehensiveInfo.userId}
|
|
|
|
|
|
<choose>
|
|
|
- <when test="contractRecordState != null and contractRecordState != ''">
|
|
|
+ <when test="contractRecordState == '5'.toString() ">
|
|
|
and a.contract_record_state = 5
|
|
|
and a.over_due_status = 0
|
|
|
and wcr.accomplish_date >= #{beginDate}
|
|
@@ -2040,7 +2040,7 @@
|
|
|
and a.create_by = #{statementCompanyComprehensiveInfo.userId}
|
|
|
|
|
|
<choose>
|
|
|
- <when test="contractRecordState != null and contractRecordState != ''">
|
|
|
+ <when test="contractRecordState == '5'.toString() ">
|
|
|
and a.contract_record_state = 5
|
|
|
and a.over_due_status = 0
|
|
|
and wcr.accomplish_date >= #{beginDate}
|
|
@@ -2182,10 +2182,10 @@
|
|
|
a.describe_content AS "describeContent",
|
|
|
o.name as "createUserOfficeName"
|
|
|
FROM statement_office_data_info sodi
|
|
|
- <if test="statementCompanyComprehensiveInfo.field3 != null and statementCompanyComprehensiveInfo.field3 != ''">
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field3 == '5'.toString() ">
|
|
|
left join work_contract_info a on a.id = sodi.field1
|
|
|
</if>
|
|
|
- <if test="statementCompanyComprehensiveInfo.field4 != null and statementCompanyComprehensiveInfo.field4 != ''">
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field4 == '5'.toString() ">
|
|
|
left join work_contract_info a on a.id = sodi.field2
|
|
|
</if>
|
|
|
<include refid="workContractInfoJoins"/>
|
|
@@ -2201,11 +2201,11 @@
|
|
|
and a.office_id in(select id from sys_office where id = #{officeIdd} or parent_ids like concat('%',#{officeIdd},'%'))
|
|
|
and a.over_due_status = 1
|
|
|
|
|
|
- <if test="statementCompanyComprehensiveInfo.field3 != null and statementCompanyComprehensiveInfo.field3 != ''">
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field3 == '5'.toString() ">
|
|
|
and a.contract_record_state != 7
|
|
|
</if>
|
|
|
|
|
|
- <if test="statementCompanyComprehensiveInfo.field4 != null and statementCompanyComprehensiveInfo.field4 != ''">
|
|
|
+ <if test="statementCompanyComprehensiveInfo.field4 == '5'.toString() ">
|
|
|
and a.contract_record_state = 7
|
|
|
and wcr.accomplish_date >= #{beginDate}
|
|
|
and wcr.accomplish_date <= #{endDate}
|
|
@@ -2291,10 +2291,10 @@
|
|
|
and small_date_type = #{smallDateType}
|
|
|
and office_id = #{officeId}
|
|
|
and user_id = #{userId}
|
|
|
- <if test="field3 != null and field3 != ''">
|
|
|
+ <if test="field3 == '5'.toString() ">
|
|
|
and field1 IS NOT NULL and field1 != ''
|
|
|
</if>
|
|
|
- <if test="field4 != null and field4 != ''">
|
|
|
+ <if test="field4 == '5'.toString() ">
|
|
|
and field2 IS NOT NULL and field2 != ''
|
|
|
</if>
|
|
|
</where>
|