|
|
@@ -271,9 +271,13 @@
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
<select id="getReceivablePage" resultType="com.jzg.commons.entity.finance.po.InsPlyIncome">
|
|
|
<include refid="query"/>
|
|
|
+ <if test="receivableQueryVo.invoiceId != null and receivableQueryVo.invoiceId != ''" >
|
|
|
+ and ipi.id in (
|
|
|
+ select ipiil.income_id from ins_ply_income_invoice_link ipiil where ipiil.invoice_id = #{receivableQueryVo.invoiceId}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="receivableQueryVo.typeAttr != null and receivableQueryVo.typeAttr != ''">
|
|
|
and io.real_quote_user_id in (select su.username from sys_user_jzg_info_salesman sujis left join sys_user_jzg_info suji on sujis.sys_user_jzg_info_id = suji.id
|
|
|
left join sys_user su on su.id = suji.user_id
|