Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
6f7dfd9b
Commit
6f7dfd9b
authored
Oct 10, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计条件
parent
cf721d0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pz-system/src/main/resources/mapper/system/TotalOrderMapper.xml
+2
-2
No files found.
pz-system/src/main/resources/mapper/system/TotalOrderMapper.xml
View file @
6f7dfd9b
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
<select
id=
"selectPlatformRevenue"
resultType=
"com.pz.system.domain.vo.DataOrderVo"
>
<select
id=
"selectPlatformRevenue"
resultType=
"com.pz.system.domain.vo.DataOrderVo"
>
SELECT IFNULL(ROUND(SUM(employees_divide.order_price - employees_divide.divide_price), 2),0) as dataSum FROM
SELECT IFNULL(ROUND(SUM(employees_divide.order_price - employees_divide.divide_price), 2),0) as dataSum FROM
employees_divide
employees_divide
left join total_order on total_order.order_sn = employees_divide.
order_
id WHERE total_order.`status` = 2 and
left join total_order on total_order.order_sn = employees_divide.id WHERE total_order.`status` = 2 and
refund_amount = 0
refund_amount = 0
<if
test=
"dataViewBo.condition == 2"
>
<if
test=
"dataViewBo.condition == 2"
>
and employees_divide.create_time >= DATE_SUB(CURDATE(), INTERVAL 7 DAY) -- 近7天
and employees_divide.create_time >= DATE_SUB(CURDATE(), INTERVAL 7 DAY) -- 近7天
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
<select
id=
"selectPlatformCom"
resultType=
"com.pz.system.domain.vo.DataOrderVo"
>
<select
id=
"selectPlatformCom"
resultType=
"com.pz.system.domain.vo.DataOrderVo"
>
SELECT IFNULL(ROUND(SUM(employees_divide.divide_price), 2),0) as dataSum FROM
SELECT IFNULL(ROUND(SUM(employees_divide.divide_price), 2),0) as dataSum FROM
employees_divide
employees_divide
left join total_order on total_order.order_sn = employees_divide.
order_
id WHERE total_order.`status` = 2 and
left join total_order on total_order.order_sn = employees_divide.id WHERE total_order.`status` = 2 and
refund_amount = 0 and company_id = #{dataViewBo.userId}
refund_amount = 0 and company_id = #{dataViewBo.userId}
<if
test=
"dataViewBo.condition == 2"
>
<if
test=
"dataViewBo.condition == 2"
>
and employees_divide.create_time >= DATE_SUB(CURDATE(), INTERVAL 7 DAY) -- 近7天
and employees_divide.create_time >= DATE_SUB(CURDATE(), INTERVAL 7 DAY) -- 近7天
...
...
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