|
|
@@ -1187,7 +1187,14 @@ create_time = values(create_time)
|
|
|
a.*
|
|
|
from task_details a left join t_order_task b on a.id =b.progress_tid
|
|
|
left join admin c on b.task_receiver=c.id
|
|
|
+ left join t_order_mid d on b.order_no=d.order_no
|
|
|
where (c.superior_id= #{aid} or c.id= #{aid})
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and d.buyer_name like concat('%',#{name},'%')
|
|
|
+ </if>
|
|
|
+ <if test="page_sql !=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<select id="selectTaskDetailsCount" resultType="java.lang.Integer">
|
|
|
select
|
|
|
@@ -1195,6 +1202,9 @@ create_time = values(create_time)
|
|
|
from task_details a left join t_order_task b on a.id =b.progress_tid
|
|
|
left join admin c on b.task_receiver=c.id
|
|
|
where (c.superior_id= #{aid} or c.id= #{aid})
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and d.buyer_name like concat('%',#{name},'%')
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|
|
|
|