记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
d7fc7daa
Commit
d7fc7daa
authored
Sep 22, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断新老会员逻辑调整;
parent
76802106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
AdamUserMemberVo.java
...a/com/liquidnet/service/adam/dto/vo/AdamUserMemberVo.java
+8
-3
No files found.
liquidnet-bus-api/liquidnet-service-adam-api/src/main/java/com/liquidnet/service/adam/dto/vo/AdamUserMemberVo.java
View file @
d7fc7daa
...
@@ -34,7 +34,7 @@ public class AdamUserMemberVo implements Serializable, Cloneable {
...
@@ -34,7 +34,7 @@ public class AdamUserMemberVo implements Serializable, Cloneable {
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
DateUtil
.
DATE_FULL_STR
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
DateUtil
.
DATE_FULL_STR
)
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
private
static
final
LocalDateTime
oldMemberSpotTime
=
LocalDateTime
.
parse
(
"2022-09-
02 00
:00:00"
,
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
));
private
static
final
LocalDateTime
oldMemberSpotTime
=
LocalDateTime
.
parse
(
"2022-09-
27 17
:00:00"
,
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
));
private
static
final
AdamUserMemberVo
obj
=
new
AdamUserMemberVo
();
private
static
final
AdamUserMemberVo
obj
=
new
AdamUserMemberVo
();
public
static
AdamUserMemberVo
getNew
()
{
public
static
AdamUserMemberVo
getNew
()
{
...
@@ -70,12 +70,17 @@ public class AdamUserMemberVo implements Serializable, Cloneable {
...
@@ -70,12 +70,17 @@ public class AdamUserMemberVo implements Serializable, Cloneable {
/**
/**
* 是否为老会员
* 是否为老会员
* <p>
* 实际使用中需结合isActive()判断
* </p>
*
*
* @return true-是
* @return true-是
*/
*/
@JsonIgnore
@JsonIgnore
public
boolean
isOldMember
()
{
public
boolean
isOldMember
()
{
LocalDateTime
expiryAt
=
this
.
getExpiryAt
();
LocalDateTime
createdAt
=
this
.
getCreatedAt
();
return
expiryAt
.
isBefore
(
oldMemberSpotTime
);
LocalDateTime
updatedAt
=
this
.
getUpdatedAt
();
// 创建时间在`指定日期`之前,且(更新时间为空或更新时间在`指定时间`之前)
return
createdAt
.
isBefore
(
oldMemberSpotTime
)
&&
(
null
==
updatedAt
||
(
updatedAt
.
isBefore
(
oldMemberSpotTime
)));
}
}
}
}
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