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
28fbf923
Commit
28fbf923
authored
Aug 26, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据统计
parent
87905ced
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
OrderVo.java
...-system/src/main/java/share/system/domain/vo/OrderVo.java
+14
-0
OrderStatisticsResponse.java
...n/java/share/system/response/OrderStatisticsResponse.java
+4
-1
RoomStatusServiceImpl.java
...java/share/system/service/impl/RoomStatusServiceImpl.java
+4
-2
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+0
-0
No files found.
share-system/src/main/java/share/system/domain/vo/OrderVo.java
View file @
28fbf923
...
...
@@ -16,6 +16,15 @@ public class OrderVo {
private
Long
consumerId
;
/**
* 用户手机号
*/
private
String
consumerPhone
;
private
String
nickName
;
private
String
avatar
;
private
Long
storeId
;
private
Long
roomId
;
...
...
@@ -94,6 +103,9 @@ public class OrderVo {
private
String
packName
;
//优惠卷名称
private
String
couponName
;
private
String
couponCode
;
private
Integer
platformType
;
private
BigDecimal
couponPayPrice
;
//订单状态
private
Integer
orderType
;
...
...
@@ -113,10 +125,12 @@ public class OrderVo {
private
Integer
status
;
private
BigDecimal
payPrice
;
private
BigDecimal
duration
;
private
BigDecimal
balance
;
private
BigDecimal
discountRatio
;
}
share-system/src/main/java/share/system/response/OrderStatisticsResponse.java
View file @
28fbf923
...
...
@@ -2,8 +2,10 @@ package share.system.response;
import
lombok.Data
;
import
share.system.domain.SOrder
;
import
share.system.domain.vo.OrderVo
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.List
;
@Data
...
...
@@ -49,6 +51,7 @@ public class OrderStatisticsResponse {
//积分退款
private
BigDecimal
integralRefundFee
=
BigDecimal
.
ZERO
;
//订单集合
private
List
<
SOrder
>
orderList
;
private
List
<
SOrder
>
orderList
=
new
ArrayList
<>();
private
List
<
OrderVo
>
orderVoList
=
new
ArrayList
<>();
}
share-system/src/main/java/share/system/service/impl/RoomStatusServiceImpl.java
View file @
28fbf923
...
...
@@ -112,7 +112,7 @@ public class RoomStatusServiceImpl implements RoomStatusService {
queryWrapper
.
ge
(
SOrder:
:
getEndDate
,
DateUtils
.
addMinutes
(
DateUtils
.
getNowDate
(),
-
15
));
SOrder
one
=
orderService
.
getOne
(
queryWrapper
);
if
(
ObjectUtils
.
isEmpty
(
one
))
{
isAvailable
=
fals
e
;
isAvailable
=
tru
e
;
}
else
{
isAvailable
=
true
;
}
...
...
@@ -298,7 +298,9 @@ public class RoomStatusServiceImpl implements RoomStatusService {
}
else
{
if
(!
ObjectUtils
.
isEmpty
(
orderId
))
{
if
(!
order
.
getId
().
equals
(
orderId
))
{
orderEndDate
=
DateUtils
.
addMinutes
(
orderEndDate
,
Constants
.
ROOM_LOCK_DELAY_MINUTE
);
if
(
order
.
getOrderType
().
equals
(
OrderTypeEnum
.
RENEW
.
getCode
()))
{
orderEndDate
=
DateUtils
.
addMinutes
(
orderEndDate
,
Constants
.
OPEN_DOOR_AHEAD_HOUR
);
}
}
}
else
{
orderEndDate
=
DateUtils
.
addMinutes
(
orderEndDate
,
Constants
.
ROOM_LOCK_DELAY_MINUTE
);
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
28fbf923
This diff is collapsed.
Click to expand it.
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