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
d39c2a5c
Commit
d39c2a5c
authored
Feb 01, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app排序
parent
a795255d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
workspace.xml
.idea/workspace.xml
+0
-0
ContractController.java
src/main/java/common/controller/ContractController.java
+2
-2
ContractMoneyRepository.java
src/main/java/common/repository/ContractMoneyRepository.java
+2
-2
ContractService.java
src/main/java/common/service/ContractService.java
+1
-1
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+2
-2
No files found.
.idea/workspace.xml
View file @
d39c2a5c
This diff is collapsed.
Click to expand it.
src/main/java/common/controller/ContractController.java
View file @
d39c2a5c
...
...
@@ -225,8 +225,8 @@ public class ContractController {
@RequestMapping
(
value
=
"find/payall"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
ResultModel
findPayAll
(
@CurrentAccount
User
loginAccount
,
@RequestParam
String
startDate
,
@RequestParam
String
endDate
)
{
return
ResultModel
.
OK
(
service
.
findPay
(
startDate
,
endDate
));
@RequestParam
String
endDate
,
@PathVariable
String
platform
)
{
return
ResultModel
.
OK
(
service
.
findPay
All
(
startDate
,
endDate
,
platform
));
}
...
...
src/main/java/common/repository/ContractMoneyRepository.java
View file @
d39c2a5c
...
...
@@ -15,8 +15,8 @@ public interface ContractMoneyRepository extends JpaRepository<ContractMoney, Lo
@Query
(
value
=
"select * from contract_money where ds >= ?1 and ds <= ?2 and contract_code = ?3 order by ds desc"
,
nativeQuery
=
true
)
List
<
ContractMoney
>
findByDs
(
String
startDate
,
String
endDate
,
String
code
);
@Query
(
value
=
"select * from contract_money where ds >= ?1 and ds <= ?2 order by ds desc"
,
nativeQuery
=
true
)
List
<
ContractMoney
>
findByDs
(
String
startDate
,
String
endDate
);
@Query
(
value
=
"select * from contract_money where ds >= ?1 and ds <= ?2
and platform = ?3
order by ds desc"
,
nativeQuery
=
true
)
List
<
ContractMoney
>
findByDs
All
(
String
startDate
,
String
endDate
,
String
platform
);
@Query
(
value
=
"select * from contract_money where ds >= ?1 and ds <= ?2 and email = ?3 and platform = ?4 order by ds desc"
,
nativeQuery
=
true
)
List
<
ContractMoney
>
findByDs
(
String
startDate
,
String
endDate
,
String
email
,
String
platform
);
...
...
src/main/java/common/service/ContractService.java
View file @
d39c2a5c
...
...
@@ -41,5 +41,5 @@ public interface ContractService {
Contract
updatePay
(
User
loginUser
,
ContractMoney
resource
);
List
<
ContractMoney
>
findPay
(
String
startDate
,
String
endDate
);
List
<
ContractMoney
>
findPay
All
(
String
startDate
,
String
endDate
,
String
platform
);
}
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
d39c2a5c
...
...
@@ -371,7 +371,7 @@ public class ContractServiceImpl implements ContractService{
}
@Override
public
List
<
ContractMoney
>
findPay
(
String
startDate
,
String
endDate
)
{
public
List
<
ContractMoney
>
findPay
All
(
String
startDate
,
String
endDate
,
String
platfrom
)
{
List
<
User
>
sales
=
userRepository
.
findAll
();
Map
<
Long
,
String
>
saleMap
=
new
HashMap
<>();
if
(
ValidateUtil
.
isValid
(
sales
)){
...
...
@@ -381,7 +381,7 @@ public class ContractServiceImpl implements ContractService{
}
List
<
ContractMoney
>
result
=
new
ArrayList
<>();
List
<
ContractMoney
>
list
=
contractMoneyRepository
.
findByDs
(
startDate
,
endDate
);
List
<
ContractMoney
>
list
=
contractMoneyRepository
.
findByDs
All
(
startDate
,
endDate
,
platfrom
);
if
(
ValidateUtil
.
isValid
(
list
)){
for
(
ContractMoney
cm
:
list
){
cm
.
setCreateName
(
saleMap
.
containsKey
(
cm
.
getUser
())
?
saleMap
.
get
(
cm
.
getUser
())
:
""
);
...
...
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