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
8c1d38a6
Commit
8c1d38a6
authored
Apr 24, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
181ab5ad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
69 deletions
+100
-69
workspace.xml
.idea/workspace.xml
+99
-68
ContractRepository.java
src/main/java/common/repository/ContractRepository.java
+1
-1
No files found.
.idea/workspace.xml
View file @
8c1d38a6
...
...
@@ -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/
resources/spring/applicationContext-schedule.xml"
afterPath=
"$PROJECT_DIR$/src/main/resources/spring/applicationContext-schedule.xml
"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/
java/common/repository/ContractRepository.java"
afterPath=
"$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java
"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -24,43 +24,41 @@
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"default_target"
/>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"
AccountServiceImpl
.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
tkio/service/impl/AccountServiceImpl
.java"
>
<file
leaf-file-name=
"
ContractController
.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/controller/ContractController
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
536
"
>
<caret
line=
"
36"
column=
"41"
lean-forward=
"true"
selection-start-line=
"36"
selection-start-column=
"41"
selection-end-line=
"36"
selection-end-column=
"41
"
/>
<state
relative-caret-position=
"
237
"
>
<caret
line=
"
150"
column=
"42"
lean-forward=
"true"
selection-start-line=
"150"
selection-start-column=
"42"
selection-end-line=
"150"
selection-end-column=
"42
"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"
IOAccountCheck
.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
userio/task/IOAccountCheck
.java"
>
<file
leaf-file-name=
"
ContractService
.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/service/ContractService
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"412"
>
<caret
line=
"34"
column=
"47"
lean-forward=
"false"
selection-start-line=
"34"
selection-start-column=
"47"
selection-end-line=
"34"
selection-end-column=
"47"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"194"
>
<caret
line=
"15"
column=
"12"
lean-forward=
"false"
selection-start-line=
"15"
selection-start-column=
"12"
selection-end-line=
"15"
selection-end-column=
"12"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"
applicationContext-schedule.xml"
pinned=
"false"
current-in-tab=
"tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/
resources/spring/applicationContext-schedule.xml
"
>
<file
leaf-file-name=
"
ContractServiceImpl.java"
pinned=
"false"
current-in-tab=
"fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/
java/common/service/impl/ContractServiceImpl.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
499
"
>
<caret
line=
"
62"
column=
"83"
lean-forward=
"true"
selection-start-line=
"62"
selection-start-column=
"83"
selection-end-line=
"62"
selection-end-column=
"83
"
/>
<state
relative-caret-position=
"
125
"
>
<caret
line=
"
105"
column=
"65"
lean-forward=
"false"
selection-start-line=
"105"
selection-start-column=
"65"
selection-end-line=
"105"
selection-end-column=
"65
"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"
AccountCheck.java"
pinned=
"false"
current-in-tab=
"fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
tkio/task/AccountCheck
.java"
>
<file
leaf-file-name=
"
ContractRepository.java"
pinned=
"false"
current-in-tab=
"tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/repository/ContractRepository
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
38
"
>
<caret
line=
"
24"
column=
"68"
lean-forward=
"false"
selection-start-line=
"24"
selection-start-column=
"68"
selection-end-line=
"24"
selection-end-column=
"68
"
/>
<state
relative-caret-position=
"1
71
"
>
<caret
line=
"
35"
column=
"110"
lean-forward=
"false"
selection-start-line=
"35"
selection-start-column=
"110"
selection-end-line=
"35"
selection-end-column=
"110
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -167,7 +165,6 @@
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/model/Account.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/service/impl/AccountServiceImpl.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/service/ContractService.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/controller/ContractController.java"
/>
<option
value=
"$PROJECT_DIR$/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/service/impl/AccountFlowRestrictServiceImpl.java"
/>
...
...
@@ -180,6 +177,7 @@
<option
value=
"$PROJECT_DIR$/src/main/java/userio/task/IOAccountCheck.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/service/impl/ContractServiceImpl.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/resources/spring/applicationContext-schedule.xml"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
/>
</list>
</option>
</component>
...
...
@@ -708,6 +706,36 @@
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"manager"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"manager"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"src"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"main"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"java"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"common"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"controller"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
<pane
id=
"Scratches"
/>
...
...
@@ -1216,13 +1244,6 @@
<workItem
from=
"1523843445576"
duration=
"7238000"
/>
<workItem
from=
"1523876594256"
duration=
"75800000"
/>
</task>
<task
id=
"LOCAL-00058"
summary=
"合同"
>
<created>
1517282095150
</created>
<option
name=
"number"
value=
"00058"
/>
<option
name=
"presentableId"
value=
"LOCAL-00058"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1517282095151
</updated>
</task>
<task
id=
"LOCAL-00059"
summary=
"合同"
>
<created>
1517282798128
</created>
<option
name=
"number"
value=
"00059"
/>
...
...
@@ -1559,11 +1580,18 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1524472486638
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"107"
/>
<task
id=
"LOCAL-00107"
summary=
"2 "
>
<created>
1524551539440
</created>
<option
name=
"number"
value=
"00107"
/>
<option
name=
"presentableId"
value=
"LOCAL-00107"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1524551539440
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"108"
/>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"47
0348
000"
/>
<option
name=
"totallyTimeSpent"
value=
"47
1306
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-8"
y=
"-8"
width=
"1382"
height=
"744"
extended-state=
"6"
/>
...
...
@@ -1775,6 +1803,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"115"
>
<caret
line=
"11"
column=
"28"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"28"
selection-end-line=
"11"
selection-end-column=
"28"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -1797,6 +1826,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"253"
>
<caret
line=
"11"
column=
"0"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"0"
selection-end-line=
"11"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -1825,6 +1855,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"183"
>
<caret
line=
"309"
column=
"71"
lean-forward=
"true"
selection-start-line=
"309"
selection-start-column=
"71"
selection-end-line=
"309"
selection-end-column=
"71"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -1870,6 +1901,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"183"
>
<caret
line=
"51"
column=
"63"
lean-forward=
"true"
selection-start-line=
"51"
selection-start-column=
"63"
selection-end-line=
"51"
selection-end-column=
"63"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -1884,6 +1916,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"620"
>
<caret
line=
"137"
column=
"67"
lean-forward=
"true"
selection-start-line=
"137"
selection-start-column=
"67"
selection-end-line=
"137"
selection-end-column=
"67"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -1955,6 +1988,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"276"
>
<caret
line=
"12"
column=
"0"
lean-forward=
"true"
selection-start-line=
"12"
selection-start-column=
"0"
selection-end-line=
"12"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -2025,13 +2059,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.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"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/userio/repository/IOAccountRepository.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"322"
>
...
...
@@ -2039,72 +2066,76 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/service/ContractService
.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
tkio/task/AccountTask
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
194
"
>
<caret
line=
"
29"
column=
"15"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"15"
selection-end-line=
"29"
selection-end-column=
"15
"
/>
<state
relative-caret-position=
"
276
"
>
<caret
line=
"
84"
column=
"68"
lean-forward=
"false"
selection-start-line=
"84"
selection-start-column=
"68"
selection-end-line=
"84"
selection-end-column=
"68
"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/controller/ContractController
.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
userio/task/IOAccountCheck
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2011"
>
<caret
line=
"194"
column=
"37"
lean-forward=
"false"
selection-start-line=
"194"
selection-start-column=
"37"
selection-end-line=
"194"
selection-end-column=
"37"
/>
<folding
/>
<state
relative-caret-position=
"412"
>
<caret
line=
"34"
column=
"47"
lean-forward=
"false"
selection-start-line=
"34"
selection-start-column=
"47"
selection-end-line=
"34"
selection-end-column=
"47"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/task/Account
Tas
k.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/task/Account
Chec
k.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
276
"
>
<caret
line=
"
84"
column=
"68"
lean-forward=
"false"
selection-start-line=
"84"
selection-start-column=
"68"
selection-end-line=
"84"
selection-end-column=
"68
"
/>
<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/
java/common/service/impl/ContractServiceImpl.java
"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/
resources/spring/applicationContext-schedule.xml
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"5059"
>
<caret
line=
"366"
column=
"49"
lean-forward=
"false"
selection-start-line=
"366"
selection-start-column=
"49"
selection-end-line=
"366"
selection-end-column=
"49"
/>
<folding>
<element
signature=
"imports"
expanded=
"false"
/>
<marker
date=
"1524539107806"
expanded=
"true"
signature=
"25477:25801"
ph=
"{...}"
/>
<marker
date=
"1524539107806"
expanded=
"true"
signature=
"25844:26131"
ph=
"{...}"
/>
</folding>
<state
relative-caret-position=
"292"
>
<caret
line=
"62"
column=
"56"
lean-forward=
"false"
selection-start-line=
"62"
selection-start-column=
"56"
selection-end-line=
"62"
selection-end-column=
"56"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/service/impl/AccountServiceImpl.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"536"
>
<caret
line=
"36"
column=
"41"
lean-forward=
"
tru
e"
selection-start-line=
"36"
selection-start-column=
"41"
selection-end-line=
"36"
selection-end-column=
"41"
/>
<caret
line=
"36"
column=
"41"
lean-forward=
"
fals
e"
selection-start-line=
"36"
selection-start-column=
"41"
selection-end-line=
"36"
selection-end-column=
"41"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
userio/task/IOAccountCheck
.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/controller/ContractController
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"412"
>
<caret
line=
"34"
column=
"47"
lean-forward=
"false"
selection-start-line=
"34"
selection-start-column=
"47"
selection-end-line=
"34"
selection-end-column=
"47"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"237"
>
<caret
line=
"150"
column=
"42"
lean-forward=
"true"
selection-start-line=
"150"
selection-start-column=
"42"
selection-end-line=
"150"
selection-end-column=
"42"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
tkio/task/AccountCheck
.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/service/ContractService
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
38
"
>
<caret
line=
"
24"
column=
"68"
lean-forward=
"false"
selection-start-line=
"24"
selection-start-column=
"68"
selection-end-line=
"24"
selection-end-column=
"68
"
/>
<state
relative-caret-position=
"1
94
"
>
<caret
line=
"
15"
column=
"12"
lean-forward=
"false"
selection-start-line=
"15"
selection-start-column=
"12"
selection-end-line=
"15"
selection-end-column=
"12
"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/spring/applicationContext-schedule.xml"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/service/impl/ContractServiceImpl.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"125"
>
<caret
line=
"105"
column=
"65"
lean-forward=
"false"
selection-start-line=
"105"
selection-start-column=
"65"
selection-end-line=
"105"
selection-end-column=
"65"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
499
"
>
<caret
line=
"
62"
column=
"83"
lean-forward=
"true"
selection-start-line=
"62"
selection-start-column=
"83"
selection-end-line=
"62"
selection-end-column=
"83
"
/>
<state
relative-caret-position=
"
171
"
>
<caret
line=
"
35"
column=
"110"
lean-forward=
"false"
selection-start-line=
"35"
selection-start-column=
"110"
selection-end-line=
"35"
selection-end-column=
"110
"
/>
<folding
/>
</state>
</provider>
...
...
src/main/java/common/repository/ContractRepository.java
View file @
8c1d38a6
...
...
@@ -33,7 +33,7 @@ public interface ContractRepository extends JpaRepository<Contract, Long> {
@Query
(
value
=
"SELECT * from contract where platform = ?1 and email = ?2 and type = ?3"
,
nativeQuery
=
true
)
List
<
Contract
>
findByPlatformAndEmail
(
String
platform
,
String
email
,
String
type
);
@Query
(
value
=
"SELECT * from contract where platform = ?1 and email = ?2 and type = ?3 order by ds desc limit 1"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT * from contract where platform = ?1 and email = ?2 and type = ?3 order by ds
,end_date
desc limit 1"
,
nativeQuery
=
true
)
Contract
findByPlatformAndEmailLimit1
(
String
platform
,
String
email
,
String
type
);
@Query
(
value
=
"SELECT * from contract where platform = ?1 and email = ?2 and type = ?3 and price_level = ?4 order by ds desc limit 1"
,
nativeQuery
=
true
)
...
...
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