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
03ff9fb0
Commit
03ff9fb0
authored
Aug 28, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善控货订单放货限制修改申请业务
Signed-off-by:
zhengyi
<
landuo321@aliyun.com
>
parent
130b198d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
OrderCargoControlServiceImpl.java
...rvice/orderCargoControl/OrderCargoControlServiceImpl.java
+19
-7
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlServiceImpl.java
View file @
03ff9fb0
package
cn
.
iocoder
.
yudao
.
module
.
order
.
service
.
orderCargoControl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.common.util.spring.enums.UserTypeEnum
;
...
...
@@ -51,6 +52,7 @@ import com.alibaba.excel.ExcelWriter;
import
com.alibaba.excel.write.metadata.WriteSheet
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
lombok.AllArgsConstructor
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -493,11 +495,21 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
// TODO 审批取消、审批拒绝,待补充业务日志及其他细节
return
;
}
if
(
result
==
2
){
if
(
orderApprovalDO
.
getType
()
==
61
){
// TODO 修改放货限制
if
(
result
==
2
)
{
OrderCargoControlApplyVO
applyVO
=
JSONObject
.
parseObject
(
orderApprovalDO
.
getDetails
(),
OrderCargoControlApplyVO
.
class
);
if
(
orderApprovalDO
.
getType
()
==
61
)
{
// 修改放货限制
Integer
lockConsigneeDay
=
applyVO
.
getIsLimitUpdateConsignee
()
?
applyVO
.
getLockConsigneeDay
()
:
null
;
OrderDO
orderDO
=
orderService
.
getById
(
applyVO
.
getOrderId
());
Date
lockConsigneeTime
=
Objects
.
isNull
(
orderDO
.
getUnloadTime
())
||
Objects
.
isNull
(
lockConsigneeDay
)
?
null
:
DateUtil
.
endOfDay
(
DateUtil
.
offsetDay
(
orderDO
.
getUnloadTime
(),
lockConsigneeDay
));;
orderService
.
update
(
new
LambdaUpdateWrapper
<
OrderDO
>()
.
set
(
OrderDO:
:
getIsLimitUpdateConsignee
,
applyVO
.
getIsLimitUpdateConsignee
())
.
set
(
OrderDO:
:
getLockConsigneeDay
,
lockConsigneeDay
)
.
set
(
OrderDO:
:
getLockConsigneeTime
,
lockConsigneeTime
)
.
eq
(
OrderDO:
:
getOrderId
,
orderApprovalDO
.
getOrderId
()));
// TODO 补充订单日志
}
if
(
orderApprovalDO
.
getType
()
==
62
){
if
(
orderApprovalDO
.
getType
()
==
62
)
{
// TODO 海外仓修改申请
}
}
...
...
@@ -508,7 +520,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
@Override
public
OrderCargoControlApplyVO
approvalOrderCargoControlPickLimitUpdateByOrderId
(
Long
orderId
)
{
OrderApprovalDO
orderApprovalDO
=
orderApprovalMapper
.
orderApprovalInfoByOrderIdAndType
(
orderId
,
61
);
OrderApprovalDO
orderApprovalDO
=
orderApprovalMapper
.
orderApprovalInfoByOrderIdAndType
(
orderId
,
61
);
if
(
Objects
.
isNull
(
orderApprovalDO
))
{
OrderCargoControlReleaseInfoDto
releaseInfoDto
=
this
.
getOrderCargoControlReleaseInfo
(
orderId
);
OrderCargoControlApplyVO
orderCargoControlApplyVO
=
new
OrderCargoControlApplyVO
();
...
...
@@ -522,7 +534,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
@Override
public
OrderCargoControlApplyVO
approvalOrderCargoControlOverseasWarehouseUpdateByOrderId
(
Long
orderId
)
{
OrderApprovalDO
orderApprovalDO
=
orderApprovalMapper
.
orderApprovalInfoByOrderIdAndType
(
orderId
,
62
);
OrderApprovalDO
orderApprovalDO
=
orderApprovalMapper
.
orderApprovalInfoByOrderIdAndType
(
orderId
,
62
);
if
(
Objects
.
isNull
(
orderApprovalDO
))
{
OrderCargoControlReleaseInfoDto
releaseInfoDto
=
this
.
getOrderCargoControlReleaseInfo
(
orderId
);
OrderCargoControlApplyVO
orderCargoControlApplyVO
=
new
OrderCargoControlApplyVO
();
...
...
@@ -563,7 +575,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
String
formId
=
bpmCreateServiceFactory
.
createBmp
(
userId
,
orderApprovalDO
.
getOrderApprovalId
(),
WorkFlowEmus
.
ORDER_MODEL_CHANGE
.
getKey
(),
orderDO
.
getOrderNo
(),
StringUtils
.
isNotBlank
(
orderCargoControlApplyVO
.
getCcIds
())
?
orderCargoControlApplyVO
.
getCcIds
().
split
(
StrUtil
.
COMMA
)
:
null
);
orderApprovalDO
.
setFormId
(
formId
);
}
else
if
(
orderCargoControlApplyVO
.
getApplyType
()
==
62
)
{
}
else
if
(
orderCargoControlApplyVO
.
getApplyType
()
==
62
)
{
orderApprovalDO
.
setOrderId
(
orderCargoControlApplyVO
.
getOrderId
());
orderApprovalDO
.
setType
(
62
);
orderApprovalDO
.
setDetails
(
JSONObject
.
toJSONString
(
orderCargoControlApplyVO
));
...
...
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