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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
64 deletions
+39
-64
workspace.xml
.idea/workspace.xml
+34
-64
AccountCheck.java
src/main/java/tkio/task/AccountCheck.java
+5
-0
No files found.
.idea/workspace.xml
View file @
7ec1dfd9
...
...
@@ -3,7 +3,7 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e2e217e2-2dd6-4c6f-ad19-b1cba46bc7ad"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/
common/controller/ContractController.java"
afterPath=
"$PROJECT_DIR$/src/main/java/common/controller/ContractController
.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/
tkio/task/AccountCheck.java"
afterPath=
"$PROJECT_DIR$/src/main/java/tkio/task/AccountCheck
.java"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -24,51 +24,21 @@
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"default_target"
/>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"ContractController.java"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"ContractController.java"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/controller/ContractController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
60
"
>
<caret
line=
"
267"
column=
"24"
lean-forward=
"true"
selection-start-line=
"267"
selection-start-column=
"24"
selection-end-line=
"267"
selection-end-column=
"24
"
/>
<state
relative-caret-position=
"2
53
"
>
<caret
line=
"
48"
column=
"4"
lean-forward=
"true"
selection-start-line=
"48"
selection-start-column=
"4"
selection-end-line=
"48"
selection-end-column=
"91
"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"
ContractService.java"
pinned=
"false"
current-in-tab=
"fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/service/ContractService
.java"
>
<file
leaf-file-name=
"
AccountCheck.java"
pinned=
"false"
current-in-tab=
"tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
tkio/task/AccountCheck
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"183"
>
<caret
line=
"33"
column=
"19"
lean-forward=
"false"
selection-start-line=
"33"
selection-start-column=
"19"
selection-end-line=
"33"
selection-end-column=
"19"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"TkioAccountServiceImpl.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/service/impl/TkioAccountServiceImpl.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1380"
>
<caret
line=
"90"
column=
"44"
lean-forward=
"true"
selection-start-line=
"90"
selection-start-column=
"44"
selection-end-line=
"90"
selection-end-column=
"44"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"AccountIOServiceImpl.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/userio/service/impl/AccountIOServiceImpl.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1081"
>
<caret
line=
"60"
column=
"22"
lean-forward=
"false"
selection-start-line=
"60"
selection-start-column=
"22"
selection-end-line=
"60"
selection-end-column=
"22"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"SendEmailServiceImpl.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/service/impl/SendEmailServiceImpl.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"184"
>
<caret
line=
"18"
column=
"13"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"13"
selection-end-line=
"18"
selection-end-column=
"13"
/>
<caret
line=
"29"
column=
"63"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"63"
selection-end-line=
"29"
selection-end-column=
"63"
/>
<folding
/>
</state>
</provider>
...
...
@@ -179,7 +149,6 @@
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/service/impl/AccountFlowRestrictServiceImpl.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/task/AccountTask.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/repository/AccountRepository.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/task/AccountCheck.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/userio/task/AccountCheck.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/userio/repository/IOAccountRepository.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/userio/task/IOAccountCheck.java"
/>
...
...
@@ -188,6 +157,7 @@
<option
value=
"$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/service/impl/TkioAccountServiceImpl.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/controller/ContractController.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/task/AccountCheck.java"
/>
</list>
</option>
</component>
...
...
@@ -1318,13 +1288,6 @@
<workItem
from=
"1523843445576"
duration=
"7238000"
/>
<workItem
from=
"1523876594256"
duration=
"75800000"
/>
</task>
<task
id=
"LOCAL-00061"
summary=
"app排序"
>
<created>
1517299766015
</created>
<option
name=
"number"
value=
"00061"
/>
<option
name=
"presentableId"
value=
"LOCAL-00061"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1517299766015
</updated>
</task>
<task
id=
"LOCAL-00062"
summary=
"app排序"
>
<created>
1517301138523
</created>
<option
name=
"number"
value=
"00062"
/>
...
...
@@ -1661,11 +1624,18 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1524558445793
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"110"
/>
<task
id=
"LOCAL-00110"
summary=
"2 "
>
<created>
1524558942961
</created>
<option
name=
"number"
value=
"00110"
/>
<option
name=
"presentableId"
value=
"LOCAL-00110"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1524558942961
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"111"
/>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"473
277
000"
/>
<option
name=
"totallyTimeSpent"
value=
"473
554
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-8"
y=
"-8"
width=
"1382"
height=
"744"
extended-state=
"6"
/>
...
...
@@ -1692,7 +1662,7 @@
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.5155483"
sideWeight=
"0.49546143"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Spring"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.3289689"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.5581015"
sideWeight=
"0.5"
order=
"5"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
fals
e"
show_stripe_button=
"true"
weight=
"0.2927383"
sideWeight=
"0.5"
order=
"8"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
tru
e"
show_stripe_button=
"true"
weight=
"0.2927383"
sideWeight=
"0.5"
order=
"8"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Bean Validation"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32980332"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Web"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"4"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Theme Preview"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -2137,14 +2107,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/task/AccountCheck.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"344"
>
<caret
line=
"30"
column=
"35"
lean-forward=
"true"
selection-start-line=
"30"
selection-start-column=
"35"
selection-end-line=
"30"
selection-end-column=
"35"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/spring/applicationContext-schedule.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"292"
>
...
...
@@ -2201,18 +2163,18 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/service/impl/
SendEmail
ServiceImpl.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/service/impl/
TkioAccount
ServiceImpl.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
84
"
>
<caret
line=
"
18"
column=
"13"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"13"
selection-end-line=
"18"
selection-end-column=
"13
"
/>
<state
relative-caret-position=
"1
380
"
>
<caret
line=
"
90"
column=
"44"
lean-forward=
"true"
selection-start-line=
"90"
selection-start-column=
"44"
selection-end-line=
"90"
selection-end-column=
"44
"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/service/impl/
TkioAccount
ServiceImpl.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/service/impl/
SendEmail
ServiceImpl.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1380
"
>
<caret
line=
"
90"
column=
"44"
lean-forward=
"true"
selection-start-line=
"90"
selection-start-column=
"44"
selection-end-line=
"90"
selection-end-column=
"44
"
/>
<state
relative-caret-position=
"
-71
"
>
<caret
line=
"
18"
column=
"13"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"13"
selection-end-line=
"18"
selection-end-column=
"13
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -2227,8 +2189,16 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/controller/ContractController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"260"
>
<caret
line=
"267"
column=
"24"
lean-forward=
"true"
selection-start-line=
"267"
selection-start-column=
"24"
selection-end-line=
"267"
selection-end-column=
"24"
/>
<state
relative-caret-position=
"253"
>
<caret
line=
"48"
column=
"4"
lean-forward=
"true"
selection-start-line=
"48"
selection-start-column=
"4"
selection-end-line=
"48"
selection-end-column=
"91"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/task/AccountCheck.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"183"
>
<caret
line=
"29"
column=
"63"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"63"
selection-end-line=
"29"
selection-end-column=
"63"
/>
<folding
/>
</state>
</provider>
...
...
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