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
20953f1c
Commit
20953f1c
authored
Feb 01, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app排序
parent
cbf4c45d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
89 deletions
+51
-89
workspace.xml
.idea/workspace.xml
+50
-88
ContractRepository.java
src/main/java/common/repository/ContractRepository.java
+1
-1
No files found.
.idea/workspace.xml
View file @
20953f1c
...
...
@@ -2,13 +2,8 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e2e217e2-2dd6-4c6f-ad19-b1cba46bc7ad"
name=
"Default"
comment=
""
>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/common/task/ContractSendEmailThread.java"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/common/task/ContractTask.java"
/>
<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/common/repository/ContractRepository.java"
afterPath=
"$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/common/service/impl/ContractServiceImpl.java"
afterPath=
"$PROJECT_DIR$/src/main/java/common/service/impl/ContractServiceImpl.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/resources/spring/applicationContext-schedule.xml"
afterPath=
"$PROJECT_DIR$/src/main/resources/spring/applicationContext-schedule.xml"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -32,8 +27,8 @@
<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=
"2
28
"
>
<caret
line=
"
177"
column=
"40"
lean-forward=
"false"
selection-start-line=
"177"
selection-start-column=
"40"
selection-end-line=
"177"
selection-end-column=
"40
"
/>
<state
relative-caret-position=
"2
74
"
>
<caret
line=
"
67"
column=
"23"
lean-forward=
"false"
selection-start-line=
"67"
selection-start-column=
"17"
selection-end-line=
"67"
selection-end-column=
"23
"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
...
...
@@ -41,44 +36,21 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"ContractSendEmailThread.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/task/ContractSendEmailThread.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-184"
>
<caret
line=
"25"
column=
"13"
lean-forward=
"false"
selection-start-line=
"25"
selection-start-column=
"13"
selection-end-line=
"25"
selection-end-column=
"13"
/>
<folding>
<element
signature=
"e#1123#1124#0"
expanded=
"true"
/>
<element
signature=
"e#1163#1164#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"ContractTask.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/task/ContractTask.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
298
"
>
<caret
line=
"
45"
column=
"41"
lean-forward=
"true"
selection-start-line=
"45"
selection-start-column=
"41"
selection-end-line=
"45"
selection-end-column=
"41
"
/>
<state
relative-caret-position=
"
367
"
>
<caret
line=
"
51"
column=
"66"
lean-forward=
"false"
selection-start-line=
"51"
selection-start-column=
"66"
selection-end-line=
"51"
selection-end-column=
"66
"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"applicationContext-schedule.xml"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"applicationContext-schedule.xml"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/spring/applicationContext-schedule.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"324"
>
<caret
line=
"29"
column=
"67"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"67"
selection-end-line=
"29"
selection-end-column=
"67"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<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=
"183"
>
<caret
line=
"25"
column=
"13"
lean-forward=
"false"
selection-start-line=
"25"
selection-start-column=
"13"
selection-end-line=
"25"
selection-end-column=
"13"
/>
<caret
line=
"29"
column=
"52"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"52"
selection-end-line=
"29"
selection-end-column=
"52"
/>
<folding
/>
</state>
</provider>
...
...
@@ -94,21 +66,11 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"TrackAccountController.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/track/controller/TrackAccountController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-46"
>
<caret
line=
"73"
column=
"197"
lean-forward=
"false"
selection-start-line=
"73"
selection-start-column=
"197"
selection-end-line=
"73"
selection-end-column=
"197"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"ContractRepository.java"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"ContractRepository.java"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
91
"
>
<caret
line=
"3
3"
column=
"34"
lean-forward=
"false"
selection-start-line=
"33"
selection-start-column=
"19"
selection-end-line=
"33"
selection-end-column=
"34
"
/>
<state
relative-caret-position=
"3
43
"
>
<caret
line=
"3
5"
column=
"81"
lean-forward=
"false"
selection-start-line=
"35"
selection-start-column=
"78"
selection-end-line=
"35"
selection-end-column=
"81
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -218,9 +180,9 @@
<option
value=
"$PROJECT_DIR$/src/main/java/common/task/ContractSendEmailThread.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/controller/ContractController.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/service/impl/ContractServiceImpl.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/task/ContractTask.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>
...
...
@@ -1336,14 +1298,7 @@
<workItem
from=
"1517189406074"
duration=
"8333000"
/>
<workItem
from=
"1517275427548"
duration=
"11524000"
/>
<workItem
from=
"1517361892578"
duration=
"19237000"
/>
<workItem
from=
"1517447750893"
duration=
"8505000"
/>
</task>
<task
id=
"LOCAL-00029"
summary=
"sendemail"
>
<created>
1515133725442
</created>
<option
name=
"number"
value=
"00029"
/>
<option
name=
"presentableId"
value=
"LOCAL-00029"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1515133725442
</updated>
<workItem
from=
"1517447750893"
duration=
"9126000"
/>
</task>
<task
id=
"LOCAL-00030"
summary=
"sendemail"
>
<created>
1515140461187
</created>
...
...
@@ -1681,11 +1636,18 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1517473084319
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"78"
/>
<task
id=
"LOCAL-00078"
summary=
"app排序"
>
<created>
1517476493409
</created>
<option
name=
"number"
value=
"00078"
/>
<option
name=
"presentableId"
value=
"LOCAL-00078"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1517476493409
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"79"
/>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"32
5552
000"
/>
<option
name=
"totallyTimeSpent"
value=
"32
6173
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-8"
y=
"-8"
width=
"1382"
height=
"744"
extended-state=
"6"
/>
...
...
@@ -1712,7 +1674,7 @@
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.42553192"
sideWeight=
"0.49016643"
order=
"9"
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=
"
tru
e"
show_stripe_button=
"true"
weight=
"0.30711043"
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=
"
fals
e"
show_stripe_button=
"true"
weight=
"0.30711043"
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"
/>
...
...
@@ -2258,14 +2220,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/track/controller/TrackAccountController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-46"
>
<caret
line=
"73"
column=
"197"
lean-forward=
"false"
selection-start-line=
"73"
selection-start-column=
"197"
selection-end-line=
"73"
selection-end-column=
"197"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/task/SendEmailTask.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"46"
>
...
...
@@ -2282,16 +2236,6 @@
</state>
</provider>
</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=
"228"
>
<caret
line=
"177"
column=
"40"
lean-forward=
"false"
selection-start-line=
"177"
selection-start-column=
"40"
selection-end-line=
"177"
selection-end-column=
"40"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/tkio/task/AccountTask.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"237"
>
...
...
@@ -2300,10 +2244,10 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
common/repository/ContractRepository
.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/
track/controller/TrackAccountController
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
391
"
>
<caret
line=
"
33"
column=
"34"
lean-forward=
"false"
selection-start-line=
"33"
selection-start-column=
"19"
selection-end-line=
"33"
selection-end-column=
"34
"
/>
<state
relative-caret-position=
"
-46
"
>
<caret
line=
"
73"
column=
"197"
lean-forward=
"false"
selection-start-line=
"73"
selection-start-column=
"197"
selection-end-line=
"73"
selection-end-column=
"197
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -2316,10 +2260,10 @@
</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=
"3
67
"
>
<caret
line=
"
101"
column=
"41"
lean-forward=
"false"
selection-start-line=
"101"
selection-start-column=
"32"
selection-end-line=
"101"
selection-end-column=
"41
"
/>
<state
relative-caret-position=
"3
24
"
>
<caret
line=
"
29"
column=
"52"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"52"
selection-end-line=
"29"
selection-end-column=
"52
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -2335,18 +2279,36 @@
</state>
</provider>
</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=
"274"
>
<caret
line=
"67"
column=
"23"
lean-forward=
"false"
selection-start-line=
"67"
selection-start-column=
"17"
selection-end-line=
"67"
selection-end-column=
"23"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<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=
"367"
>
<caret
line=
"101"
column=
"41"
lean-forward=
"false"
selection-start-line=
"101"
selection-start-column=
"32"
selection-end-line=
"101"
selection-end-column=
"41"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/task/ContractTask.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
298
"
>
<caret
line=
"
45"
column=
"41"
lean-forward=
"true"
selection-start-line=
"45"
selection-start-column=
"41"
selection-end-line=
"45"
selection-end-column=
"41
"
/>
<state
relative-caret-position=
"
367
"
>
<caret
line=
"
51"
column=
"66"
lean-forward=
"false"
selection-start-line=
"51"
selection-start-column=
"66"
selection-end-line=
"51"
selection-end-column=
"66
"
/>
<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/repository/ContractRepository.java
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
24
"
>
<caret
line=
"
29"
column=
"67"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"67"
selection-end-line=
"29"
selection-end-column=
"67
"
/>
<state
relative-caret-position=
"3
43
"
>
<caret
line=
"
35"
column=
"81"
lean-forward=
"false"
selection-start-line=
"35"
selection-start-column=
"78"
selection-end-line=
"35"
selection-end-column=
"81
"
/>
<folding
/>
</state>
</provider>
...
...
src/main/java/common/repository/ContractRepository.java
View file @
20953f1c
...
...
@@ -33,6 +33,6 @@ public interface ContractRepository extends JpaRepository<Contract, Long> {
@Query
(
value
=
"SELECT * from contract where start_date = ?1"
,
nativeQuery
=
true
)
List
<
Contract
>
findByStartDate
(
String
startDate
);
@Query
(
value
=
"SELECT * from contract where end_date
= ?1
"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT * from contract where end_date
<= ?1 and (status <> 'end' or status <> 'cancel')
"
,
nativeQuery
=
true
)
List
<
Contract
>
findByEndDate
(
String
endDate
);
}
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