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
b6037034
Commit
b6037034
authored
Sep 18, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海外仓申请业务补充
parent
970e9fce
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
23 deletions
+47
-23
ErrorCodeConstants.java
.../iocoder/yudao/module/order/enums/ErrorCodeConstants.java
+6
-0
OrderCargoControlServiceImpl.java
...rvice/orderCargoControl/OrderCargoControlServiceImpl.java
+15
-18
OrderCargoControlApplyVO.java
.../order/vo/orderCargoControl/OrderCargoControlApplyVO.java
+5
-2
messages.properties
yudao-server/src/main/resources/i18n/messages.properties
+6
-1
messages_en.properties
yudao-server/src/main/resources/i18n/messages_en.properties
+7
-1
messages_zh.properties
yudao-server/src/main/resources/i18n/messages_zh.properties
+8
-1
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/enums/ErrorCodeConstants.java
View file @
b6037034
...
@@ -419,4 +419,10 @@ public interface ErrorCodeConstants {
...
@@ -419,4 +419,10 @@ public interface ErrorCodeConstants {
ErrorCode
ORDER_IS_APPROVAL_IN_PROCESS_WITH_ORDERNOS
=
new
ErrorCode
(
1004001167
,
"order.is.approval.in.process.with.ordernos"
);
ErrorCode
ORDER_IS_APPROVAL_IN_PROCESS_WITH_ORDERNOS
=
new
ErrorCode
(
1004001167
,
"order.is.approval.in.process.with.ordernos"
);
// 请选择订单海外仓修改是或否
ErrorCode
ORDER_OVERSEAS_WAREHOUSE_UPDATE_IS_OR_NO
=
new
ErrorCode
(
1004001168
,
"order.overseas.warehouse.update.is.or.no"
);
// 该订单已经是海外仓订单
ErrorCode
ORDER_IS_OVERSEAS_WAREHOUSE_ORDER
=
new
ErrorCode
(
1004001169
,
"order.is.overseas.warehouse.order"
);
// 该订单已经是非海外仓订单
ErrorCode
ORDER_NOT_IS_OVERSEAS_WAREHOUSE_ORDER
=
new
ErrorCode
(
1004001170
,
"order.not.is.overseas.warehouse.order"
);
}
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControl/OrderCargoControlServiceImpl.java
View file @
b6037034
...
@@ -519,9 +519,8 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -519,9 +519,8 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
msg
=
result
==
4
?
"海外仓修改申请取消"
:
"海外仓修改申请拒绝"
;
msg
=
result
==
4
?
"海外仓修改申请取消"
:
"海外仓修改申请拒绝"
;
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"订单修改海外仓模式"
);
applyInfoVO
.
setName
(
"订单修改海外仓模式"
);
// 这里不用判断订单中的值了,只需要看申请结果就能得出原值和新值相反的文案结果
applyInfoVO
.
setOrgValue
(
applyVO
.
getOrgIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
applyInfoVO
.
setOrgValue
(
applyVO
.
getIsOverseasWarehouse
()
?
"订单修改为非海外仓"
:
"订单修改为海外仓"
);
applyInfoVO
.
setNewValue
(
applyVO
.
getNewIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
applyInfoVO
.
setNewValue
(
applyVO
.
getIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
if
(
StringUtils
.
isNotBlank
(
applyVO
.
getReasonZh
()))
{
if
(
StringUtils
.
isNotBlank
(
applyVO
.
getReasonZh
()))
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
=
new
ApplyInfoVO
();
...
@@ -564,8 +563,8 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -564,8 +563,8 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
// TODO 海外仓修改申请
// TODO 海外仓修改申请
String
type
=
orderDO
.
getType
();
String
type
=
orderDO
.
getType
();
if
(
StringUtils
.
isNotBlank
(
type
))
{
if
(
StringUtils
.
isNotBlank
(
type
))
{
type
=
applyVO
.
getIsOverseasWarehouse
()
?
type
.
concat
(
",2"
)
:
Arrays
.
stream
(
type
.
split
(
","
)).
filter
(
s
->
!
StringUtils
.
equals
(
"2"
,
s
)).
collect
(
Collectors
.
joining
(
","
));
type
=
applyVO
.
get
New
IsOverseasWarehouse
()
?
type
.
concat
(
",2"
)
:
Arrays
.
stream
(
type
.
split
(
","
)).
filter
(
s
->
!
StringUtils
.
equals
(
"2"
,
s
)).
collect
(
Collectors
.
joining
(
","
));
}
else
{
}
else
{
type
=
"2"
;
type
=
"2"
;
}
}
// TODO 修改订单海外仓模式, 不确定对订单其他方面是否有影响,订单编号生成规则与海外仓无关联
// TODO 修改订单海外仓模式, 不确定对订单其他方面是否有影响,订单编号生成规则与海外仓无关联
...
@@ -573,9 +572,8 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -573,9 +572,8 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
msg
=
"海外仓修改申请审批通过"
;
msg
=
"海外仓修改申请审批通过"
;
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"订单修改海外仓模式"
);
applyInfoVO
.
setName
(
"订单修改海外仓模式"
);
// 这里不用判断订单中的值了,只需要看申请结果就能得出原值和新值相反的文案结果
applyInfoVO
.
setOrgValue
(
applyVO
.
getOrgIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
applyInfoVO
.
setOrgValue
(
applyVO
.
getIsOverseasWarehouse
()
?
"订单修改为非海外仓"
:
"订单修改为海外仓"
);
applyInfoVO
.
setNewValue
(
applyVO
.
getNewIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
applyInfoVO
.
setNewValue
(
applyVO
.
getIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
if
(
StringUtils
.
isNotBlank
(
applyVO
.
getReasonZh
()))
{
if
(
StringUtils
.
isNotBlank
(
applyVO
.
getReasonZh
()))
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
=
new
ApplyInfoVO
();
...
@@ -616,7 +614,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -616,7 +614,7 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
BeanUtils
.
copyProperties
(
releaseInfoDto
,
orderCargoControlApplyVO
);
BeanUtils
.
copyProperties
(
releaseInfoDto
,
orderCargoControlApplyVO
);
orderCargoControlApplyVO
.
setApplyStatus
(
0
);
orderCargoControlApplyVO
.
setApplyStatus
(
0
);
orderCargoControlApplyVO
.
setOrderType
(
releaseInfoDto
.
getType
());
orderCargoControlApplyVO
.
setOrderType
(
releaseInfoDto
.
getType
());
orderCargoControlApplyVO
.
setIsOverseasWarehouse
(
StringUtils
.
isNotBlank
(
releaseInfoDto
.
getType
())
&&
releaseInfoDto
.
getType
().
contains
(
"2"
));
orderCargoControlApplyVO
.
set
Org
IsOverseasWarehouse
(
StringUtils
.
isNotBlank
(
releaseInfoDto
.
getType
())
&&
releaseInfoDto
.
getType
().
contains
(
"2"
));
return
orderCargoControlApplyVO
;
return
orderCargoControlApplyVO
;
}
else
{
}
else
{
OrderCargoControlApplyVO
applyVO
=
JSONObject
.
parseObject
(
orderApprovalDO
.
getDetails
(),
OrderCargoControlApplyVO
.
class
);
OrderCargoControlApplyVO
applyVO
=
JSONObject
.
parseObject
(
orderApprovalDO
.
getDetails
(),
OrderCargoControlApplyVO
.
class
);
...
@@ -700,14 +698,14 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -700,14 +698,14 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
}
}
}
else
if
(
orderCargoControlApplyVO
.
getApplyType
()
==
62
)
{
}
else
if
(
orderCargoControlApplyVO
.
getApplyType
()
==
62
)
{
if
(
Objects
.
isNull
(
orderCargoControlApplyVO
.
getIsOverseasWarehouse
()))
{
if
(
Objects
.
isNull
(
orderCargoControlApplyVO
.
get
New
IsOverseasWarehouse
()))
{
throw
exception
(
10000000
,
"请选择订单海外仓修改是或否"
);
throw
exception
(
ORDER_OVERSEAS_WAREHOUSE_UPDATE_IS_OR_NO
);
}
}
if
(
StringUtils
.
isNotBlank
(
orderDO
.
getType
())
&&
orderDO
.
getType
().
contains
(
"2"
)
&&
orderCargoControlApplyVO
.
getIsOverseasWarehouse
())
{
if
(
StringUtils
.
isNotBlank
(
orderDO
.
getType
())
&&
orderDO
.
getType
().
contains
(
"2"
)
&&
orderCargoControlApplyVO
.
get
New
IsOverseasWarehouse
())
{
throw
exception
(
10000000
,
"该订单已经是海外仓订单"
);
throw
exception
(
ORDER_IS_OVERSEAS_WAREHOUSE_ORDER
);
}
}
if
((
StringUtils
.
isBlank
(
orderDO
.
getType
())
||
!
orderDO
.
getType
().
contains
(
"2"
))
&&
!
orderCargoControlApplyVO
.
getIsOverseasWarehouse
())
{
if
((
StringUtils
.
isBlank
(
orderDO
.
getType
())
||
!
orderDO
.
getType
().
contains
(
"2"
))
&&
!
orderCargoControlApplyVO
.
get
New
IsOverseasWarehouse
())
{
throw
exception
(
10000000
,
"该订单已经是非海外仓订单"
);
throw
exception
(
ORDER_NOT_IS_OVERSEAS_WAREHOUSE_ORDER
);
}
}
orderApprovalDO
.
setOrderId
(
orderCargoControlApplyVO
.
getOrderId
());
orderApprovalDO
.
setOrderId
(
orderCargoControlApplyVO
.
getOrderId
());
orderApprovalDO
.
setType
(
62
);
orderApprovalDO
.
setType
(
62
);
...
@@ -719,9 +717,8 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
...
@@ -719,9 +717,8 @@ public class OrderCargoControlServiceImpl extends AbstractService<OrderCargoCont
msg
=
"海外仓修改申请"
;
msg
=
"海外仓修改申请"
;
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
"订单修改海外仓模式"
);
applyInfoVO
.
setName
(
"订单修改海外仓模式"
);
// 这里不用判断订单中的值了,只需要看申请结果就能得出原值和新值相反的文案结果
applyInfoVO
.
setOrgValue
(
orderCargoControlApplyVO
.
getOrgIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
applyInfoVO
.
setOrgValue
(
orderCargoControlApplyVO
.
getIsOverseasWarehouse
()
?
"订单修改为非海外仓"
:
"订单修改为海外仓"
);
applyInfoVO
.
setNewValue
(
orderCargoControlApplyVO
.
getNewIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
applyInfoVO
.
setNewValue
(
orderCargoControlApplyVO
.
getIsOverseasWarehouse
()
?
"订单修改为海外仓"
:
"订单修改为非海外仓"
);
list
.
add
(
applyInfoVO
);
list
.
add
(
applyInfoVO
);
if
(
StringUtils
.
isNotBlank
(
orderCargoControlApplyVO
.
getReasonZh
()))
{
if
(
StringUtils
.
isNotBlank
(
orderCargoControlApplyVO
.
getReasonZh
()))
{
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
=
new
ApplyInfoVO
();
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/orderCargoControl/OrderCargoControlApplyVO.java
View file @
b6037034
...
@@ -90,8 +90,11 @@ public class OrderCargoControlApplyVO {
...
@@ -90,8 +90,11 @@ public class OrderCargoControlApplyVO {
private
Integer
newLockConsigneeDay
;
private
Integer
newLockConsigneeDay
;
@ApiModelProperty
(
value
=
"是否海外仓"
)
@ApiModelProperty
(
value
=
"原值是否海外仓"
)
private
Boolean
isOverseasWarehouse
;
private
Boolean
orgIsOverseasWarehouse
;
@ApiModelProperty
(
value
=
"新值是否海外仓"
)
private
Boolean
newIsOverseasWarehouse
;
@ApiModelProperty
(
value
=
"附件"
)
@ApiModelProperty
(
value
=
"附件"
)
...
...
yudao-server/src/main/resources/i18n/messages.properties
View file @
b6037034
...
@@ -296,3 +296,8 @@ order.sorting.not.shipment.not.update=
...
@@ -296,3 +296,8 @@ order.sorting.not.shipment.not.update=
box.update.repeat.commit
=
box.update.repeat.commit
=
order.is.approval.in.process.with.ordernos
=
order.is.approval.in.process.with.ordernos
=
customer.approval.in.processing
=
customer.approval.in.processing
=
order.overseas.warehouse.update.is.or.no
=
order.is.overseas.warehouse.order
=
order.not.is.overseas.warehouse.order
=
\ No newline at end of file
yudao-server/src/main/resources/i18n/messages_en.properties
View file @
b6037034
...
@@ -1102,3 +1102,9 @@ order.sorting.not.shipment.not.update=Order sorting not shipped, order informati
...
@@ -1102,3 +1102,9 @@ order.sorting.not.shipment.not.update=Order sorting not shipped, order informati
box.update.repeat.commit
=
Duplicate submission of self assigned number status modification
box.update.repeat.commit
=
Duplicate submission of self assigned number status modification
order.is.approval.in.process.with.ordernos
=
Orders placed by non-main customers are being approved and cannot be merged: [{}]
order.is.approval.in.process.with.ordernos
=
Orders placed by non-main customers are being approved and cannot be merged: [{}]
customer.approval.in.processing
=
Non-main customer approval is in progress and cannot be operated
customer.approval.in.processing
=
Non-main customer approval is in progress and cannot be operated
order.overseas.warehouse.update.is.or.no
=
Please select order overseas warehouse modification Yes or No
order.is.overseas.warehouse.order
=
This order is already an overseas warehouse order
order.not.is.overseas.warehouse.order
=
This order is already a non overseas warehouse order
\ No newline at end of file
yudao-server/src/main/resources/i18n/messages_zh.properties
View file @
b6037034
...
@@ -1101,3 +1101,10 @@ order.sorting.not.shipment.not.update=\u8BA2\u5355\u5206\u62E3\u672A\u51FA\u8D27
...
@@ -1101,3 +1101,10 @@ order.sorting.not.shipment.not.update=\u8BA2\u5355\u5206\u62E3\u672A\u51FA\u8D27
box.update.repeat.commit
=
\u
81EA
\u
7F16
\u
53F7
\u
72B6
\u6001\u
4FEE
\u6539\u
91CD
\u
590D
\u
63D0
\u
4EA4
box.update.repeat.commit
=
\u
81EA
\u
7F16
\u
53F7
\u
72B6
\u6001\u
4FEE
\u6539\u
91CD
\u
590D
\u
63D0
\u
4EA4
order.is.approval.in.process.with.ordernos
=
\u
975E
\u
4E3B
\u
5BA2
\u6237\u
4E0B
\u6709\u
8BA2
\u5355\u
6B63
\u5728\u
5BA1
\u6279\u
4E2D
\u
FF0C
\u
4E0D
\u5141\u
8BB8
\u5408\u
5E76
\u
FF1A[{}]
order.is.approval.in.process.with.ordernos
=
\u
975E
\u
4E3B
\u
5BA2
\u6237\u
4E0B
\u6709\u
8BA2
\u5355\u
6B63
\u5728\u
5BA1
\u6279\u
4E2D
\u
FF0C
\u
4E0D
\u5141\u
8BB8
\u5408\u
5E76
\u
FF1A[{}]
customer.approval.in.processing
=
\u
975E
\u
4E3B
\u
5BA2
\u6237\u
5BA1
\u6279\u
6B63
\u5728\u
8FDB
\u
884C
\u
4E2D
\u
FF0C
\u
4E0D
\u5141\u
8BB8
\u5408\u
5E76
customer.approval.in.processing
=
\u
975E
\u
4E3B
\u
5BA2
\u6237\u
5BA1
\u6279\u
6B63
\u5728\u
8FDB
\u
884C
\u
4E2D
\u
FF0C
\u
4E0D
\u5141\u
8BB8
\u5408\u
5E76
order.overseas.warehouse.update.is.or.no
=
\u
8bf7
\u9009\u
62e9
\u
8ba2
\u5355\u
6d77
\u5916\u
4ed3
\u
4fee
\u6539\u
662f
\u6216\u5426
order.is.overseas.warehouse.order
=
\u
8be5
\u
8ba2
\u5355\u
5df2
\u
7ecf
\u
662f
\u
6d77
\u5916\u
4ed3
\u
8ba2
\u5355
order.not.is.overseas.warehouse.order
=
\u
8be5
\u
8ba2
\u5355\u
5df2
\u
7ecf
\u
662f
\u
975e
\u
6d77
\u5916\u
4ed3
\u
8ba2
\u5355
\ No newline at end of file
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