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
4 years ago
by
xioa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步数据增加线程池
parent
5dc5cf7c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
31 deletions
+84
-31
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
+0
-0
TrackingFlowTask.java
src/main/java/track/task/TrackingFlowTask.java
+67
-29
No files found.
src/main/java/common/model/TkioFlowHistory.java
View file @
62af79db
...
@@ -21,6 +21,7 @@ public class TkioFlowHistory {
...
@@ -21,6 +21,7 @@ public class TkioFlowHistory {
private
String
yMonth
;
private
String
yMonth
;
private
String
yMonthNext
;
private
String
yMonthNext
;
private
String
nextCode
;
private
String
nextCode
;
private
Integer
firstRecode
;
...
@@ -108,4 +109,12 @@ public class TkioFlowHistory {
...
@@ -108,4 +109,12 @@ public class TkioFlowHistory {
public
void
setNextCode
(
String
nextCode
)
{
public
void
setNextCode
(
String
nextCode
)
{
this
.
nextCode
=
nextCode
;
this
.
nextCode
=
nextCode
;
}
}
public
Integer
getFirstRecode
()
{
return
firstRecode
;
}
public
void
setFirstRecode
(
Integer
firstRecode
)
{
this
.
firstRecode
=
firstRecode
;
}
}
}
This diff is collapsed.
Click to expand it.
src/main/java/common/repository/CalculationFlowRepository.java
View file @
62af79db
...
@@ -2,14 +2,20 @@ package common.repository;
...
@@ -2,14 +2,20 @@ package common.repository;
import
common.model.CalculationFlow
;
import
common.model.CalculationFlow
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.List
;
@Transactional
@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
);
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
);
}
}
This diff is collapsed.
Click to expand it.
src/main/java/common/repository/TkioFlowHistoryRepository.java
View file @
62af79db
This diff is collapsed.
Click to expand it.
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