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
7cf8e60f
Commit
7cf8e60f
authored
Nov 21, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改参与集点活动
parent
29b7d1c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
PointActivitiesServiceImpl.java
...share/system/service/impl/PointActivitiesServiceImpl.java
+5
-3
No files found.
share-system/src/main/java/share/system/service/impl/PointActivitiesServiceImpl.java
View file @
7cf8e60f
...
@@ -99,7 +99,7 @@ public class PointActivitiesServiceImpl extends ServiceImpl<PointActivitiesMappe
...
@@ -99,7 +99,7 @@ public class PointActivitiesServiceImpl extends ServiceImpl<PointActivitiesMappe
);
);
if
(
ObjectUtil
.
isNotEmpty
(
oldPointActivities
))
{
if
(
ObjectUtil
.
isNotEmpty
(
oldPointActivities
))
{
if
(
ObjectUtil
.
isNotEmpty
(
oldPointActivities
.
getLastConsumptionTime
()))
{
if
(
ObjectUtil
.
isNotEmpty
(
oldPointActivities
.
getLastConsumptionTime
()))
{
if
(
DateUtils
.
addHours
(
oldPointActivities
.
getLastConsumptionTime
(),
pointActivitiesConf
.
getTimeInterval
()).
compareTo
(
new
Date
())
>
=
0
if
(
DateUtils
.
addHours
(
oldPointActivities
.
getLastConsumptionTime
(),
pointActivitiesConf
.
getTimeInterval
()).
compareTo
(
new
Date
())
<
=
0
&&
!
oldPointActivities
.
getPoints
().
equals
(
pointActivitiesConf
.
getPointsRequired
()))
{
&&
!
oldPointActivities
.
getPoints
().
equals
(
pointActivitiesConf
.
getPointsRequired
()))
{
oldPointActivities
.
setPoints
(
oldPointActivities
.
getPoints
()
+
YesNoEnum
.
yes
.
getIndex
());
oldPointActivities
.
setPoints
(
oldPointActivities
.
getPoints
()
+
YesNoEnum
.
yes
.
getIndex
());
oldPointActivities
.
setLastConsumptionTime
(
sOrder
.
getPayTime
());
oldPointActivities
.
setLastConsumptionTime
(
sOrder
.
getPayTime
());
...
@@ -168,25 +168,27 @@ public class PointActivitiesServiceImpl extends ServiceImpl<PointActivitiesMappe
...
@@ -168,25 +168,27 @@ public class PointActivitiesServiceImpl extends ServiceImpl<PointActivitiesMappe
List
<
PointActivities
>
activitiesList
=
List
<
PointActivities
>
activitiesList
=
pointActivitiesMapper
.
selectList
(
new
LambdaQueryWrapper
<
PointActivities
>()
pointActivitiesMapper
.
selectList
(
new
LambdaQueryWrapper
<
PointActivities
>()
.
eq
(
PointActivities:
:
getConsumerId
,
info
.
getId
())
.
eq
(
PointActivities:
:
getConsumerId
,
info
.
getId
())
//当前年月,
次数未到的 or 领取优惠券未领取,年月在上个月
的
//当前年月,
活动次数未完成
的
.
eq
(
PointActivities:
:
getCurrentYear
,
LocalDate
.
now
().
getYear
())
.
eq
(
PointActivities:
:
getCurrentYear
,
LocalDate
.
now
().
getYear
())
.
eq
(
PointActivities:
:
getCurrentMonth
,
LocalDate
.
now
().
getMonthValue
())
.
eq
(
PointActivities:
:
getCurrentMonth
,
LocalDate
.
now
().
getMonthValue
())
.
lt
(
PointActivities:
:
getPoints
,
4
)
.
lt
(
PointActivities:
:
getPoints
,
4
)
.
eq
(
PointActivities:
:
getIsReceive
,
YesNoEnum
.
no
.
getIndex
())
.
eq
(
PointActivities:
:
getIsReceive
,
YesNoEnum
.
no
.
getIndex
())
.
eq
(
PointActivities:
:
getCouponReceived
,
YesNoEnum
.
no
.
getIndex
())
.
eq
(
PointActivities:
:
getCouponReceived
,
YesNoEnum
.
no
.
getIndex
())
.
or
()
.
or
()
//当前年月,活动次数以完成未领取的
.
eq
(
PointActivities:
:
getCurrentYear
,
LocalDate
.
now
().
getYear
())
.
eq
(
PointActivities:
:
getCurrentYear
,
LocalDate
.
now
().
getYear
())
.
eq
(
PointActivities:
:
getCurrentMonth
,
LocalDate
.
now
().
getMonthValue
())
.
eq
(
PointActivities:
:
getCurrentMonth
,
LocalDate
.
now
().
getMonthValue
())
.
eq
(
PointActivities:
:
getPoints
,
4
)
.
eq
(
PointActivities:
:
getPoints
,
4
)
.
eq
(
PointActivities:
:
getIsReceive
,
YesNoEnum
.
yes
.
getIndex
())
.
eq
(
PointActivities:
:
getIsReceive
,
YesNoEnum
.
yes
.
getIndex
())
.
eq
(
PointActivities:
:
getCouponReceived
,
YesNoEnum
.
no
.
getIndex
())
.
eq
(
PointActivities:
:
getCouponReceived
,
YesNoEnum
.
no
.
getIndex
())
.
or
()
.
or
()
//
或者夸年
的
//
夸年的,已完成,未领取
的
.
eq
(
PointActivities:
:
getCurrentYear
,
LocalDate
.
now
().
getYear
()
-
1
)
.
eq
(
PointActivities:
:
getCurrentYear
,
LocalDate
.
now
().
getYear
()
-
1
)
.
eq
(
PointActivities:
:
getCurrentMonth
,
LocalDate
.
now
().
getMonthValue
()
+
11
)
.
eq
(
PointActivities:
:
getCurrentMonth
,
LocalDate
.
now
().
getMonthValue
()
+
11
)
.
eq
(
PointActivities:
:
getIsReceive
,
YesNoEnum
.
yes
.
getIndex
())
.
eq
(
PointActivities:
:
getIsReceive
,
YesNoEnum
.
yes
.
getIndex
())
.
eq
(
PointActivities:
:
getCouponReceived
,
YesNoEnum
.
no
.
getIndex
())
.
eq
(
PointActivities:
:
getCouponReceived
,
YesNoEnum
.
no
.
getIndex
())
.
or
()
.
or
()
//当前年,上个月份,已完成,未领取的
.
eq
(
PointActivities:
:
getCurrentYear
,
LocalDate
.
now
().
getYear
())
.
eq
(
PointActivities:
:
getCurrentYear
,
LocalDate
.
now
().
getYear
())
.
eq
(
PointActivities:
:
getCurrentMonth
,
LocalDate
.
now
().
getMonthValue
()
-
1
)
.
eq
(
PointActivities:
:
getCurrentMonth
,
LocalDate
.
now
().
getMonthValue
()
-
1
)
.
eq
(
PointActivities:
:
getIsReceive
,
YesNoEnum
.
yes
.
getIndex
())
.
eq
(
PointActivities:
:
getIsReceive
,
YesNoEnum
.
yes
.
getIndex
())
...
...
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