|
|
@@ -474,7 +474,7 @@
|
|
|
</select>
|
|
|
<select id="selectStatistics" resultType="com.goafanti.expenseAccount.bo.OutExpenseAccountStatistics">
|
|
|
select a.aid,a.aname ,if(a.`type` <4 ,1,0)bx,if(a.`type`=4 ,1,0)jz,if(a.`type`=5 ,1,0)dk,a.debit_id debitId ,a.target_type targetType ,
|
|
|
- if(a.`type`< 4 ,a.total_amount ,0)bxAmout,if(a.`type`=4 ,a.total_amount ,0)jzAmount,if(a.`type`=5,a.total_amount,0)dkAmount,
|
|
|
+ if(a.`type`< 4 ,a.total_amount ,0)bxAmount,if(a.`type`=4 ,a.total_amount ,0)jzAmount,if(a.`type`=5,a.total_amount,0)dkAmount,
|
|
|
if(a.status< 2,1,0)wshs,if(a.status=3,1,0)bhs
|
|
|
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
|