Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
youjj
cloud-platform
Commits
3f5111c7
Commit
3f5111c7
authored
Jun 11, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改价格计算
parent
3b96a003
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
TourGoodSpeBiz.java
.../main/java/com/xxfc/platform/tour/biz/TourGoodSpeBiz.java
+1
-1
No files found.
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodSpeBiz.java
View file @
3f5111c7
...
@@ -69,7 +69,7 @@ public class TourGoodSpeBiz extends BaseBiz<TourGoodSpePriceMapper, TourGoodSpeP
...
@@ -69,7 +69,7 @@ public class TourGoodSpeBiz extends BaseBiz<TourGoodSpePriceMapper, TourGoodSpeP
}
}
}
}
totalPrice
=
price
.
multiply
(
new
BigDecimal
(
number
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
totalPrice
=
price
.
multiply
(
new
BigDecimal
(
number
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
totalChildPrice
=
childNumber
>
0
?
p
rice
.
multiply
(
new
BigDecimal
(
childNumber
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
):
new
BigDecimal
(
"0.00"
);
totalChildPrice
=
childNumber
>
0
?
childP
rice
.
multiply
(
new
BigDecimal
(
childNumber
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
):
new
BigDecimal
(
"0.00"
);
priceVo
.
setPrice
(
price
);
priceVo
.
setPrice
(
price
);
priceVo
.
setChildPrice
(
childPrice
);
priceVo
.
setChildPrice
(
childPrice
);
priceVo
.
setRealPrice
(
totalPrice
);
priceVo
.
setRealPrice
(
totalPrice
);
...
...
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