|
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="verifyRemark != null and verifyRemark != ''"> AND t1.verify_remark = #{verifyRemark}</if>
|
|
<if test="verifyRemark != null and verifyRemark != ''"> AND t1.verify_remark = #{verifyRemark}</if>
|
|
<if test="tenantId != null"> AND t1.tenant_id = #{tenantId}</if>
|
|
<if test="tenantId != null"> AND t1.tenant_id = #{tenantId}</if>
|
|
<if test="nonpayment == true">
|
|
<if test="nonpayment == true">
|
|
- AND (select ifnull(sum(col.amount), 0) from biz_collection col where col.contract_id = t1.id and col.status = 1) < t1.true_amount
|
|
|
|
|
|
+ AND (select ifnull(sum(col.arrive_amount), 0) from biz_collection col where col.contract_id = t1.id and col.status = 1) < t1.true_amount
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</select>
|
|
</select>
|