Upd:修改定时任务时间

master
duLingLing 5 years ago
parent 24b3d742b2
commit 7da8c92566

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

@ -203,7 +203,7 @@
org.type AS org_type, org.type AS org_type,
org.name AS org_name, org.name AS org_name,
if(org.org_id=1,1,0) AS isOrg, if(org.org_id=1,1,0) AS isOrg,
SUM( IF ( temp.transaction_type = 'Credit', temp.clearing_amount, -t.clearing_amount )) clearing_amount, SUM( IF ( temp.transaction_type = 'Credit', temp.clearing_amount, -temp.clearing_amount )) clearing_amount,
SUM(if(temp.transaction_type = 'Credit',temp.clearing_amount * clinetBD.proportion, -temp.clearing_amount * clinetBD.proportion)) pay_amount, SUM(if(temp.transaction_type = 'Credit',temp.clearing_amount * clinetBD.proportion, -temp.clearing_amount * clinetBD.proportion)) pay_amount,
ifnull(SUM(if(temp.refund_id IS NOT NULL, if(temp.transaction_type='Debit', temp.clearing_amount, -temp.clearing_amount) * clinetBD.proportion, 0)), 0) refund_amount, ifnull(SUM(if(temp.refund_id IS NOT NULL, if(temp.transaction_type='Debit', temp.clearing_amount, -temp.clearing_amount) * clinetBD.proportion, 0)), 0) refund_amount,
(SUM(if(temp.transaction_type = 'Credit', temp.clearing_amount * clinetBD.proportion, -temp.clearing_amount * clinetBD.proportion))) - (ifnull(SUM(if(temp.refund_id IS NOT NULL, if(temp.transaction_type='Debit', temp.clearing_amount, -temp.clearing_amount) * clinetBD.proportion, 0)), 0)) AS net_amount (SUM(if(temp.transaction_type = 'Credit', temp.clearing_amount * clinetBD.proportion, -temp.clearing_amount * clinetBD.proportion))) - (ifnull(SUM(if(temp.refund_id IS NOT NULL, if(temp.transaction_type='Debit', temp.clearing_amount, -temp.clearing_amount) * clinetBD.proportion, 0)), 0)) AS net_amount

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

Loading…
Cancel
Save