Commit b5c17502 by 王军业

45454134645168

1 parent 093cbf88
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
and and
county=#{county} county=#{county}
</if> </if>
<if test="guarantee_period !=null and guarantee_period !=0"> <if test="guarantee_period !=null ">
and and
guarantee_period=#{guarantee_period} guarantee_period=#{guarantee_period}
</if> </if>
...@@ -372,27 +372,27 @@ ...@@ -372,27 +372,27 @@
and and
#{start_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler} <![CDATA[<=]]> sign_date and sign_date <![CDATA[<=]]> #{end_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler} #{start_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler} <![CDATA[<=]]> sign_date and sign_date <![CDATA[<=]]> #{end_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler}
</if> </if>
<if test="amount_start_point !=null and amount_start_point !=0.00"> <if test="amount_start_point !=null ">
and and
contract_amount <![CDATA[>=]]> #{amount_start_point} contract_amount <![CDATA[>=]]> #{amount_start_point}
</if> </if>
<if test="amount_end_point !=null and amount_end_point !=0.00"> <if test="amount_end_point !=null ">
and and
contract_amount <![CDATA[<=]]> #{amount_end_point} contract_amount <![CDATA[<=]]> #{amount_end_point}
</if> </if>
<if test="overdays_start_point !=null and overdays_start_point !=0"> <if test="overdays_start_point !=null">
and and
<!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[>=]]> #{overdays_start_point}) <!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[>=]]> #{overdays_start_point})
</if> </if>
<if test="overdays_end_point !=null and overdays_end_point !=0"> <if test="overdays_end_point !=null ">
and and
<!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[<=]]> #{overdays_end_point}) <!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[<=]]> #{overdays_end_point})
</if> </if>
<if test="leave_amount_start_point !=null and leave_amount_start_point !=0.00"> <if test="leave_amount_start_point !=null ">
<!--应收款余额-->and <!--应收款余额-->and
contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[>=]]> #{leave_amount_start_point}) contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[>=]]> #{leave_amount_start_point})
</if> </if>
<if test="leave_amount_end_point !=null and leave_amount_end_point !=0.00"> <if test="leave_amount_end_point !=null ">
and and
contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[<=]]> #{leave_amount_end_point}) contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[<=]]> #{leave_amount_end_point})
</if> </if>
...@@ -458,7 +458,7 @@ ...@@ -458,7 +458,7 @@
and and
county=#{county} county=#{county}
</if> </if>
<if test="guarantee_period !=null and guarantee_period !=0"> <if test="guarantee_period !=null ">
and and
guarantee_period=#{guarantee_period} guarantee_period=#{guarantee_period}
</if> </if>
...@@ -505,37 +505,37 @@ ...@@ -505,37 +505,37 @@
<if test="end_date !=null"> <if test="end_date !=null">
and sign_date <![CDATA[<=]]> #{end_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler} and sign_date <![CDATA[<=]]> #{end_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler}
</if> </if>
<if test="amount_start_point !=null and amount_start_point !=0.00"> <if test="amount_start_point !=null ">
and and
contract_amount <![CDATA[>=]]> #{amount_start_point} contract_amount <![CDATA[>=]]> #{amount_start_point}
</if> </if>
<if test="amount_end_point !=null and amount_end_point !=0.00"> <if test="amount_end_point !=null ">
and and
contract_amount <![CDATA[<=]]> #{amount_end_point} contract_amount <![CDATA[<=]]> #{amount_end_point}
</if> </if>
<if test="overdays_start_point !=null and overdays_start_point !=0"> <if test="overdays_start_point !=null ">
and and
<!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[>=]]> #{overdays_start_point}) <!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[>=]]> #{overdays_start_point})
</if> </if>
<if test="overdays_end_point !=null and overdays_end_point !=0"> <if test="overdays_end_point !=null ">
and and
<!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[<=]]> #{overdays_end_point}) <!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[<=]]> #{overdays_end_point})
</if> </if>
<if test="leave_amount_start_point !=null and leave_amount_start_point !=0.00"> <if test="leave_amount_start_point !=null ">
<!--应收款余额-->and <!--应收款余额-->and
contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[>=]]> #{leave_amount_start_point}) contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[>=]]> #{leave_amount_start_point})
</if> </if>
<if test="leave_amount_end_point !=null and leave_amount_end_point !=0.00"> <if test="leave_amount_end_point !=null ">
and and
contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[<=]]> #{leave_amount_end_point}) contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[<=]]> #{leave_amount_end_point})
</if> </if>
and is_delete=false and is_delete=false
and project_unid is not null and project_unid is not null
and customer_unid is not null and customer_unid is not null
<if test="limit !=null and limit!=0 "> <if test="limit !=null ">
limit #{limit} limit #{limit}
</if> </if>
<if test="offset !=0 and offset !=null"> <if test="offset !=null">
offset #{offset} offset #{offset}
</if> </if>
</select> </select>
...@@ -605,7 +605,7 @@ ...@@ -605,7 +605,7 @@
and and
county=#{county} county=#{county}
</if> </if>
<if test="guarantee_period !=null and guarantee_period !=0"> <if test="guarantee_period !=null ">
and and
guarantee_period=#{guarantee_period} guarantee_period=#{guarantee_period}
</if> </if>
...@@ -652,30 +652,32 @@ ...@@ -652,30 +652,32 @@
<if test="end_date!=null"> <if test="end_date!=null">
and sign_date <![CDATA[<=]]> #{end_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler} and sign_date <![CDATA[<=]]> #{end_date,typeHandler=com.vion.financial.handler.MilliDateTypeHandler}
</if> </if>
<if test="amount_start_point !=null and amount_start_point !=0.00"> <if test="amount_start_point !=null ">
and and
contract_amount <![CDATA[>=]]> #{amount_start_point} contract_amount <![CDATA[>=]]> #{amount_start_point}
</if> </if>
<if test="amount_end_point !=null and amount_end_point !=0.00"> <if test="amount_end_point !=null ">
and and
contract_amount <![CDATA[<=]]> #{amount_end_point} contract_amount <![CDATA[<=]]> #{amount_end_point}
</if> </if>
<if test="overdays_start_point !=null and overdays_start_point !=0"> <if test="overdays_start_point !=null ">
and and
<!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[>=]]> #{overdays_start_point}) <!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[>=]]> #{overdays_start_point})
</if> </if>
<if test="overdays_end_point !=null and overdays_end_point !=0"> <if test="overdays_end_point !=null ">
and and
<!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[<=]]> #{overdays_end_point}) <!--逾期天数-->contract_unid in (select over_days_view.contract_unid from over_days_view where over_days <![CDATA[<=]]> #{overdays_end_point})
</if> </if>
<if test="leave_amount_start_point !=null and leave_amount_start_point !=0.00"> <if test="leave_amount_start_point !=null ">
<!--应收款余额-->and <!--应收款余额-->and
contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[>=]]> #{leave_amount_start_point}) contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[>=]]> #{leave_amount_start_point})
</if> </if>
<if test="leave_amount_end_point !=null and leave_amount_end_point !=0.00"> <if test="leave_amount_end_point !=null ">
contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[<=]]> #{leave_amount_end_point}) contract_unid in (select receive_amount_view.contract_unid from receive_amount_view where receive_amount_view.leave_amount_point <![CDATA[<=]]> #{leave_amount_end_point})
</if> </if>
and is_delete=false and is_delete=false
and project_unid is not null
and customer_unid is not null
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!