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
2ec333aa
Commit
2ec333aa
authored
Jan 19, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改套餐分页因筛选导致的分页失败,修改自动开始预约订单到时间自动通电
parent
dda748e1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
6 deletions
+17
-6
PackController.java
...main/java/share/web/controller/system/PackController.java
+6
-3
OrderTask.java
share-quartz/src/main/java/share/quartz/task/OrderTask.java
+3
-3
IPackService.java
...stem/src/main/java/share/system/service/IPackService.java
+2
-0
PackServiceImpl.java
.../main/java/share/system/service/impl/PackServiceImpl.java
+5
-0
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+1
-0
No files found.
share-admin/src/main/java/share/web/controller/system/PackController.java
View file @
2ec333aa
...
...
@@ -3,6 +3,8 @@ package share.web.controller.system;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -42,7 +44,7 @@ public class PackController extends BaseController {
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SPack
SPack
)
{
startPage
();
List
<
SPack
>
list
=
packService
.
selectPack
List
(
SPack
);
List
<
SPack
>
list
=
packService
.
page
List
(
SPack
);
return
getDataTable
(
list
);
}
...
...
@@ -52,7 +54,7 @@ public class PackController extends BaseController {
// @PreAuthorize("@ss.hasPermi('system:pack:list')")
@GetMapping
(
"/query"
)
public
R
<
List
<
SPack
>>
query
()
{
return
R
.
ok
(
packService
.
selectPackList
(
new
SPack
()
));
return
R
.
ok
(
packService
.
list
(
));
}
/**
...
...
@@ -62,7 +64,8 @@ public class PackController extends BaseController {
@Log
(
title
=
"套餐"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SPack
SPack
)
{
List
<
SPack
>
list
=
packService
.
selectPackList
(
SPack
);
Wrapper
<
SPack
>
wrapper
=
new
LambdaQueryWrapper
<>(
SPack
);
List
<
SPack
>
list
=
packService
.
list
(
wrapper
);
ExcelUtil
<
SPack
>
util
=
new
ExcelUtil
<
SPack
>(
SPack
.
class
);
util
.
exportExcel
(
response
,
list
,
"套餐数据"
);
}
...
...
share-quartz/src/main/java/share/quartz/task/OrderTask.java
View file @
2ec333aa
...
...
@@ -290,10 +290,10 @@ public class OrderTask {
room
.
setUpdateTime
(
new
Date
());
}
});
logger
.
info
(
"开始通电!!!!"
);
//
logger.info("开始通电!!!!");
//到达预定时间进行通电
deviceOpService
.
openOrCloseDevice
(
item
.
getRoomId
(),
item
.
getConsumerPhone
(),
OpTypeEnum
.
GET_ELECTRIC
.
getCode
(),
false
,
ZERO
);
logger
.
info
(
"通电完成!!!!"
);
//
deviceOpService.openOrCloseDevice(item.getRoomId(), item.getConsumerPhone(), OpTypeEnum.GET_ELECTRIC.getCode(), false, ZERO);
//
logger.info("通电完成!!!!");
redisUtil
.
delete
(
ReceiptRdeisEnum
.
ORDER_NO
.
getValue
()
+
item
.
getOrderNo
());
}
});
...
...
share-system/src/main/java/share/system/service/IPackService.java
View file @
2ec333aa
...
...
@@ -63,4 +63,6 @@ public interface IPackService extends IService<SPack> {
List
<
SPack
>
selectPackListByIds
(
List
<
Long
>
packIds
);
Long
addPack
(
SPack
sPack
);
List
<
SPack
>
pageList
(
SPack
sPack
);
}
share-system/src/main/java/share/system/service/impl/PackServiceImpl.java
View file @
2ec333aa
...
...
@@ -153,4 +153,9 @@ public class PackServiceImpl extends ServiceImpl<PackMapper, SPack> implements I
baseMapper
.
insertPack
(
sPack
);
return
sPack
.
getId
();
}
@Override
public
List
<
SPack
>
pageList
(
SPack
sPack
)
{
return
baseMapper
.
selectPackList
(
sPack
);
}
}
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
2ec333aa
...
...
@@ -771,6 +771,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
wechatNewService
.
sendMiniSubscribeMessage
(
sOrder
,
MessageReminderEnum
.
RESERVER
);
sOrder
.
setStartDate
(
sOrder
.
getPreStartDate
());
sOrder
.
setEndDate
(
sOrder
.
getPreEndDate
());
sOrder
.
setArrivalTime
(
new
Date
());
sOrder
.
setStatus
(
OrderStatusEnum
.
INUSE
.
getCode
());
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"orderNo"
,
sOrder
.
getOrderNo
());
...
...
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