Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
Project
Project
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
INET-TWO
server
dcs-plan
Commits
fc1e24d6
Commit
fc1e24d6
authored
Sep 23, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
有效期LocalDateTime
parent
747c2f42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ExtSupplierManageServiceImpl.java
.../plan/core/service/impl/ExtSupplierManageServiceImpl.java
+4
-2
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtSupplierManageServiceImpl.java
View file @
fc1e24d6
...
@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -59,7 +60,8 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
...
@@ -59,7 +60,8 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
public
DxPageImpl
earlyWarning
(
SearchQueryCondition
searchQueryCondition
,
int
warningDay
)
{
public
DxPageImpl
earlyWarning
(
SearchQueryCondition
searchQueryCondition
,
int
warningDay
)
{
List
<
SupplierEarlyWarningVO
>
list
=
Lists
.
newArrayList
();
List
<
SupplierEarlyWarningVO
>
list
=
Lists
.
newArrayList
();
LocalDate
warningDate
=
LocalDate
.
now
().
minusDays
(
warningDay
);
LocalDate
warningDate
=
LocalDate
.
now
().
minusDays
(
warningDay
);
DxPageImpl
dxPage
=
this
.
recursionSupplierManageLinks
(
searchQueryCondition
,
warningDate
.
toString
());
LocalDateTime
localDateTime
=
warningDate
.
atStartOfDay
();
DxPageImpl
dxPage
=
this
.
recursionSupplierManageLinks
(
searchQueryCondition
,
localDateTime
);
List
<
ExtSupplierManageLinkVO
>
content
=
dxPage
.
getContent
();
List
<
ExtSupplierManageLinkVO
>
content
=
dxPage
.
getContent
();
for
(
ExtSupplierManageLinkVO
extSupplierManageLinkVO
:
content
)
{
for
(
ExtSupplierManageLinkVO
extSupplierManageLinkVO
:
content
)
{
ExtSupplierManageVO
source
=
extSupplierManageLinkVO
.
getSource
();
ExtSupplierManageVO
source
=
extSupplierManageLinkVO
.
getSource
();
...
@@ -86,7 +88,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
...
@@ -86,7 +88,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
return
supplierEarlyWarningVO
;
return
supplierEarlyWarningVO
;
}
}
private
DxPageImpl
recursionSupplierManageLinks
(
SearchQueryCondition
searchQueryCondition
,
String
warningDate
)
{
private
DxPageImpl
recursionSupplierManageLinks
(
SearchQueryCondition
searchQueryCondition
,
LocalDateTime
warningDate
)
{
/*SearchQueryCondition condition = SearchQueryCondition.builder().searchItems(
/*SearchQueryCondition condition = SearchQueryCondition.builder().searchItems(
SearchItems.of(
SearchItems.of(
SearchItems.BooleanOperator.AND,
SearchItems.BooleanOperator.AND,
...
...
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