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
62af79db
Commit
62af79db
authored
Nov 29, 2020
by
xioa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步数据增加线程池
parent
5dc5cf7c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
TkioFlowHistory.java
src/main/java/common/model/TkioFlowHistory.java
+9
-0
CalculationFlowRepository.java
...ain/java/common/repository/CalculationFlowRepository.java
+8
-2
TkioFlowHistoryRepository.java
...ain/java/common/repository/TkioFlowHistoryRepository.java
+1
-1
TrackingFlowTask.java
src/main/java/track/task/TrackingFlowTask.java
+0
-0
No files found.
src/main/java/common/model/TkioFlowHistory.java
View file @
62af79db
...
...
@@ -21,6 +21,7 @@ public class TkioFlowHistory {
private
String
yMonth
;
private
String
yMonthNext
;
private
String
nextCode
;
private
Integer
firstRecode
;
...
...
@@ -108,4 +109,12 @@ public class TkioFlowHistory {
public
void
setNextCode
(
String
nextCode
)
{
this
.
nextCode
=
nextCode
;
}
public
Integer
getFirstRecode
()
{
return
firstRecode
;
}
public
void
setFirstRecode
(
Integer
firstRecode
)
{
this
.
firstRecode
=
firstRecode
;
}
}
src/main/java/common/repository/CalculationFlowRepository.java
View file @
62af79db
...
...
@@ -2,14 +2,20 @@ package common.repository;
import
common.model.CalculationFlow
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
@Transactional
public
interface
CalculationFlowRepository
extends
JpaRepository
<
CalculationFlow
,
Long
>
{
public
interface
CalculationFlowRepository
extends
JpaRepository
<
CalculationFlow
,
Long
>
{
@Query
(
value
=
"select * from calculation_flow where status = ?1"
,
nativeQuery
=
true
)
@Query
(
value
=
"select * from calculation_flow where status = ?1"
,
nativeQuery
=
true
)
List
<
CalculationFlow
>
findByStatus
(
int
status
);
@Query
(
value
=
"update calculation_flow set status = ?2 where id = ?1 "
,
nativeQuery
=
true
)
@Transactional
@Modifying
void
updateStatus
(
Long
id
,
int
status
);
}
src/main/java/common/repository/TkioFlowHistoryRepository.java
View file @
62af79db
...
...
@@ -12,7 +12,7 @@ public interface TkioFlowHistoryRepository extends JpaRepository<TkioFlowHistory
@Query
(
value
=
"select contract_code from tkio_flow_history where email = ?1
order by ds limit 1"
,
nativeQuery
=
true
)
@Query
(
value
=
"select contract_code from tkio_flow_history where email = ?1 order by ds limit 1"
,
nativeQuery
=
true
)
String
findLastRecodeContract
(
String
email
);
@Query
(
value
=
"select sum(flow) from tkio_flow_history where email = ?1 and contract_code = ?2"
,
nativeQuery
=
true
)
...
...
src/main/java/track/task/TrackingFlowTask.java
View file @
62af79db
This diff is collapsed.
Click to expand it.
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