Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
7ec1dfd9
Commit
7ec1dfd9
authored
Apr 24, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
93c36341
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
workspace.xml
.idea/workspace.xml
+0
-0
AccountCheck.java
src/main/java/tkio/task/AccountCheck.java
+5
-0
No files found.
.idea/workspace.xml
View file @
7ec1dfd9
This diff is collapsed.
Click to expand it.
src/main/java/tkio/task/AccountCheck.java
View file @
7ec1dfd9
package
tkio
.
task
;
import
common.controller.ContractController
;
import
common.model.Contract
;
import
common.repository.ContractRepository
;
import
dic.ContractTypeEnum
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
tkio.model.Account
;
import
tkio.repository.AccountRepository
;
...
...
@@ -16,6 +19,7 @@ import java.util.List;
* Created by mxq on 2018/4/23.
*/
public
class
AccountCheck
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AccountCheck
.
class
);
@Autowired
AccountRepository
accountRepository
;
@Autowired
...
...
@@ -23,6 +27,7 @@ public class AccountCheck {
public
void
task
(){
List
<
Account
>
accountList
=
accountRepository
.
findRootParentsByPubDate
(
DateUtil
.
getBeforeDays
(
30
));
logger
.
error
(
"startDate :"
+
DateUtil
.
getBeforeDays
(
30
));
if
(
ValidateUtil
.
isValid
(
accountList
)){
List
<
Account
>
list
=
new
ArrayList
<>();
for
(
Account
a:
accountList
){
...
...
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