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
9884cd47
Commit
9884cd47
authored
Jan 09, 2025
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-fix' into release
parents
a067cde6
1d4a4eb1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ProdCostCalculation.java
...r/yudao/module/product/component/ProdCostCalculation.java
+3
-3
No files found.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/component/ProdCostCalculation.java
View file @
9884cd47
...
...
@@ -581,7 +581,7 @@ public class ProdCostCalculation {
private
void
discountCalculation
(
ProdConditionParam
prodParam
,
CouponAvailableGroupDto
groupDto
)
{
// 没有定价或者指定更新订单品名优惠,并且成交单价大于0时,去实时更新品名的优惠信息
if
((
Objects
.
isNull
(
prodParam
.
getIsPriced
())
||
!
prodParam
.
getIsPriced
()
||
prodParam
.
getCalculationType
()
==
6
)
&&
!
prodParam
.
getSplitCustomPriceType
()
&&
!
prodParam
.
getSpecialPriceType
()
&&
!
prodParam
.
getChannelManualPricing
()
&&
prodParam
.
getOneFreight
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
if
((
Objects
.
isNull
(
prodParam
.
getIsPriced
())
||
!
prodParam
.
getIsPriced
()
||
prodParam
.
getCalculationType
()
==
6
||
prodParam
.
getCalculationType
()
==
7
)
&&
!
prodParam
.
getSplitCustomPriceType
()
&&
!
prodParam
.
getSpecialPriceType
()
&&
!
prodParam
.
getChannelManualPricing
()
&&
prodParam
.
getOneFreight
().
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
BigDecimal
orgFreightReduceAmount
=
BigDecimal
.
ZERO
;
BigDecimal
orgClearanceReduceAmount
=
BigDecimal
.
ZERO
;
if
(
Objects
.
nonNull
(
groupDto
)
&&
CollectionUtil
.
isNotEmpty
(
groupDto
.
getCouponAvailableDtoList
()))
{
...
...
@@ -590,7 +590,7 @@ public class ProdCostCalculation {
BigDecimal
freightReduceAmount
=
BigDecimal
.
ZERO
;
BigDecimal
clearanceReduceAmount
=
BigDecimal
.
ZERO
;
List
<
CouponInfoVO
>
couponInfoVOList
=
new
ArrayList
<>();
if
(
Objects
.
nonNull
(
prodParam
.
getIsPriced
())
&&
prodParam
.
getIsPriced
()
&&
prodParam
.
getCalculationType
()
==
6
)
{
if
(
Objects
.
nonNull
(
prodParam
.
getIsPriced
())
&&
prodParam
.
getIsPriced
()
&&
(
prodParam
.
getCalculationType
()
==
6
||
prodParam
.
getCalculationType
()
==
7
)
)
{
// 当是已定价的产品,并且执行活动优惠重算时,计算方式为 新成交单价=原成交单价+原优惠金额-当前优惠金额
orgFreightReduceAmount
=
prodParam
.
getDiscountFreightPrice
();
orgClearanceReduceAmount
=
prodParam
.
getDiscountClearanceFeePrice
();
...
...
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