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
ccf6f6ad
Commit
ccf6f6ad
authored
Jan 04, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pack sort;
parent
052cbd69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
+9
-13
SPack.java
share-system/src/main/java/share/system/domain/SPack.java
+6
-12
PackServiceImpl.java
.../main/java/share/system/service/impl/PackServiceImpl.java
+1
-0
SCleanRecordsServiceImpl.java
...a/share/system/service/impl/SCleanRecordsServiceImpl.java
+2
-1
No files found.
share-system/src/main/java/share/system/domain/SPack.java
View file @
ccf6f6ad
...
...
@@ -62,16 +62,10 @@ public class SPack extends BaseEntity {
@Excel
(
name
=
"是否首次下单可用:0否,1是"
)
private
Integer
firstOrderAvailable
;
@Override
public
String
toString
()
{
return
"SPack{"
+
"id="
+
id
+
", name='"
+
name
+
'\''
+
", duration='"
+
duration
+
'\''
+
", price="
+
price
+
", packaStartPeriod='"
+
packaStartPeriod
+
'\''
+
", packaEndPeriod='"
+
packaEndPeriod
+
'\''
+
", firstOrderAvailable="
+
firstOrderAvailable
+
'}'
;
}
/**
* 是否首次下单可用
*/
@Excel
(
name
=
"排序"
)
private
Integer
sort
;
}
share-system/src/main/java/share/system/service/impl/PackServiceImpl.java
View file @
ccf6f6ad
...
...
@@ -130,6 +130,7 @@ public class PackServiceImpl extends ServiceImpl<PackMapper, SPack> implements I
}
LambdaQueryWrapper
<
SPack
>
queryWrapper
=
new
LambdaQueryWrapper
();
queryWrapper
.
in
(
SPack:
:
getId
,
packIds
);
queryWrapper
.
orderByAsc
(
SPack:
:
getSort
);
List
<
SPack
>
packList
=
baseMapper
.
selectList
(
queryWrapper
);
SConsumer
user
=
consumerService
.
getInfo
();
List
<
SOrder
>
orderList
=
new
ArrayList
<>();
...
...
share-system/src/main/java/share/system/service/impl/SCleanRecordsServiceImpl.java
View file @
ccf6f6ad
...
...
@@ -7,6 +7,7 @@ import java.util.List;
import
cn.hutool.core.date.DateUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
share.common.constant.Constants
;
import
share.common.enums.CleaningStatusEnum
;
import
share.common.enums.OpTypeEnum
;
import
share.common.enums.RoleTypeEnum
;
...
...
@@ -195,7 +196,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
Date
now
=
DateUtil
.
date
();
LambdaQueryWrapper
<
SCleanRecords
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
SCleanRecords:
:
getStatus
,
0
);
queryWrapper
.
le
(
SCleanRecords:
:
getCreateTime
,
DateUtil
.
offsetMinute
(
now
,
-
30
));
queryWrapper
.
le
(
SCleanRecords:
:
getCreateTime
,
DateUtil
.
offsetMinute
(
now
,
-
Constants
.
ROOM_LOCK_DELAY_MINUTE
));
List
<
SCleanRecords
>
list
=
baseMapper
.
selectList
(
queryWrapper
);
if
(
list
.
size
()
==
0
)
{
return
Boolean
.
FALSE
;
...
...
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