|
|
@@ -2083,6 +2083,9 @@ left join department de on x.department_id=de.id left join business_category bc
|
|
|
left join business_category e on d.cid =e.id
|
|
|
left join department f on b.order_dep =f.id
|
|
|
where check_status =1
|
|
|
+ <if test="aid !=null">
|
|
|
+ and b.salesman_id = #{aid}
|
|
|
+ </if>
|
|
|
<if test="name !=null">
|
|
|
and c.buyer_name like concat('%',#{name},'%')
|
|
|
</if>
|
|
|
@@ -2111,6 +2114,9 @@ left join department de on x.department_id=de.id left join business_category bc
|
|
|
left join business_category e on d.cid =e.id
|
|
|
left join department f on b.order_dep =f.id
|
|
|
where check_status =1
|
|
|
+ <if test="aid !=null">
|
|
|
+ and b.salesman_id = #{aid}
|
|
|
+ </if>
|
|
|
<if test="name !=null">
|
|
|
and c.buyer_name like concat('%',#{name},'%')
|
|
|
</if>
|