@@ -637,7 +637,7 @@
select a.aid,a.aname ,a.type,a.status ,a.amount totalAmount ,ifnull(a.debit_id,0) debitId ,a.target_type targetType ,ifnull(a2.amount,0) bxdkAmount
from expense_account a
left join expense_account a2 on a.debit_id =a2.id left join admin ad on a.aid=ad.id
- where 1=1 and a.expense_main=0
+ where 1=1 and a.expense_main=0 and a.status>0
<if test="name != null">
and a.aname like concat('%',#{name},'%')
</if>