|
|
@@ -459,9 +459,9 @@
|
|
|
from expense_account a left join department b on a.apply_dep =b.id left join department c on a.pay_dep =c.id
|
|
|
left join expense_account_private d on a.eaaid=d.id left join t_order_new o on a.order_no =o.order_no
|
|
|
left join t_order_mid tm on a.order_no =tm.order_no left join admin ad on a.aid=ad.id
|
|
|
- where a.status=2
|
|
|
+ where 1=1
|
|
|
<if test="name != null">
|
|
|
- and ad.name like concat('%','y','%')
|
|
|
+ and ad.name like concat('%',#{name},'%')
|
|
|
</if>
|
|
|
<if test="depId != null">
|
|
|
and ad.department_id = #{depId}
|