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
9f8f9f77
Commit
9f8f9f77
authored
Mar 05, 2025
by
332784038@qq.com
Committed by
wux
Mar 20, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特价申请的在全包价的情况下不校验清关费的参数
parent
ad6656ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+14
-10
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderServiceImpl.java
View file @
9f8f9f77
...
...
@@ -5259,11 +5259,13 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if
(
specialApplyVO
.
getFreight
().
compareTo
(
specialApplyVO
.
getOrgFreight
())
==
0
&&
Objects
.
equals
(
specialApplyVO
.
getFreightCurrency
(),
specialApplyVO
.
getOrgFreightCurrency
()))
{
throw
exception
(
SPECIAL_APPLY_DISCOUNT_FREIGHT_NEW_AMOUNT_NOT_EQ_ORG_AMOUNT
);
}
if
(
Objects
.
isNull
(
specialApplyVO
.
getClearanceFreight
())
||
specialApplyVO
.
getClearanceFreight
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
throw
exception
(
FINAL_SALE_CLEARANCE_AMOUNT_MUST_GT_ZERO
);
}
if
(
specialApplyVO
.
getClearanceFreight
().
compareTo
(
specialApplyVO
.
getOrgClearanceFreight
())
==
0
&&
Objects
.
equals
(
specialApplyVO
.
getClearanceFreightCurrency
(),
specialApplyVO
.
getOrgClearanceFreightCurrency
()))
{
throw
exception
(
SPECIAL_APPLY_DISCOUNT_CLEARANCE_NEW_AMOUNT_NOT_EQ_ORG_AMOUNT
);
if
(
specialApplyVO
.
getCharging
()
==
0
)
{
if
(
Objects
.
isNull
(
specialApplyVO
.
getClearanceFreight
())
||
specialApplyVO
.
getClearanceFreight
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
throw
exception
(
FINAL_SALE_CLEARANCE_AMOUNT_MUST_GT_ZERO
);
}
if
(
specialApplyVO
.
getClearanceFreight
().
compareTo
(
specialApplyVO
.
getOrgClearanceFreight
())
==
0
&&
Objects
.
equals
(
specialApplyVO
.
getClearanceFreightCurrency
(),
specialApplyVO
.
getOrgClearanceFreightCurrency
()))
{
throw
exception
(
SPECIAL_APPLY_DISCOUNT_CLEARANCE_NEW_AMOUNT_NOT_EQ_ORG_AMOUNT
);
}
}
}
...
...
@@ -5553,11 +5555,13 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if
(
vo
.
getFreight
().
compareTo
(
vo
.
getOrgFreight
())
==
0
&&
Objects
.
equals
(
vo
.
getFreightCurrency
(),
vo
.
getOrgFreightCurrency
()))
{
throw
exception
(
SPECIAL_APPLY_DISCOUNT_FREIGHT_NEW_AMOUNT_NOT_EQ_ORG_AMOUNT
);
}
if
(
Objects
.
isNull
(
vo
.
getClearanceFreight
())
||
vo
.
getClearanceFreight
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
throw
exception
(
FINAL_SALE_CLEARANCE_AMOUNT_MUST_GT_ZERO
);
}
if
(
vo
.
getClearanceFreight
().
compareTo
(
vo
.
getOrgClearanceFreight
())
==
0
&&
Objects
.
equals
(
vo
.
getClearanceFreightCurrency
(),
vo
.
getOrgClearanceFreightCurrency
()))
{
throw
exception
(
SPECIAL_APPLY_DISCOUNT_CLEARANCE_NEW_AMOUNT_NOT_EQ_ORG_AMOUNT
);
if
(
vo
.
getCharging
()
==
0
)
{
if
(
Objects
.
isNull
(
vo
.
getClearanceFreight
())
||
vo
.
getClearanceFreight
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
throw
exception
(
FINAL_SALE_CLEARANCE_AMOUNT_MUST_GT_ZERO
);
}
if
(
vo
.
getClearanceFreight
().
compareTo
(
vo
.
getOrgClearanceFreight
())
==
0
&&
Objects
.
equals
(
vo
.
getClearanceFreightCurrency
(),
vo
.
getOrgClearanceFreightCurrency
()))
{
throw
exception
(
SPECIAL_APPLY_DISCOUNT_CLEARANCE_NEW_AMOUNT_NOT_EQ_ORG_AMOUNT
);
}
}
}
orderItemDOList
.
add
(
orderItemDO
);
...
...
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