Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
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
pseer
gxpt_ht
Commits
e4e554b3
Commit
e4e554b3
authored
Aug 02, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改会员日计算
parent
a3f2ddc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+4
-4
No files found.
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
e4e554b3
...
...
@@ -1347,9 +1347,9 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
order
.
setDuration
(
priceResponse
.
getDuration
());
order
.
setDiscountRatio
(
priceResponse
.
getDiscountRatio
());
if
(
priceResponse
.
getPayFee
().
compareTo
(
order
.
getPayPrice
())
!=
0
// || priceResponse.getDuration().compareTo(request.getDuration()) !=
0
// || priceResponse.getBalance().compareTo(request.getBalance()) !=
0
// || priceResponse.getDiscountRatio().compareTo(request.getDiscountRatio()) !=
0
&&
priceResponse
.
getDuration
().
compareTo
(
request
.
getDuration
())
!=
0
&&
priceResponse
.
getBalance
().
compareTo
(
request
.
getBalance
())
!=
0
&&
priceResponse
.
getDiscountRatio
().
compareTo
(
request
.
getDiscountRatio
())
!=
0
)
{
throw
new
BaseException
(
"订单金额异常!"
);
}
...
...
@@ -2568,7 +2568,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
queryWrapper
.
eq
(
SOrder:
:
getConsumerId
,
user
.
getId
());
queryWrapper
.
in
(
SOrder:
:
getStatus
,
OrderStatusEnum
.
getValidOrderStatus
());
queryWrapper
.
eq
(
SOrder:
:
getPayStatus
,
YesNoEnum
.
yes
.
getIndex
());
queryWrapper
.
g
t
(
SOrder:
:
getDiscountRatio
,
new
BigDecimal
(
50
));
queryWrapper
.
g
e
(
SOrder:
:
getDiscountRatio
,
new
BigDecimal
(
50
));
// queryWrapper.ne(SOrder::getPayPrice, new BigDecimal(0));
//预约结束时间大于等于今天的年月日
queryWrapper
.
ge
(
SOrder:
:
getPreEndDate
,
DateUtils
.
parseDate
(
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD
,
new
Date
())));
...
...
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