Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-smartcarlife
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 039ba8a8
authored
Jun 23, 2026
by
范富荣
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
查询主商品订单信息,修改库存查询逻辑
1 parent
ebcc5128
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
rpc-dj-smartcarlife/src/main/resources/META-INF/orm/constuction/ConstructionSubOrderRelationMapper.xml
rpc-dj-smartcarlife/src/main/resources/META-INF/orm/constuction/ConstructionSubOrderRelationMapper.xml
View file @
039ba8a
...
...
@@ -95,12 +95,12 @@
left join dj_car_life_goods_order go on go.order_code = gso.order_code
left join dj_car_life_merchant_goods_stock_month_report dclmgsmr on dclmgsmr.upgrade_goods_id =
gso.upgrade_goods_id and dclmgsmr.yq_merchant_id = go.seller_merchant_id and dclmgsmr.deleted_flag = 'N'
<if
test=
"dataMonth != null"
>
and dclmgsmr.data_month = #{dataMonth}
</if>
<where>
gso.deleted_flag = 'N' and gso.order_code = #{orderCode} and (gso.construction_flag != 1 or
gso.construction_flag is null) and gso.status =1
<if
test=
"dataMonth != null"
>
and dclmgsmr.data_month = #{dataMonth}
</if>
</where>
<if
test=
"constructionCode != null and constructionCode != ''"
>
union all
...
...
@@ -126,12 +126,12 @@
left join dj_car_life_goods_order go on go.order_code = gso.order_code
left join dj_car_life_merchant_goods_stock_month_report dclmgsmr on dclmgsmr.upgrade_goods_id =
gso.upgrade_goods_id and dclmgsmr.yq_merchant_id = go.seller_merchant_id and dclmgsmr.deleted_flag = 'N'
<if
test=
"dataMonth != null"
>
and dclmgsmr.data_month = #{dataMonth}
</if>
<where>
csor.deleted_flag = 'N' and gso.deleted_flag = 'N' and csor.construction_code = #{constructionCode} and
gso.status =1
<if
test=
"dataMonth != null"
>
and dclmgsmr.data_month = #{dataMonth}
</if>
</where>
</if>
</select>
...
...
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