Upd:修改sql别名使用错误问题

master
duLingLing 5 years ago
parent 7da8c92566
commit ed16bafbf6

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.1.21</version>
<version>1.1.22</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -719,7 +719,7 @@
SELECT
org.org_id,
org.name org_name,
SUM(if(trans.transaction_type='Credit',trans.clearing_amount,-temp.clearing_amount)) AS amount
SUM(if(trans.transaction_type='Credit',trans.clearing_amount,-trans.clearing_amount)) AS amount
FROM pmt_transactions AS trans
RIGHT JOIN sys_clients AS clinet
ON trans.client_id = clinet.client_id

Loading…
Cancel
Save