|
@@ -47,6 +47,7 @@
|
|
|
LEFT JOIN ptl_agreement agree ON link.ptl_agreement_id = agree.id
|
|
LEFT JOIN ptl_agreement agree ON link.ptl_agreement_id = agree.id
|
|
|
left join esm_ins_company com on com.id = agree.partner_companies_id
|
|
left join esm_ins_company com on com.id = agree.partner_companies_id
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ agree.id is not null
|
|
|
<if test="vo.userId != null and vo.userId != ''">
|
|
<if test="vo.userId != null and vo.userId != ''">
|
|
|
and link.user_id = #{vo.userId}
|
|
and link.user_id = #{vo.userId}
|
|
|
</if>
|
|
</if>
|
|
@@ -79,6 +80,7 @@
|
|
|
LEFT JOIN ptl_agreement agree ON link.ptl_agreement_id = agree.id
|
|
LEFT JOIN ptl_agreement agree ON link.ptl_agreement_id = agree.id
|
|
|
left join esm_ins_company com on link.id = agree.partner_companies_id
|
|
left join esm_ins_company com on link.id = agree.partner_companies_id
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ agree.id is not null
|
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
|
and link.user_id = #{userId}
|
|
and link.user_id = #{userId}
|
|
|
</if>
|
|
</if>
|