|
|
select t3.accountname,substring(t1.period, 6, 2) month,sum(if(t1.type = 0, 0 - amount, 0 + amount)) amount
|
|
select t3.accountname,substring(t1.period, 6, 2) month,sum(if(t1.type = 0, 0 - amount, 0 + amount)) amount
|
|
|
where ((t1.type = 1 and t1.class in ('货款', '物流赔偿')) or
|
|
where ((t1.type = 1 and t1.class in ('货款', '物流赔偿')) or
|