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
4e67e336
Commit
4e67e336
authored
Dec 21, 2024
by
Smile
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/jd_dev' into jd_dev
parents
8dbd59b5
1a54235e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
OrderCargoControlReleaseInfoDto.java
...dao/module/order/dto/OrderCargoControlReleaseInfoDto.java
+6
-0
OrderCargoControlPickMapper.xml
...per/orderCargoControlPick/OrderCargoControlPickMapper.xml
+8
-7
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dto/OrderCargoControlReleaseInfoDto.java
View file @
4e67e336
...
...
@@ -123,6 +123,9 @@ public class OrderCargoControlReleaseInfoDto {
@ApiModelProperty
(
value
=
"收货人编号"
)
private
String
consigneeNumber
;
@ApiModelProperty
(
value
=
"收货人Id"
)
private
Long
consigneeId
;
@ApiModelProperty
(
value
=
"收货人姓名(英文)"
)
private
String
consigneeNameEn
;
...
...
@@ -138,6 +141,9 @@ public class OrderCargoControlReleaseInfoDto {
@ApiModelProperty
(
value
=
"发货人编号"
)
private
String
consignerNumber
;
@ApiModelProperty
(
value
=
"发货人id"
)
private
Long
consignerId
;
@ApiModelProperty
(
value
=
"运输方式"
)
private
Integer
transportId
;
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/orderCargoControlPick/OrderCargoControlPickMapper.xml
View file @
4e67e336
...
...
@@ -20,22 +20,24 @@
SELECT o.order_no,
o.order_id,
nor.customer_number as consignerNumber,
nor.customer_id as consignerId,
nee.customer_number as consigneeNumber,
nee.customer_id as consigneeId,
nee.NAME as consigneeName,
nee.phone as consigneePhone,
nee.country_code as consigneeCountryCode,
o.sum_num,
occ.pick_num,
occ.pick_volume,
truncate(ceil((
occ.pick_num/round(o.sum_num*occ.pick_volume,5))*100)/100,2) as chargeVol
,
truncate(ceil((
round((occ.pick_num/o.sum_num)*occ.pick_volume,5))*100)/100,2) as chargeVolume
,
occ.pick_weight,
truncate(ceil((
occ.pick_num/round(o.sum_num
*occ.pick_weight,5))*100)/100,2) as chargeWeight,
truncate(ceil((
round((occ.pick_num/o.sum_num)
*occ.pick_weight,5))*100)/100,2) as chargeWeight,
occ.status,
occ.remarks,
occ.operator,
occ.create_time,
occ.check_time,
o.
pick_state
as cargoControlStatus,
o.
cargo_control_status
as cargoControlStatus,
ew_start.title_zh as startTitleZh,
ew_start.title_en as startTitleEn,
ew_start.title_fr as startTitleFr,
...
...
@@ -49,7 +51,7 @@
FROM ecw_order_cargo_control_pick occ
JOIN ecw_order o on o.order_id = occ.order_id
LEFT JOIN ecw_order_consignor nor ON nor.order_id = o.order_id AND nor.deleted = 0
LEFT JOIN ecw_order_consign
ee nee ON nee.order_id = o.order_id
AND nee.deleted = 0
LEFT JOIN ecw_order_consign
or nee ON nee.phone = occ.consignee_phone
AND nee.deleted = 0
LEFT JOIN ecw_warehouse_line ewl on ewl.id = o.line_id
LEFT JOIN ecw_warehouse ew_start ON ew_start.id = ewl.start_warehouse_id
LEFT JOIN ecw_warehouse ew_dest ON ew_dest.id = ewl.dest_warehouse_id
...
...
@@ -69,9 +71,9 @@
<select
id=
"statisticsOrderControl"
resultType=
"cn.iocoder.yudao.module.order.vo.order.StatisticsOrderVO"
>
SELECT sum(occ.pick_num) as totalNum,
sum(occ.pick_volume) as totalVolume,
sum(truncate(ceil((
occ.pick_num/round(o.sum_num
*occ.pick_volume,5))*100)/100,2)) as totalChargeVolume,
sum(truncate(ceil((
round((occ.pick_num/o.sum_num)
*occ.pick_volume,5))*100)/100,2)) as totalChargeVolume,
sum(occ.pick_weight) as totalWeight,
sum(truncate(ceil((
occ.pick_num/round(o.sum_num
*occ.pick_weight,5))*100)/100,2)) as totalChargeWeight
sum(truncate(ceil((
round((occ.pick_num/o.sum_num)
*occ.pick_weight,5))*100)/100,2)) as totalChargeWeight
FROM ecw_order_cargo_control_pick occ
JOIN ecw_order o on o.order_id = occ.order_id
LEFT JOIN ecw_order_consignor nor ON nor.order_id = o.order_id AND nor.deleted = 0
...
...
@@ -81,7 +83,6 @@
LEFT JOIN ecw_warehouse ew_dest ON ew_dest.id = ewl.dest_warehouse_id
LEFT JOIN ecw_channel ec on ec.channel_id = o.channel_id
<include
refid=
"query"
/>
and occ.status = 3
</select>
<sql
id=
"query"
>
...
...
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