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
4112dae5
Commit
4112dae5
authored
Aug 25, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单控货业务修改补充
Signed-off-by:
zhengyi
<
landuo321@aliyun.com
>
parent
6898f69f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
5 deletions
+30
-5
update_V2.1.sql
sql/update_V2.1.sql
+2
-0
OrderDO.java
...oder/yudao/module/order/dal/dataobject/order/OrderDO.java
+2
-0
OrderCargoControlReleaseInfoDto.java
...dao/module/order/dto/OrderCargoControlReleaseInfoDto.java
+3
-0
OrderBusinessServiceImpl.java
...le/order/service/order/impl/OrderBusinessServiceImpl.java
+4
-4
OrderBackPageVO.java
.../iocoder/yudao/module/order/vo/order/OrderBackPageVO.java
+13
-0
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+6
-1
No files found.
sql/update_V2.1.sql
View file @
4112dae5
-- 2024-08-24 订单控货现在参数控货订单锁定天数
-- 2024-08-24 订单控货现在参数控货订单锁定天数
alter
table
`ecw_order`
add
column
`lock_consignee_day`
int
default
0
COMMENT
'锁定收货人天数'
;
alter
table
`ecw_order`
alter
table
`ecw_order`
add
column
`lock_consignee_time`
datetime
default
NULL
COMMENT
'放货锁定收货人到期时间'
;
add
column
`lock_consignee_time`
datetime
default
NULL
COMMENT
'放货锁定收货人到期时间'
;
alter
table
`ecw_order`
alter
table
`ecw_order`
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/dataobject/order/OrderDO.java
View file @
4112dae5
...
@@ -531,6 +531,8 @@ public class OrderDO extends BaseDO {
...
@@ -531,6 +531,8 @@ public class OrderDO extends BaseDO {
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
Date
lockConsigneeTime
;
private
Date
lockConsigneeTime
;
@ApiModelProperty
(
value
=
"放货锁定收货人天数"
)
private
Integer
lockConsigneeDay
;
//
//
// @ApiModelProperty(value = "拆单子订单是否变更运输方式")
// @ApiModelProperty(value = "拆单子订单是否变更运输方式")
// private Boolean splitChangeTransport = false;
// private Boolean splitChangeTransport = false;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dto/OrderCargoControlReleaseInfoDto.java
View file @
4112dae5
...
@@ -124,6 +124,9 @@ public class OrderCargoControlReleaseInfoDto {
...
@@ -124,6 +124,9 @@ public class OrderCargoControlReleaseInfoDto {
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
Date
lockConsigneeTime
;
private
Date
lockConsigneeTime
;
@ApiModelProperty
(
value
=
"放货锁定收货人天数"
)
private
Integer
lockConsigneeDay
;
@ApiModelProperty
(
value
=
"放货详情记录列表"
)
@ApiModelProperty
(
value
=
"放货详情记录列表"
)
private
List
<
OrderCargoControlPickBackVO
>
cargoControlPickBackVOList
;
private
List
<
OrderCargoControlPickBackVO
>
cargoControlPickBackVOList
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
View file @
4112dae5
...
@@ -1458,9 +1458,9 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
...
@@ -1458,9 +1458,9 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
}
}
// TODO 这里更新订单卸柜/到仓时间,同时对控货订单的限制修改收货人锁定到期时间进行更新,当前默认使用14D处理,待仓库业务添加该时间配置在做处理
// TODO 这里更新订单卸柜/到仓时间,同时对控货订单的限制修改收货人锁定到期时间进行更新,当前默认使用14D处理,待仓库业务添加该时间配置在做处理
Date
lockConsigneeTime
=
null
;
Date
lockConsigneeTime
=
null
;
if
(
orderDO
.
getIsCargoControl
()){
if
(
orderDO
.
getIsCargoControl
())
{
// TODO 获取卸柜/到仓业务时间的锁定收货人时间当天的结束时间
// TODO 获取卸柜/到仓业务时间的锁定收货人时间当天的结束时间
lockConsigneeTime
=
DateUtil
.
endOfDay
(
DateUtil
.
offsetDay
(
businessTime
,
14
));
lockConsigneeTime
=
DateUtil
.
endOfDay
(
DateUtil
.
offsetDay
(
businessTime
,
Objects
.
isNull
(
orderDO
.
getLockConsigneeDay
())
?
14
:
orderDO
.
getLockConsigneeDay
()
));
}
}
orderMapper
.
update
(
null
,
new
LambdaUpdateWrapper
<
OrderDO
>()
orderMapper
.
update
(
null
,
new
LambdaUpdateWrapper
<
OrderDO
>()
.
set
(
OrderDO:
:
getUnloadTime
,
businessTime
)
.
set
(
OrderDO:
:
getUnloadTime
,
businessTime
)
...
@@ -1600,9 +1600,9 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
...
@@ -1600,9 +1600,9 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
}
}
// TODO 这里更新订单卸柜/到仓时间,同时对控货订单的限制修改收货人锁定到期时间进行更新,当前默认使用14D处理,待仓库业务添加该时间配置在做处理
// TODO 这里更新订单卸柜/到仓时间,同时对控货订单的限制修改收货人锁定到期时间进行更新,当前默认使用14D处理,待仓库业务添加该时间配置在做处理
Date
lockConsigneeTime
=
null
;
Date
lockConsigneeTime
=
null
;
if
(
orderDO
.
getIsCargoControl
()){
if
(
orderDO
.
getIsCargoControl
())
{
// TODO 获取卸柜/到仓业务时间的锁定收货人时间当天的结束时间
// TODO 获取卸柜/到仓业务时间的锁定收货人时间当天的结束时间
lockConsigneeTime
=
DateUtil
.
endOfDay
(
DateUtil
.
offsetDay
(
businessTime
,
14
));
lockConsigneeTime
=
DateUtil
.
endOfDay
(
DateUtil
.
offsetDay
(
businessTime
,
Objects
.
isNull
(
orderDO
.
getLockConsigneeDay
())
?
14
:
orderDO
.
getLockConsigneeDay
()
));
}
}
orderMapper
.
update
(
null
,
new
LambdaUpdateWrapper
<
OrderDO
>()
orderMapper
.
update
(
null
,
new
LambdaUpdateWrapper
<
OrderDO
>()
.
set
(
OrderDO:
:
getUnloadTime
,
businessTime
)
.
set
(
OrderDO:
:
getUnloadTime
,
businessTime
)
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderBackPageVO.java
View file @
4112dae5
...
@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -15,6 +15,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Comparator
;
import
java.util.Comparator
;
...
@@ -327,8 +328,20 @@ public class OrderBackPageVO {
...
@@ -327,8 +328,20 @@ public class OrderBackPageVO {
private
Date
loadTime
;
private
Date
loadTime
;
@ApiModelProperty
(
value
=
"已卸柜/已到仓时间"
)
@ApiModelProperty
(
value
=
"已卸柜/已到仓时间"
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
Date
unloadTime
;
private
Date
unloadTime
;
@ApiModelProperty
(
value
=
"是否限制修改收货人"
)
private
Boolean
isLimitUpdateConsignee
;
@ApiModelProperty
(
value
=
"放货锁定收货人到期时间"
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
Date
lockConsigneeTime
;
@ApiModelProperty
(
value
=
"放货锁定收货人天数"
)
private
Integer
lockConsigneeDay
;
/**
/**
* 渠道名称
* 渠道名称
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
4112dae5
...
@@ -2989,7 +2989,6 @@
...
@@ -2989,7 +2989,6 @@
if(#{query.customerDetailId} is not null and #{query.customerDetailId} > 0, (select min(owi.`in_time`) from
if(#{query.customerDetailId} is not null and #{query.customerDetailId} > 0, (select min(owi.`in_time`) from
ecw_order_warehouse_in owi where owi.deleted = 0 and owi.order_id = o.order_id ), o.rucang_time ) as
ecw_order_warehouse_in owi where owi.deleted = 0 and owi.order_id = o.order_id ), o.rucang_time ) as
rucang_time,
rucang_time,
o.unload_time,
o.cost,
o.cost,
o.parent_number,
o.parent_number,
o.parent_order_id,
o.parent_order_id,
...
@@ -3025,6 +3024,9 @@
...
@@ -3025,6 +3024,9 @@
o.is_exception,
o.is_exception,
o.create_time,
o.create_time,
o.load_time,
o.load_time,
o.unload_time,
o.is_limit_update_consignee,
o.lock_consignee_time,
(select su.nickname from system_user su where su.deleted = 0 and su.id = o.salesman_id) as salesman_name,
(select su.nickname from system_user su where su.deleted = 0 and su.id = o.salesman_id) as salesman_name,
(select min(wi.`in_time`) from ecw_order_warehouse_in wi where wi.deleted = 0 and wi.order_id = o.order_id ) as
(select min(wi.`in_time`) from ecw_order_warehouse_in wi where wi.deleted = 0 and wi.order_id = o.order_id ) as
in_time,
in_time,
...
@@ -3114,6 +3116,9 @@
...
@@ -3114,6 +3116,9 @@
o.is_exception,
o.is_exception,
o.create_time,
o.create_time,
o.load_time,
o.load_time,
o.unload_time,
o.is_limit_update_consignee,
o.lock_consignee_time,
(select su.nickname from system_user su where su.deleted = 0 and su.id = o.salesman_id) as salesman_name,
(select su.nickname from system_user su where su.deleted = 0 and su.id = o.salesman_id) as salesman_name,
(select min(wi.`in_time`) from ecw_order_warehouse_in wi where wi.deleted = 0 and wi.order_id = o.order_id ) as
(select min(wi.`in_time`) from ecw_order_warehouse_in wi where wi.deleted = 0 and wi.order_id = o.order_id ) as
in_time,
in_time,
...
...
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