|
|
@@ -1115,6 +1115,10 @@
|
|
|
<if test="orderQueryVo.updateStatus != null and orderQueryVo.updateStatus != null">
|
|
|
and iac.update_status = #{orderQueryVo.updateStatus}
|
|
|
</if>
|
|
|
+ <if test="orderQueryVo.partnerCompaniesId != null and orderQueryVo.partnerCompaniesId != null">
|
|
|
+ and agree.partner_companies_id = #{orderQueryVo.partnerCompaniesId}
|
|
|
+ </if>
|
|
|
+
|
|
|
and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
</where>
|
|
|
order by io.createtime desc
|
|
|
@@ -1134,6 +1138,10 @@
|
|
|
sys_dept dept ON dept.id = io.deptid
|
|
|
LEFT JOIN
|
|
|
sys_user u on io.userid = u.id
|
|
|
+ left join
|
|
|
+ ptl_agreement agree on iac.agreement_id= agree.id
|
|
|
+ left join
|
|
|
+ esm_ins_company company on agree.partner_companies_id= company.id
|
|
|
<where>
|
|
|
<if test="agentUserIds != null and agentUserIds.size>0" >
|
|
|
AND (
|
|
|
@@ -1270,6 +1278,9 @@
|
|
|
<if test="orderQueryVo.updateStatus != null and orderQueryVo.updateStatus != null">
|
|
|
and iac.update_status = #{orderQueryVo.updateStatus}
|
|
|
</if>
|
|
|
+ <if test="orderQueryVo.partnerCompaniesId != null and orderQueryVo.partnerCompaniesId != null">
|
|
|
+ and agree.partner_companies_id = #{orderQueryVo.partnerCompaniesId}
|
|
|
+ </if>
|
|
|
and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
</where>
|
|
|
) as s
|
|
|
@@ -2042,6 +2053,9 @@
|
|
|
<if test="orderQueryVo.updateStatus != null and orderQueryVo.updateStatus != null">
|
|
|
and iac.update_status = #{orderQueryVo.updateStatus}
|
|
|
</if>
|
|
|
+ <if test="orderQueryVo.partnerCompaniesId != null and orderQueryVo.partnerCompaniesId != null">
|
|
|
+ and agree.partner_companies_id = #{orderQueryVo.partnerCompaniesId}
|
|
|
+ </if>
|
|
|
and (iac.del_flag = '1' or io.del_flag IS NULL or io.del_flag = 1)
|
|
|
</where>
|
|
|
order by io.createtime desc
|