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
4baa88f3
Commit
4baa88f3
authored
Aug 28, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放货限制修改申请参数补充更新
parent
03ff9fb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
OrderCargoControlServiceImpl.java
...rvice/orderCargoControl/OrderCargoControlServiceImpl.java
+5
-5
OrderCargoControlApplyVO.java
.../order/vo/orderCargoControl/OrderCargoControlApplyVO.java
+16
-4
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlServiceImpl.java
View file @
4baa88f3
...
...
@@ -499,13 +499,13 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
OrderCargoControlApplyVO
applyVO
=
JSONObject
.
parseObject
(
orderApprovalDO
.
getDetails
(),
OrderCargoControlApplyVO
.
class
);
if
(
orderApprovalDO
.
getType
()
==
61
)
{
// 修改放货限制
Integer
lockConsigneeDay
=
applyVO
.
getIsLimitUpdateConsignee
()
?
applyVO
.
get
LockConsigneeDay
()
:
null
;
Integer
newLockConsigneeDay
=
applyVO
.
getNewIsLimitUpdateConsignee
()
?
applyVO
.
getNew
LockConsigneeDay
()
:
null
;
OrderDO
orderDO
=
orderService
.
getById
(
applyVO
.
getOrderId
());
Date
lockConsigneeTime
=
Objects
.
isNull
(
orderDO
.
getUnloadTime
())
||
Objects
.
isNull
(
lockConsigneeDay
)
?
null
:
DateUtil
.
endOfDay
(
DateUtil
.
offsetDay
(
orderDO
.
getUnloadTime
(),
l
ockConsigneeDay
));;
Date
newLockConsigneeTime
=
Objects
.
isNull
(
orderDO
.
getUnloadTime
())
||
Objects
.
isNull
(
newLockConsigneeDay
)
?
null
:
DateUtil
.
endOfDay
(
DateUtil
.
offsetDay
(
orderDO
.
getUnloadTime
(),
newL
ockConsigneeDay
));;
orderService
.
update
(
new
LambdaUpdateWrapper
<
OrderDO
>()
.
set
(
OrderDO:
:
getIsLimitUpdateConsignee
,
applyVO
.
getIsLimitUpdateConsignee
())
.
set
(
OrderDO:
:
getLockConsigneeDay
,
l
ockConsigneeDay
)
.
set
(
OrderDO:
:
getLockConsigneeTime
,
l
ockConsigneeTime
)
.
set
(
OrderDO:
:
getIsLimitUpdateConsignee
,
applyVO
.
get
New
IsLimitUpdateConsignee
())
.
set
(
OrderDO:
:
getLockConsigneeDay
,
newL
ockConsigneeDay
)
.
set
(
OrderDO:
:
getLockConsigneeTime
,
newL
ockConsigneeTime
)
.
eq
(
OrderDO:
:
getOrderId
,
orderApprovalDO
.
getOrderId
()));
// TODO 补充订单日志
}
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/orderCargoControl/OrderCargoControlApplyVO.java
View file @
4baa88f3
package
cn
.
iocoder
.
yudao
.
module
.
order
.
vo
.
orderCargoControl
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotNull
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
;
@Data
@ApiModel
(
value
=
"订单控货相关审核信息"
)
...
...
@@ -71,10 +76,17 @@ public class OrderCargoControlApplyVO {
@ApiModelProperty
(
value
=
"放货锁定收货人天数"
)
private
Integer
lockConsigneeDay
;
// @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
=
"放货锁定收货人到期时间"
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@JsonFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
Date
lockConsigneeTime
;
@ApiModelProperty
(
value
=
"新的是否限制修改收货人"
)
private
Boolean
newIsLimitUpdateConsignee
;
@ApiModelProperty
(
value
=
"新的放货锁定收货人天数"
)
private
Integer
newLockConsigneeDay
;
@ApiModelProperty
(
value
=
"附件"
)
...
...
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