add 到账开票增加应收金额范围查询

This commit is contained in:
lijiarao
2022-03-04 11:37:00 +08:00
parent bce916188a
commit 23ab1129b5
2 changed files with 15 additions and 0 deletions
@@ -201,6 +201,15 @@
LEFT JOIN pay_payment_record ppr ON ppr.project_id = p.id
where
1=1
<if test="param2.startAmount != null and param2.startAmount != '' and param2.endAmount != null and param2.endAmount != ''">
AND p.receivable_amount between #{param2.startAmount} and #{param2.endAmount}
</if>
<if test="param2.startAmount == null and param2.endAmount != null">
AND p.receivable_amount <![CDATA[<=]]> #{param2.endAmount}
</if>
<if test="param2.startAmount != null and param2.endAmount == null">
AND p.receivable_amount <![CDATA[>=]]> #{param2.startAmount}
</if>
<if test="projectType != null and projectType != ''">
AND p.projectType = #{projectType}
</if>
@@ -250,4 +250,10 @@ public class PayCommonProject implements Serializable {
*/
@TableField(exist = false)
private String missionAndObjectives;
@TableField(exist = false)
private String startAmount;
@TableField(exist = false)
private String endAmount;
}