|
@@ -1978,6 +1978,16 @@
|
|
|
<if test="settlementReportQueryVo.companyId != null and settlementReportQueryVo.companyId != ''">
|
|
<if test="settlementReportQueryVo.companyId != null and settlementReportQueryVo.companyId != ''">
|
|
|
AND ipi.company_id = #{settlementReportQueryVo.companyId}
|
|
AND ipi.company_id = #{settlementReportQueryVo.companyId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="settlementReportQueryVo.settlementStatus != null ">
|
|
|
|
|
+ <choose >
|
|
|
|
|
+ <when test=" 1 == settlementReportQueryVo.settlementStatus">
|
|
|
|
|
+ and ipi.settlement_status = 1
|
|
|
|
|
+ </when>
|
|
|
|
|
+ <otherwise>
|
|
|
|
|
+ and ipi.settlement_status != 1
|
|
|
|
|
+ </otherwise>
|
|
|
|
|
+ </choose>
|
|
|
|
|
+ </if>
|
|
|
<if test="settlementReportQueryVo.receiver != null and settlementReportQueryVo.receiver != ''">
|
|
<if test="settlementReportQueryVo.receiver != null and settlementReportQueryVo.receiver != ''">
|
|
|
AND ipi.contact_person = #{settlementReportQueryVo.receiver}
|
|
AND ipi.contact_person = #{settlementReportQueryVo.receiver}
|
|
|
</if>
|
|
</if>
|