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
a795255d
Commit
a795255d
authored
Feb 01, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app排序
parent
cb5ef8cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
88 deletions
+44
-88
workspace.xml
.idea/workspace.xml
+41
-85
ContractRepository.java
src/main/java/common/repository/ContractRepository.java
+1
-1
ContractSendEmailThread.java
src/main/java/common/task/ContractSendEmailThread.java
+2
-2
No files found.
.idea/workspace.xml
View file @
a795255d
...
...
@@ -3,7 +3,8 @@
<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"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/common/task/ContractSendEmailThread.java"
afterPath=
"$PROJECT_DIR$/src/main/java/common/task/ContractSendEmailThread.java"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -24,53 +25,11 @@
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"default_target"
/>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"Contract
Controller.java"
pinned=
"false"
current-in-tab=
"fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/
controller/ContractController
.java"
>
<file
leaf-file-name=
"Contract
SendEmailThread.java"
pinned=
"false"
current-in-tab=
"tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/
task/ContractSendEmailThread
.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>
</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=
"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=
"true"
>
<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=
"ContractServiceImpl.java"
pinned=
"false"
current-in-tab=
"false"
>
<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>
</file>
<file
leaf-file-name=
"ContractRepository.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"343"
>
<caret
line=
"35"
column=
"81"
lean-forward=
"false"
selection-start-line=
"35"
selection-start-column=
"78"
selection-end-line=
"35"
selection-end-column=
"81"
/>
<state
relative-caret-position=
"276"
>
<caret
line=
"53"
column=
"72"
lean-forward=
"false"
selection-start-line=
"53"
selection-start-column=
"72"
selection-end-line=
"53"
selection-end-column=
"72"
/>
<folding
/>
</state>
</provider>
...
...
@@ -177,12 +136,12 @@
<option
value=
"$PROJECT_DIR$/src/main/java/common/controller/UserController.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/tkio/controller/TkioAccountController.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/service/ContractService.java"
/>
<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/task/ContractTask.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/resources/spring/applicationContext-schedule.xml"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/repository/ContractRepository.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/common/task/ContractSendEmailThread.java"
/>
</list>
</option>
</component>
...
...
@@ -1298,14 +1257,7 @@
<workItem
from=
"1517189406074"
duration=
"8333000"
/>
<workItem
from=
"1517275427548"
duration=
"11524000"
/>
<workItem
from=
"1517361892578"
duration=
"19237000"
/>
<workItem
from=
"1517447750893"
duration=
"9147000"
/>
</task>
<task
id=
"LOCAL-00031"
summary=
"sendemail"
>
<created>
1515142158539
</created>
<option
name=
"number"
value=
"00031"
/>
<option
name=
"presentableId"
value=
"LOCAL-00031"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1515142158539
</updated>
<workItem
from=
"1517447750893"
duration=
"9447000"
/>
</task>
<task
id=
"LOCAL-00032"
summary=
"sendemail"
>
<created>
1515143555554
</created>
...
...
@@ -1643,11 +1595,18 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1517477110327
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"80"
/>
<task
id=
"LOCAL-00080"
summary=
"app排序"
>
<created>
1517477130551
</created>
<option
name=
"number"
value=
"00080"
/>
<option
name=
"presentableId"
value=
"LOCAL-00080"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1517477130551
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"81"
/>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"326
1
94000"
/>
<option
name=
"totallyTimeSpent"
value=
"326
4
94000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-8"
y=
"-8"
width=
"1382"
height=
"744"
extended-state=
"6"
/>
...
...
@@ -2260,55 +2219,52 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/
task/ContractSendEmailThread
.java"
>
<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=
"-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
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/controller/ContractController.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=
"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
relative-caret-position=
"324"
>
<caret
line=
"29"
column=
"54"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"54"
selection-end-line=
"29"
selection-end-column=
"54"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/
service/impl/ContractServiceImpl
.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/
repository/ContractRepository
.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
"
/>
<state
relative-caret-position=
"
642
"
>
<caret
line=
"
36"
column=
"49"
lean-forward=
"true"
selection-start-line=
"36"
selection-start-column=
"49"
selection-end-line=
"36"
selection-end-column=
"49
"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/
task/ContractTask
.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=
"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
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/
repository/ContractRepository
.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/common/
task/ContractTask
.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
343
"
>
<caret
line=
"
35"
column=
"81"
lean-forward=
"false"
selection-start-line=
"35"
selection-start-column=
"78"
selection-end-line=
"35"
selection-end-column=
"81
"
/>
<state
relative-caret-position=
"
206
"
>
<caret
line=
"
41"
column=
"67"
lean-forward=
"true"
selection-start-line=
"41"
selection-start-column=
"67"
selection-end-line=
"41"
selection-end-column=
"67
"
/>
<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/task/ContractSendEmailThread.java
"
>
<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
"
/>
<state
relative-caret-position=
"
276
"
>
<caret
line=
"
53"
column=
"72"
lean-forward=
"false"
selection-start-line=
"53"
selection-start-column=
"72"
selection-end-line=
"53"
selection-end-column=
"72
"
/>
<folding
/>
</state>
</provider>
...
...
src/main/java/common/repository/ContractRepository.java
View file @
a795255d
...
...
@@ -30,7 +30,7 @@ public interface ContractRepository extends JpaRepository<Contract, Long> {
@Query
(
value
=
"SELECT * from contract where platform = ?1 and email = ?2"
,
nativeQuery
=
true
)
List
<
Contract
>
findByPlatformAndEmail
(
String
platform
,
String
email
);
@Query
(
value
=
"SELECT * from contract where start_date = ?1"
,
nativeQuery
=
true
)
@Query
(
value
=
"SELECT * from contract where start_date = ?1
and status <> 'cancel'
"
,
nativeQuery
=
true
)
List
<
Contract
>
findByStartDate
(
String
startDate
);
@Query
(
value
=
"SELECT * from contract where end_date <= ?1 and (status <> 'end' or status <> 'cancel')"
,
nativeQuery
=
true
)
...
...
src/main/java/common/task/ContractSendEmailThread.java
View file @
a795255d
...
...
@@ -48,10 +48,10 @@ public class ContractSendEmailThread
User
user
=
userRepository
.
findOne
(
this
.
contract
.
getSale
());
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
user
.
getEmail
());
if
(!
user
.
getRoleType
().
equals
(
RoleTypeEnum
.
MANAGER
)){
if
(!
user
.
getRoleType
().
equals
(
RoleTypeEnum
.
MANAGER
.
getKey
()
)){
List
<
User
>
userList
=
userRepository
.
findOneDepartment
(
user
.
getRole
());
for
(
User
u
:
userList
){
if
(
u
.
getRoleType
().
equals
(
RoleTypeEnum
.
MANAGER
)){
if
(
u
.
getRoleType
().
equals
(
RoleTypeEnum
.
MANAGER
.
getKey
()
)){
list
.
add
(
u
.
getEmail
());
}
}
...
...
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