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
2867c8c6
Commit
2867c8c6
authored
Aug 15, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refs/heads/dev' into test
parents
9b56e345
5377f553
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
logback.xml
share-admin/src/main/resources/logback.xml
+1
-1
ConsumerWalletServiceImpl.java
.../share/system/service/impl/ConsumerWalletServiceImpl.java
+1
-1
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+13
-6
No files found.
share-admin/src/main/resources/logback.xml
View file @
2867c8c6
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</encoder>
</encoder>
<filter
class=
"ch.qos.logback.classic.filter.LevelFilter"
>
<filter
class=
"ch.qos.logback.classic.filter.LevelFilter"
>
<!-- 过滤的级别 -->
<!-- 过滤的级别 -->
<level>
INFO
</level>
<level>
DEBUG
</level>
<!-- 匹配时的操作:接收(记录) -->
<!-- 匹配时的操作:接收(记录) -->
<onMatch>
ACCEPT
</onMatch>
<onMatch>
ACCEPT
</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<!-- 不匹配时的操作:拒绝(不记录) -->
...
...
share-system/src/main/java/share/system/service/impl/ConsumerWalletServiceImpl.java
View file @
2867c8c6
...
@@ -194,7 +194,7 @@ public class ConsumerWalletServiceImpl extends ServiceImpl<ConsumerWalletMapper,
...
@@ -194,7 +194,7 @@ public class ConsumerWalletServiceImpl extends ServiceImpl<ConsumerWalletMapper,
logger
.
debug
(
"修改会员用户"
);
logger
.
debug
(
"修改会员用户"
);
BigDecimal
balance
=
consumerWallet
.
getBalance
().
add
(
recharge
.
getRechargeAmount
());
BigDecimal
balance
=
consumerWallet
.
getBalance
().
add
(
recharge
.
getRechargeAmount
());
if
(
rechargeConf
.
getGiveType
().
contains
(
GiveTypeEnum
.
AMOUNT
.
getIndex
()))
{
if
(
rechargeConf
.
getGiveType
().
contains
(
GiveTypeEnum
.
AMOUNT
.
getIndex
()))
{
balance
.
add
(
rechargeConf
.
getGiveAmount
());
balance
=
balance
.
add
(
rechargeConf
.
getGiveAmount
());
consumerWallet
.
setBalance
(
balance
);
consumerWallet
.
setBalance
(
balance
);
}
else
{
}
else
{
consumerWallet
.
setBalance
(
balance
);
consumerWallet
.
setBalance
(
balance
);
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
2867c8c6
...
@@ -362,7 +362,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -362,7 +362,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
HashMap
<
String
,
Object
>
summedPrice
=
baseMapper
.
sumPrice
(
sOrder
);
HashMap
<
String
,
Object
>
summedPrice
=
baseMapper
.
sumPrice
(
sOrder
);
List
<
Long
>
ids
=
sOrderVos
.
stream
().
map
(
SOrderVo:
:
getCouponId
).
collect
(
Collectors
.
toList
());
List
<
Long
>
ids
=
sOrderVos
.
stream
().
map
(
SOrderVo:
:
getCouponId
).
collect
(
Collectors
.
toList
());
Map
<
Long
,
SConsumerCoupon
>
couponMap
=
new
HashMap
<>();
Map
<
Long
,
SConsumerCoupon
>
couponMap
=
new
HashMap
<>();
SConsumerCoupon
sConsumerCoupon
=
n
ew
SConsumerCoupon
()
;
SConsumerCoupon
sConsumerCoupon
=
n
ull
;
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
if
(
CollectionUtils
.
isNotEmpty
(
ids
))
{
couponMap
=
consumerCouponService
.
listByIds
(
ids
)
couponMap
=
consumerCouponService
.
listByIds
(
ids
)
.
stream
().
collect
(
Collectors
.
toMap
(
SConsumerCoupon:
:
getId
,
s
->
s
));
.
stream
().
collect
(
Collectors
.
toMap
(
SConsumerCoupon:
:
getId
,
s
->
s
));
...
@@ -401,7 +401,11 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -401,7 +401,11 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
tableDataInfo
.
setTotalRealRefundAmount
(
BigDecimal
.
ZERO
);
tableDataInfo
.
setTotalRealRefundAmount
(
BigDecimal
.
ZERO
);
}
}
tableDataInfo
.
setTotalSalesAmount
(
ObjectUtil
.
isNotEmpty
(
sConsumerCoupon
.
getCouponPayPrice
())
?
sConsumerCoupon
.
getCouponPayPrice
()
:
BigDecimal
.
ZERO
);
if
(
ObjectUtil
.
isNotEmpty
(
sConsumerCoupon
))
{
tableDataInfo
.
setTotalSalesAmount
(
sConsumerCoupon
.
getCouponPayPrice
());
}
else
{
tableDataInfo
.
setTotalSalesAmount
(
BigDecimal
.
ZERO
);
}
return
tableDataInfo
;
return
tableDataInfo
;
...
@@ -1828,12 +1832,15 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -1828,12 +1832,15 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
queryWrapper
.
eq
(
SOrder:
:
getIsDelete
,
YesNoEnum
.
no
.
getIndex
());
queryWrapper
.
eq
(
SOrder:
:
getIsDelete
,
YesNoEnum
.
no
.
getIndex
());
queryWrapper
.
eq
(
SOrder:
:
getStoreId
,
sOrder
.
getStoreId
());
queryWrapper
.
eq
(
SOrder:
:
getStoreId
,
sOrder
.
getStoreId
());
queryWrapper
.
eq
(
SOrder:
:
getRoomId
,
sOrder
.
getRoomId
());
queryWrapper
.
eq
(
SOrder:
:
getRoomId
,
sOrder
.
getRoomId
());
queryWrapper
.
apply
(
"(
IFNULL(start_date,pre_start_date) BETWEEN '"
String
sql
=
"
IFNULL(start_date,pre_start_date) BETWEEN '"
+
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD_HH_MM_SS
,
sOrder
.
getPreStartDate
())
+
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD_HH_MM_SS
,
sOrder
.
getPreStartDate
())
+
"' AND '"
+
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD_HH_MM_SS
,
DateUtils
.
addMinutes
(
sOrder
.
getPreEndDate
(),
Constants
.
ROOM_LOCK_DELAY_MINUTE
))
+
"' "
+
+
"' AND '"
+
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD_HH_MM_SS
,
DateUtils
.
addMinutes
(
sOrder
.
getPreEndDate
(),
Constants
.
ROOM_LOCK_DELAY_MINUTE
))
+
"' "
;
"OR IFNULL(end_date,pre_end_date) BETWEEN '"
if
(
sOrder
.
getOrderType
().
compareTo
(
OrderTypeEnum
.
RENEW
.
getCode
())!=
0
)
{
sql
+=
"OR IFNULL(end_date,pre_end_date) BETWEEN '"
+
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD_HH_MM_SS
,
DateUtils
.
addMinutes
(
sOrder
.
getPreStartDate
(),
-
Constants
.
ROOM_LOCK_DELAY_MINUTE
))
+
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD_HH_MM_SS
,
DateUtils
.
addMinutes
(
sOrder
.
getPreStartDate
(),
-
Constants
.
ROOM_LOCK_DELAY_MINUTE
))
+
"' AND '"
+
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD_HH_MM_SS
,
sOrder
.
getPreEndDate
())
+
"' )"
);
+
"' AND '"
+
DateUtils
.
parseDateToStr
(
DateUtils
.
YYYY_MM_DD_HH_MM_SS
,
sOrder
.
getPreEndDate
())
+
"'"
;
}
queryWrapper
.
apply
(
"("
+
sql
+
")"
);
SOrder
order
=
getOne
(
queryWrapper
);
SOrder
order
=
getOne
(
queryWrapper
);
if
(
ObjectUtil
.
isNotEmpty
(
order
))
{
if
(
ObjectUtil
.
isNotEmpty
(
order
))
{
baseMapper
.
updateSOrder
(
sOrder
);
baseMapper
.
updateSOrder
(
sOrder
);
...
...
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