(select CONCAT_WS(',',instance_id,node_routing) instanceId FROM hygf_financing_auditing WHERE hygf_financing_auditing.peasant_household_id = hph.sequence_nbr ORDER BY rec_date desc limit 1) instanceId,
(select CONCAT_WS(',',instance_id,node_routing) instanceId FROM hygf_financing_auditing WHERE hygf_financing_auditing.peasant_household_id = hph.sequence_nbr ORDER BY rec_date desc limit 1) instanceId,
hygf_unit_info.head_name responsibleUserName,
hygf_unit_info.head_name responsibleUserName,
hygf_unit_info.head_phone responsibleUserPhone,
hygf_unit_info.head_phone responsibleUserPhone,
info.disbursement_money as disbursementMoney,
hph.regional_companies_code,
hph.regional_companies_code,
hph.developer_code
hph.developer_code
FROM
FROM
...
@@ -30,10 +31,7 @@
...
@@ -30,10 +31,7 @@
and hph.regional_companies_code = #{params.regionalCompaniesCode}
and hph.regional_companies_code = #{params.regionalCompaniesCode}
</if>
</if>
<iftest="params.type == 2 ">
<iftest="params.type == 2 ">
and info.status in ('待融资审核','审核通过','放款完成' ) and info.financing_companies_seq = #{params.financingCompaniesSeq}
and info.status in ('待融资审核','审核通过','放款完成','已放款','审核不通过' ) and info.financing_companies_seq = #{params.financingCompaniesSeq}
</if>
<iftest="params.type == 3 ">
and info.status in ('待整改','整改未完成')
</if>
</if>
<iftest="params.region != null and params.region !='' ">
<iftest="params.region != null and params.region !='' ">
and hph.project_address like concat ('%',#{params.region},'%')
and hph.project_address like concat ('%',#{params.region},'%')
...
@@ -42,8 +40,11 @@
...
@@ -42,8 +40,11 @@
ORDER BY
ORDER BY
info.rec_date DESC ,hph.sequence_nbr DESC ) as sta
info.rec_date DESC ,hph.sequence_nbr DESC ) as sta
<where>
<where>
<iftest="params.status != null and params.status != ''">
<iftest="params.status != null and params.status.size() > 0">