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
2949c5ec
Commit
2949c5ec
authored
Apr 26, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
54452c6a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
workspace.xml
.idea/workspace.xml
+0
-0
IOAccount4WebRepository.java
src/main/java/common/repository/IOAccount4WebRepository.java
+4
-4
AccountCheck.java
src/main/java/tkio/task/AccountCheck.java
+1
-0
No files found.
.idea/workspace.xml
View file @
2949c5ec
This diff is collapsed.
Click to expand it.
src/main/java/common/repository/IOAccount4WebRepository.java
View file @
2949c5ec
...
...
@@ -11,16 +11,16 @@ import java.util.List;
@Transactional
public
interface
IOAccount4WebRepository
extends
JpaRepository
<
IOAccount4Web
,
Long
>
{
@Query
(
value
=
"SELECT * from account4web where email in ?1"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT * from
io
account4web where email in ?1"
,
nativeQuery
=
true
)
List
<
IOAccount4Web
>
findByEmails
(
List
<
String
>
emails
);
@Query
(
value
=
"SELECT * from account4web where past_date = ?1"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT * from
io
account4web where past_date = ?1"
,
nativeQuery
=
true
)
List
<
IOAccount4Web
>
findByPast
(
String
yesterday
);
@Query
(
value
=
"SELECT * from account4web where status = '已过期' or status = '流量用尽'"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT * from
io
account4web where status = '已过期' or status = '流量用尽'"
,
nativeQuery
=
true
)
List
<
IOAccount4Web
>
findPast
();
@Query
(
value
=
"SELECT * from account4web where email = ?1"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT * from
io
account4web where email = ?1"
,
nativeQuery
=
true
)
IOAccount4Web
findByEmail
(
String
email
);
}
src/main/java/tkio/task/AccountCheck.java
View file @
2949c5ec
...
...
@@ -33,6 +33,7 @@ public class AccountCheck {
List
<
Account
>
list
=
new
ArrayList
<>();
for
(
Account
a:
accountList
){
List
<
Contract
>
contractList
=
contractRepository
.
findByPlatformAndEmail
(
"tkio"
,
a
.
getEmail
(),
ContractTypeEnum
.
MAIN
.
getKey
());
logger
.
error
(
"startDate :"
+
(
null
==
contractList
));
if
(
null
==
contractList
){
a
.
setStatus
(
0
);
list
.
add
(
a
);
...
...
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