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
566ffccb
Commit
566ffccb
authored
Aug 29, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'order-update' into dev
parents
ba8b04e1
5d7680e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
37 deletions
+56
-37
OrderCargoControlServiceImpl.java
...rvice/orderCargoControl/OrderCargoControlServiceImpl.java
+56
-37
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlServiceImpl.java
View file @
566ffccb
...
@@ -5,7 +5,6 @@ import cn.hutool.core.date.DateUtil;
...
@@ -5,7 +5,6 @@ import cn.hutool.core.date.DateUtil;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.common.util.spring.enums.UserTypeEnum
;
import
cn.iocoder.yudao.framework.common.util.spring.enums.UserTypeEnum
;
import
cn.iocoder.yudao.framework.common.util.validation.PhoneUtil
;
import
cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO
;
import
cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO
;
import
cn.iocoder.yudao.framework.excel.handler.WaterMarkHandler
;
import
cn.iocoder.yudao.framework.excel.handler.WaterMarkHandler
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
import
cn.iocoder.yudao.framework.i18n.core.I18nMessage
;
...
@@ -27,7 +26,6 @@ import cn.iocoder.yudao.module.order.convert.orderCargoControl.OrderCargoControl
...
@@ -27,7 +26,6 @@ import cn.iocoder.yudao.module.order.convert.orderCargoControl.OrderCargoControl
import
cn.iocoder.yudao.module.order.dal.dataobject.approval.OrderApprovalDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.approval.OrderApprovalDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.order.OrderDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.order.OrderDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderCargoControl.OrderCargoControlDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderCargoControl.OrderCargoControlDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderCargoControlPick.OrderCargoControlPickDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderConsignor.OrderConsignorDO
;
import
cn.iocoder.yudao.module.order.dal.dataobject.orderConsignor.OrderConsignorDO
;
import
cn.iocoder.yudao.module.order.dal.mysql.approval.OrderApprovalMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.approval.OrderApprovalMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderCargoControl.OrderCargoControlMapper
;
import
cn.iocoder.yudao.module.order.dal.mysql.orderCargoControl.OrderCargoControlMapper
;
...
@@ -40,7 +38,6 @@ import cn.iocoder.yudao.module.order.service.order.OrderQueryService;
...
@@ -40,7 +38,6 @@ import cn.iocoder.yudao.module.order.service.order.OrderQueryService;
import
cn.iocoder.yudao.module.order.service.order.OrderService
;
import
cn.iocoder.yudao.module.order.service.order.OrderService
;
import
cn.iocoder.yudao.module.order.vo.order.*
;
import
cn.iocoder.yudao.module.order.vo.order.*
;
import
cn.iocoder.yudao.module.order.vo.orderCargoControl.*
;
import
cn.iocoder.yudao.module.order.vo.orderCargoControl.*
;
import
cn.iocoder.yudao.module.order.vo.orderCargoControlPick.OrderCargoControlPickApplyVO
;
import
cn.iocoder.yudao.module.system.api.dict.DictDataApi
;
import
cn.iocoder.yudao.module.system.api.dict.DictDataApi
;
import
cn.iocoder.yudao.module.system.api.sms.SmsCodeApi
;
import
cn.iocoder.yudao.module.system.api.sms.SmsCodeApi
;
import
cn.iocoder.yudao.module.system.api.sms.dto.code.SmsCodeSendReqDTO
;
import
cn.iocoder.yudao.module.system.api.sms.dto.code.SmsCodeSendReqDTO
;
...
@@ -54,14 +51,12 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -54,14 +51,12 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.security.crypto.password.PasswordEncoder
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
javax.annotation.Resource
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.*
;
import
java.io.*
;
...
@@ -498,17 +493,25 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -498,17 +493,25 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
// TODO 审批取消、审批拒绝,待补充业务日志及其他细节
// TODO 审批取消、审批拒绝,待补充业务日志及其他细节
if
(
orderApprovalDO
.
getType
()
==
61
)
{
if
(
orderApprovalDO
.
getType
()
==
61
)
{
msg
=
result
==
3
?
"收货人限制修改申请取消"
:
"收货人限制修改申请拒绝"
;
msg
=
result
==
3
?
"收货人限制修改申请取消"
:
"收货人限制修改申请拒绝"
;
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
ApplyInfoVO
applyInfoVO
;
if
(
applyVO
.
getIsLimitUpdateConsignee
()
!=
applyVO
.
getNewIsLimitUpdateConsignee
())
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"是否限制修改收货人"
);
applyInfoVO
.
setName
(
"是否限制修改收货人"
);
applyInfoVO
.
setOrgValue
(
applyVO
.
getIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setOrgValue
(
applyVO
.
getIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setNewValue
(
applyVO
.
getNewIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setNewValue
(
applyVO
.
getNewIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
}
if
((
Objects
.
nonNull
(
applyVO
.
getLockConsigneeDay
())
&&
Objects
.
nonNull
(
applyVO
.
getNewLockConsigneeDay
())
&&
!
Objects
.
equals
(
applyVO
.
getLockConsigneeDay
(),
applyVO
.
getNewLockConsigneeDay
()))
||
(
Objects
.
isNull
(
applyVO
.
getLockConsigneeDay
())
&&
Objects
.
nonNull
(
applyVO
.
getNewLockConsigneeDay
()))
||
(
Objects
.
nonNull
(
applyVO
.
getLockConsigneeDay
())
&&
Objects
.
isNull
(
applyVO
.
getNewLockConsigneeDay
())))
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"锁定收货人天数"
);
applyInfoVO
.
setName
(
"锁定收货人天数"
);
applyInfoVO
.
setOrgValue
(
Objects
.
isNull
(
applyVO
.
getLockConsigneeDay
())
?
"空"
:
applyVO
.
getLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setOrgValue
(
Objects
.
isNull
(
applyVO
.
getLockConsigneeDay
())
?
"空"
:
applyVO
.
getLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setNewValue
(
Objects
.
isNull
(
applyVO
.
getNewLockConsigneeDay
())
?
"空"
:
applyVO
.
getNewLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setNewValue
(
Objects
.
isNull
(
applyVO
.
getNewLockConsigneeDay
())
?
"空"
:
applyVO
.
getNewLockConsigneeDay
()
+
"天"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
}
else
if
(
orderApprovalDO
.
getType
()
==
61
)
{
}
}
else
if
(
orderApprovalDO
.
getType
()
==
62
)
{
msg
=
result
==
3
?
"海外仓修改申请取消"
:
"海外仓修改申请拒绝"
;
msg
=
result
==
3
?
"海外仓修改申请取消"
:
"海外仓修改申请拒绝"
;
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"订单修改为海外仓模式"
);
applyInfoVO
.
setName
(
"订单修改为海外仓模式"
);
...
@@ -528,17 +531,25 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -528,17 +531,25 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
.
set
(
OrderDO:
:
getLockConsigneeTime
,
newLockConsigneeTime
)
.
set
(
OrderDO:
:
getLockConsigneeTime
,
newLockConsigneeTime
)
.
eq
(
OrderDO:
:
getOrderId
,
orderApprovalDO
.
getOrderId
()));
.
eq
(
OrderDO:
:
getOrderId
,
orderApprovalDO
.
getOrderId
()));
msg
=
"收货人限制修改申请审批通过"
;
msg
=
"收货人限制修改申请审批通过"
;
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
ApplyInfoVO
applyInfoVO
;
if
(
applyVO
.
getIsLimitUpdateConsignee
()
!=
applyVO
.
getNewIsLimitUpdateConsignee
())
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"是否限制修改收货人"
);
applyInfoVO
.
setName
(
"是否限制修改收货人"
);
applyInfoVO
.
setOrgValue
(
applyVO
.
getIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setOrgValue
(
applyVO
.
getIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setNewValue
(
applyVO
.
getNewIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setNewValue
(
applyVO
.
getNewIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
}
if
((
Objects
.
nonNull
(
applyVO
.
getLockConsigneeDay
())
&&
Objects
.
nonNull
(
applyVO
.
getNewLockConsigneeDay
())
&&
!
Objects
.
equals
(
applyVO
.
getLockConsigneeDay
(),
applyVO
.
getNewLockConsigneeDay
()))
||
(
Objects
.
isNull
(
applyVO
.
getLockConsigneeDay
())
&&
Objects
.
nonNull
(
applyVO
.
getNewLockConsigneeDay
()))
||
(
Objects
.
nonNull
(
applyVO
.
getLockConsigneeDay
())
&&
Objects
.
isNull
(
applyVO
.
getNewLockConsigneeDay
())))
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"锁定收货人天数"
);
applyInfoVO
.
setName
(
"锁定收货人天数"
);
applyInfoVO
.
setOrgValue
(
Objects
.
isNull
(
applyVO
.
getLockConsigneeDay
())
?
"空"
:
applyVO
.
getLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setOrgValue
(
Objects
.
isNull
(
applyVO
.
getLockConsigneeDay
())
?
"空"
:
applyVO
.
getLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setNewValue
(
Objects
.
isNull
(
applyVO
.
getNewLockConsigneeDay
())
?
"空"
:
applyVO
.
getNewLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setNewValue
(
Objects
.
isNull
(
applyVO
.
getNewLockConsigneeDay
())
?
"空"
:
applyVO
.
getNewLockConsigneeDay
()
+
"天"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
}
else
if
(
orderApprovalDO
.
getType
()
==
62
)
{
}
}
else
if
(
orderApprovalDO
.
getType
()
==
62
)
{
// TODO 海外仓修改申请
// TODO 海外仓修改申请
...
@@ -612,16 +623,24 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -612,16 +623,24 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
StringUtils
.
isNotBlank
(
orderCargoControlApplyVO
.
getCcIds
())
?
orderCargoControlApplyVO
.
getCcIds
().
split
(
StrUtil
.
COMMA
)
:
null
);
StringUtils
.
isNotBlank
(
orderCargoControlApplyVO
.
getCcIds
())
?
orderCargoControlApplyVO
.
getCcIds
().
split
(
StrUtil
.
COMMA
)
:
null
);
orderApprovalDO
.
setFormId
(
formId
);
orderApprovalDO
.
setFormId
(
formId
);
msg
=
"收货人限制修改申请"
;
msg
=
"收货人限制修改申请"
;
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
ApplyInfoVO
applyInfoVO
;
if
(
orderCargoControlApplyVO
.
getIsLimitUpdateConsignee
()
!=
orderCargoControlApplyVO
.
getNewIsLimitUpdateConsignee
())
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"是否限制修改收货人"
);
applyInfoVO
.
setName
(
"是否限制修改收货人"
);
applyInfoVO
.
setOrgValue
(
orderCargoControlApplyVO
.
getIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setOrgValue
(
orderCargoControlApplyVO
.
getIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setNewValue
(
orderCargoControlApplyVO
.
getNewIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
applyInfoVO
.
setNewValue
(
orderCargoControlApplyVO
.
getNewIsLimitUpdateConsignee
()
?
"是"
:
"否"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
}
if
((
Objects
.
nonNull
(
orderCargoControlApplyVO
.
getLockConsigneeDay
())
&&
Objects
.
nonNull
(
orderCargoControlApplyVO
.
getNewLockConsigneeDay
())
&&
!
Objects
.
equals
(
orderCargoControlApplyVO
.
getLockConsigneeDay
(),
orderCargoControlApplyVO
.
getNewLockConsigneeDay
()))
||
(
Objects
.
isNull
(
orderCargoControlApplyVO
.
getLockConsigneeDay
())
&&
Objects
.
nonNull
(
orderCargoControlApplyVO
.
getNewLockConsigneeDay
()))
||
(
Objects
.
nonNull
(
orderCargoControlApplyVO
.
getLockConsigneeDay
())
&&
Objects
.
isNull
(
orderCargoControlApplyVO
.
getNewLockConsigneeDay
())))
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"锁定收货人天数"
);
applyInfoVO
.
setName
(
"锁定收货人天数"
);
applyInfoVO
.
setOrgValue
(
Objects
.
isNull
(
orderCargoControlApplyVO
.
getLockConsigneeDay
())
?
"空"
:
orderCargoControlApplyVO
.
getLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setOrgValue
(
Objects
.
isNull
(
orderCargoControlApplyVO
.
getLockConsigneeDay
())
?
"空"
:
orderCargoControlApplyVO
.
getLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setNewValue
(
Objects
.
isNull
(
orderCargoControlApplyVO
.
getNewLockConsigneeDay
())
?
"空"
:
orderCargoControlApplyVO
.
getNewLockConsigneeDay
()
+
"天"
);
applyInfoVO
.
setNewValue
(
Objects
.
isNull
(
orderCargoControlApplyVO
.
getNewLockConsigneeDay
())
?
"空"
:
orderCargoControlApplyVO
.
getNewLockConsigneeDay
()
+
"天"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
}
}
else
if
(
orderCargoControlApplyVO
.
getApplyType
()
==
62
)
{
}
else
if
(
orderCargoControlApplyVO
.
getApplyType
()
==
62
)
{
orderApprovalDO
.
setOrderId
(
orderCargoControlApplyVO
.
getOrderId
());
orderApprovalDO
.
setOrderId
(
orderCargoControlApplyVO
.
getOrderId
());
orderApprovalDO
.
setType
(
62
);
orderApprovalDO
.
setType
(
62
);
...
...
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