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
17be0e13
Commit
17be0e13
authored
Mar 09, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序退款增加判断是否有使用中的订单才断电,删除
parent
9cb8d974
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
RedisTask.java
share-quartz/src/main/java/share/quartz/task/RedisTask.java
+1
-1
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+4
-0
No files found.
share-quartz/src/main/java/share/quartz/task/RedisTask.java
View file @
17be0e13
...
@@ -276,7 +276,7 @@ public class RedisTask {
...
@@ -276,7 +276,7 @@ public class RedisTask {
}
}
//判断订单是否已经添加保洁记录
//判断订单是否已经添加保洁记录
SCleanRecords
cleanRecords
=
isCleanRecordsService
.
lastCleanByRoomId
(
sOrder
.
getRoomId
());
SCleanRecords
cleanRecords
=
isCleanRecordsService
.
lastCleanByRoomId
(
sOrder
.
getRoomId
());
if
(
cleanRecords
.
getStatus
().
compareTo
(
CleaningStatusEnum
.
UNCLEAN
.
getCode
())!=
0
)
{
if
(
ObjectUtils
.
isEmpty
(
cleanRecords
)
||
cleanRecords
.
getStatus
().
compareTo
(
CleaningStatusEnum
.
UNCLEAN
.
getCode
())
!=
0
)
{
boolean
b
=
isCleanRecordsService
.
addSCleanRecords
(
sOrder
.
getStoreId
(),
sOrder
.
getRoomId
());
boolean
b
=
isCleanRecordsService
.
addSCleanRecords
(
sOrder
.
getStoreId
(),
sOrder
.
getRoomId
());
}
}
//删除redis中的值
//删除redis中的值
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
17be0e13
...
@@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.ObjectUtils
;
import
share.common.constant.Constants
;
import
share.common.constant.Constants
;
import
share.common.core.page.PageDomain
;
import
share.common.core.page.PageDomain
;
import
share.common.core.page.TableSupport
;
import
share.common.core.page.TableSupport
;
...
@@ -795,6 +796,9 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -795,6 +796,9 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
SOrder
lastOrder
=
lastOrderOp
.
orElse
(
null
);
SOrder
lastOrder
=
lastOrderOp
.
orElse
(
null
);
if
(
Objects
.
nonNull
(
lastOrder
)&&
Objects
.
nonNull
(
lastOrder
.
getEndDate
())&&
lastOrder
.
getEndDate
().
compareTo
(
request
.
getPreStartDate
())<
0
){
if
(
Objects
.
nonNull
(
lastOrder
)&&
Objects
.
nonNull
(
lastOrder
.
getEndDate
())&&
lastOrder
.
getEndDate
().
compareTo
(
request
.
getPreStartDate
())<
0
){
SCleanRecords
sCleanRecords
=
cleanRecordsService
.
lastCleanByRoomId
(
lastOrder
.
getRoomId
());
SCleanRecords
sCleanRecords
=
cleanRecordsService
.
lastCleanByRoomId
(
lastOrder
.
getRoomId
());
if
(
ObjectUtils
.
isEmpty
(
sCleanRecords
))
{
return
;
}
if
(
sCleanRecords
.
getStatus
().
compareTo
(
CleaningStatusEnum
.
CLEANED
.
getCode
())==
0
if
(
sCleanRecords
.
getStatus
().
compareTo
(
CleaningStatusEnum
.
CLEANED
.
getCode
())==
0
&&
sCleanRecords
.
getEndDate
().
compareTo
(
lastOrder
.
getEndDate
())>
0
&&
sCleanRecords
.
getEndDate
().
compareTo
(
lastOrder
.
getEndDate
())>
0
&&
sCleanRecords
.
getEndDate
().
compareTo
(
request
.
getPreStartDate
())<
0
){
&&
sCleanRecords
.
getEndDate
().
compareTo
(
request
.
getPreStartDate
())<
0
){
...
...
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