Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07f5f414
authored
Jun 23, 2026
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:低单价购入、打折策略订单金额计算使用子订单表数据
1 parent
e71cd976
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
rpc-dj-pe-analysis/src/main/resources/META-INF/orm/GoodsOrderMapper.xml
rpc-dj-pe-analysis/src/main/resources/META-INF/orm/GoodsOrderMapper.xml
View file @
07f5f41
...
@@ -228,9 +228,9 @@
...
@@ -228,9 +228,9 @@
resultType=
"cn.com.glsx.dj.peanalysis.dto.analysis.StrategyOrderStatisticsRespDTO"
>
resultType=
"cn.com.glsx.dj.peanalysis.dto.analysis.StrategyOrderStatisticsRespDTO"
>
select
select
count(distinct t1.order_code) orderCount,
count(distinct t1.order_code) orderCount,
sum(ifnull(t
1
.total_price, 0)) totalPrice,
sum(ifnull(t
2
.total_price, 0)) totalPrice,
sum(ifnull(t
1
.final_price, 0)) finalPrice,
sum(ifnull(t
2
.final_price, 0)) finalPrice,
sum(ifnull(t
1.total_price, 0) - ifnull(t1
.final_price, 0)) as discountPrice
sum(ifnull(t
2.total_price, 0) - ifnull(t2
.final_price, 0)) as discountPrice
from dj_car_life_goods_order t1
from dj_car_life_goods_order t1
inner join dj_car_life_goods_sub_order t2 on t1.order_code = t2.order_code
inner join dj_car_life_goods_sub_order t2 on t1.order_code = t2.order_code
where t1.deleted_flag = 'N' and t2.deleted_flag = 'N' and t1.status = '4'
where t1.deleted_flag = 'N' and t2.deleted_flag = 'N' and t1.status = '4'
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment