Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
cloud-fb
Commits
9f43e7e1
Commit
9f43e7e1
authored
May 14, 2021
by
wukaiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改回款明细统计格式
parent
0ebf49f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
22 deletions
+32
-22
PaymentDetailsAdvQuery.jmx
...st/dinas/statistics/advanquery/PaymentDetailsAdvQuery.jmx
+32
-22
No files found.
backend/xyst.dinas.statistics/src/main/resources/com/xyst/dinas/statistics/advanquery/PaymentDetailsAdvQuery.jmx
View file @
9f43e7e1
...
@@ -12,6 +12,16 @@
...
@@ -12,6 +12,16 @@
<sql-type>
SQL
</sql-type>
<sql-type>
SQL
</sql-type>
<sql>
<sql>
SELECT
SELECT
result.id AS id ,
result.createTime AS createTime ,
result.purchaseSandUnit AS purchaseSandUnit ,
result.project AS project ,
result.fundType AS fundType ,
result.rechargeAmount AS rechargeAmount ,
result.actualRefundAmount AS actualRefundAmount ,
result.remark AS remark
FROM
(SELECT
financeRefund.id AS id,
financeRefund.id AS id,
financeRefund.createTime AS createTime,
financeRefund.createTime AS createTime,
purchaseSandCompanyon.NAME AS purchaseSandUnit,
purchaseSandCompanyon.NAME AS purchaseSandUnit,
...
@@ -23,17 +33,15 @@
...
@@ -23,17 +33,15 @@
END AS fundType,
END AS fundType,
'-' AS rechargeAmount,
'-' AS rechargeAmount,
financeRefund.actualRefundAmount AS actualRefundAmount,
financeRefund.actualRefundAmount AS actualRefundAmount,
financeRefund.refundExplain AS remark
financeRefund.refundExplain AS remark ,
financeRefund.regionalCompany AS regionalCompanyId,
purchaseSandCompanyon.NAME AS purchaseSandCompanyonName,
projectFiled.projectName AS projectName,
CASE WHEN financeRefund.fundType = 1 THEN 'DEPOSIT' ELSE 'ADVANCE' END AS fundType1
FROM
FROM
FinanceRefund AS financeRefund
FinanceRefund AS financeRefund
LEFT JOIN PurchaseSandCompany AS purchaseSandCompanyon ON purchaseSandCompanyon.id = financeRefund.purchaseSandCompany
LEFT JOIN PurchaseSandCompany AS purchaseSandCompanyon ON purchaseSandCompanyon.id = financeRefund.purchaseSandCompany
LEFT JOIN ProjectFiled AS projectFiled ON projectFiled.id = financeRefund.project
LEFT JOIN ProjectFiled AS projectFiled ON projectFiled.id = financeRefund.project
WHERE
financeRefund.regionalCompany = :?regionalCompanyId
AND ( financeRefund.createTime
>
= :?startDate AND financeRefund.createTime
<
= :?endDate )
AND purchaseSandCompanyon.NAME LIKE :?purchaseSandCompanyonName
AND projectFiled.projectName LIKE :?projectName
AND ( CASE WHEN 'DEPOSIT' = :?fundType THEN '1' ELSE '0' END ) = financeRefund.fundType
UNION ALL
UNION ALL
SELECT
SELECT
artificialRecharge.id AS id,
artificialRecharge.id AS id,
...
@@ -47,17 +55,15 @@
...
@@ -47,17 +55,15 @@
END AS fundType,
END AS fundType,
artificialRecharge.rechargeAmount AS rechargeAmount,
artificialRecharge.rechargeAmount AS rechargeAmount,
'-' AS actualRefundAmount,
'-' AS actualRefundAmount,
artificialRecharge.remark AS remark
artificialRecharge.remark AS remark ,
artificialRecharge.regionalCompany AS regionalCompanyId,
purchaseSandCompanyon.NAME AS purchaseSandCompanyonName,
projectFiled.projectName AS projectName,
artificialRecharge.fundType AS fundType1
FROM
FROM
ArtificialRecharge AS artificialRecharge
ArtificialRecharge AS artificialRecharge
LEFT JOIN PurchaseSandCompany AS purchaseSandCompanyon ON purchaseSandCompanyon.id = artificialRecharge.purchaseSandUnit
LEFT JOIN PurchaseSandCompany AS purchaseSandCompanyon ON purchaseSandCompanyon.id = artificialRecharge.purchaseSandUnit
LEFT JOIN ProjectFiled AS projectFiled ON projectFiled.id = artificialRecharge.project
LEFT JOIN ProjectFiled AS projectFiled ON projectFiled.id = artificialRecharge.project
WHERE
artificialRecharge.regionalCompany = :?regionalCompanyId
AND ( artificialRecharge.createTime
>
= :?startDate AND artificialRecharge.createTime
<
= :?endDate )
AND purchaseSandCompanyon.NAME LIKE :?purchaseSandCompanyonName
AND projectFiled.projectName LIKE :?projectName
AND artificialRecharge.fundType = :?fundType
UNION ALL
UNION ALL
SELECT
SELECT
expenseAdjust.id AS id,
expenseAdjust.id AS id,
...
@@ -80,18 +86,22 @@
...
@@ -80,18 +86,22 @@
'0' THEN
'0' THEN
( - expenseAdjust.expenseAdjustAmount ) ELSE '-'
( - expenseAdjust.expenseAdjustAmount ) ELSE '-'
END AS actualRefundAmount,
END AS actualRefundAmount,
expenseAdjust.remark AS remark
expenseAdjust.remark AS remark,
expenseAdjust.regionalCompany AS regionalCompanyId,
purchaseSandCompanyon.NAME AS purchaseSandCompanyonName,
projectFiled.projectName AS projectName,
expenseAdjust.fundType AS fundType1
FROM
FROM
ExpenseAdjust AS expenseAdjust
ExpenseAdjust AS expenseAdjust
LEFT JOIN PurchaseSandCompany AS purchaseSandCompanyon ON purchaseSandCompanyon.id = expenseAdjust.purchaseSandUnit
LEFT JOIN PurchaseSandCompany AS purchaseSandCompanyon ON purchaseSandCompanyon.id = expenseAdjust.purchaseSandUnit
LEFT JOIN ProjectFiled AS projectFiled ON projectFiled.id = expenseAdjust.project
LEFT JOIN ProjectFiled AS projectFiled ON projectFiled.id = expenseAdjust.project
WHERE
) AS result
expenseAdjust.regionalCompany
= :?regionalCompanyId
WHERE result.regionalCompanyId
= :?regionalCompanyId
AND ( expenseAdjust.createTime
>
= :?startDate AND expenseAdjust.createTime
<
= :?endDate )
AND ( result.createTime
>
= :?startDate AND result.createTime
<
= :?endDate )
AND
purchaseSandCompanyon.NAME LIKE :?purchaseSandCompanyonName
AND
result.purchaseSandCompanyonName LIKE :?purchaseSandCompanyonName
AND projectFiled.projectName LIKE :?projectName
AND result.projectName LIKE :?projectName
AND
expenseAdjust.fundType = :?fundType
AND
result.fundType1 = :?fundType
ORDER BY createTime DESC
ORDER BY
result.
createTime DESC
</sql>
</sql>
</template>
</template>
</content>
</content>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment