Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
8967d652
Commit
8967d652
authored
Jun 28, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
有效状态
parent
362ed14c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
AppOrderPageDTO.java
...om/gic/haoban/manage/api/dto/licence/AppOrderPageDTO.java
+10
-0
AppOrderApiServiceImpl.java
...vice/service/out/impl/licence/AppOrderApiServiceImpl.java
+1
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/licence/AppOrderPageDTO.java
View file @
8967d652
...
@@ -236,6 +236,16 @@ public class AppOrderPageDTO implements Serializable {
...
@@ -236,6 +236,16 @@ public class AppOrderPageDTO implements Serializable {
}
}
public
Integer
getEffectiveState
()
{
public
Integer
getEffectiveState
()
{
Date
now
=
new
Date
();
if
(
this
.
getOrderStatus
()
==
2
){
if
(
now
.
before
(
this
.
beginTime
)){
effectiveState
=
1
;
}
else
if
(
now
.
before
(
this
.
endTime
)){
effectiveState
=
2
;
}
else
if
(
now
.
after
(
this
.
endTime
)){
effectiveState
=
3
;
}
}
return
effectiveState
;
return
effectiveState
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/licence/AppOrderApiServiceImpl.java
View file @
8967d652
...
@@ -298,6 +298,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService {
...
@@ -298,6 +298,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService {
qdto
.
setPageSize
(
Integer
.
MAX_VALUE
);
qdto
.
setPageSize
(
Integer
.
MAX_VALUE
);
Page
<
AppOrderPageDTO
>
page
=
getAppOrderPage
(
qdto
).
getResult
();
Page
<
AppOrderPageDTO
>
page
=
getAppOrderPage
(
qdto
).
getResult
();
List
<
AppOrderPageDTO
>
list
=
page
.
getResult
();
List
<
AppOrderPageDTO
>
list
=
page
.
getResult
();
logger
.
info
(
"查询的付费应用订单列表:{}"
,
JSON
.
toJSONString
(
list
));
Date
now
=
new
Date
();
Date
now
=
new
Date
();
Date
endTime
=
DateUtil
.
addDay
(
now
,
-
1
);
Date
endTime
=
DateUtil
.
addDay
(
now
,
-
1
);
boolean
flag
=
false
;
boolean
flag
=
false
;
...
...
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