Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
10f60856
Commit
10f60856
authored
Oct 24, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价单列表查询sql优化
parent
4f2faa80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
OfferMapper.java
...ocoder/yudao/module/sale/dal/mysql/offer/OfferMapper.java
+12
-12
No files found.
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/dal/mysql/offer/OfferMapper.java
View file @
10f60856
...
@@ -107,13 +107,13 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
...
@@ -107,13 +107,13 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"if(#{lang} = 0, dst.title_zh , dst.title_en) as dest_warehouse_name, "
,
"if(#{lang} = 0, dst.title_zh , dst.title_en) as dest_warehouse_name, "
,
"line.transport_type "
,
"line.transport_type "
,
"from ecw_offer o "
,
"from ecw_offer o "
,
"
left
join ecw_customer_contacts cc on (o.relation = 1 and cc.id = o.consignor_id) or (o.relation = 2 and cc.id = o.consignee_id) "
,
"join ecw_customer_contacts cc on (o.relation = 1 and cc.id = o.consignor_id) or (o.relation = 2 and cc.id = o.consignee_id) "
,
"
left
join ecw_customer user on user.id = o.relation_id "
,
"join ecw_customer user on user.id = o.relation_id "
,
"left join system_user u on u.id = o.follow_up_salesman_id "
,
"left join system_user u on u.id = o.follow_up_salesman_id "
,
"
left
join ecw_region s on o.objective_id = s.id "
,
"join ecw_region s on o.objective_id = s.id "
,
"
left
join ecw_warehouse_line line on o.line_id = line.id "
,
"join ecw_warehouse_line line on o.line_id = line.id "
,
"
left
join ecw_warehouse st on line.start_warehouse_id = st.id "
,
"join ecw_warehouse st on line.start_warehouse_id = st.id "
,
"
left
join ecw_warehouse dst on line.dest_warehouse_id = dst.id "
,
"join ecw_warehouse dst on line.dest_warehouse_id = dst.id "
,
"left join ecw_channel l on o.channel_id = l.channel_id "
,
"left join ecw_channel l on o.channel_id = l.channel_id "
,
"where o.deleted = 0"
,
"where o.deleted = 0"
,
...
@@ -241,13 +241,13 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
...
@@ -241,13 +241,13 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"<script>"
,
"<script>"
,
"select count(1)"
,
"select count(1)"
,
"from ecw_offer o "
,
"from ecw_offer o "
,
"
left
join ecw_customer_contacts cc on (o.relation = 1 and cc.id = o.consignor_id) or (o.relation = 2 and cc.id = o.consignee_id) "
,
"join ecw_customer_contacts cc on (o.relation = 1 and cc.id = o.consignor_id) or (o.relation = 2 and cc.id = o.consignee_id) "
,
"
left
join ecw_customer user on user.id = o.relation_id "
,
"join ecw_customer user on user.id = o.relation_id "
,
"left join system_user u on u.id = o.follow_up_salesman_id "
,
"left join system_user u on u.id = o.follow_up_salesman_id "
,
"
left
join ecw_region s on o.objective_id = s.id "
,
"join ecw_region s on o.objective_id = s.id "
,
"
left
join ecw_warehouse_line line on o.line_id = line.id "
,
"join ecw_warehouse_line line on o.line_id = line.id "
,
"
left
join ecw_warehouse st on line.start_warehouse_id = st.id "
,
"join ecw_warehouse st on line.start_warehouse_id = st.id "
,
"
left
join ecw_warehouse dst on line.dest_warehouse_id = dst.id "
,
"join ecw_warehouse dst on line.dest_warehouse_id = dst.id "
,
"left join ecw_channel l on o.channel_id = l.channel_id "
,
"left join ecw_channel l on o.channel_id = l.channel_id "
,
"where o.deleted = 0"
,
"where o.deleted = 0"
,
//startWarehouseIds
//startWarehouseIds
...
...
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