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
1db9dcb0
Commit
1db9dcb0
authored
May 23, 2019
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大后台
parent
d837b831
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
ContractController.java
src/main/java/common/controller/ContractController.java
+8
-0
FlowChangeRepository.java
src/main/java/common/repository/FlowChangeRepository.java
+2
-2
ContractService.java
src/main/java/common/service/ContractService.java
+3
-0
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+5
-4
No files found.
src/main/java/common/controller/ContractController.java
View file @
1db9dcb0
...
...
@@ -253,6 +253,14 @@ public class ContractController {
return
ResultModel
.
OK
(
service
.
findChange
(
startDate
,
endDate
,
code
));
}
@RequestMapping
(
value
=
"find/flowchange"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
ResultModel
flowchange
(
@CurrentAccount
User
loginAccount
,
@RequestParam
String
startDate
,
@RequestParam
String
endDate
,
@RequestParam
String
code
)
{
return
ResultModel
.
OK
(
service
.
findflowChange
(
startDate
,
endDate
,
code
));
}
@RequestMapping
(
value
=
"update/pay"
,
method
=
RequestMethod
.
PUT
)
@ResponseBody
public
ResultModel
updatePay
(
@CurrentAccount
User
loginAccount
,
@RequestBody
ContractMoney
contract
,
HttpServletRequest
request
,
@PathVariable
String
platform
)
{
...
...
src/main/java/common/repository/FlowChangeRepository.java
View file @
1db9dcb0
...
...
@@ -8,6 +8,6 @@ import java.util.List;
public
interface
FlowChangeRepository
extends
JpaRepository
<
FlowChange
,
Long
>
{
@Query
(
value
=
""
,
nativeQuery
=
true
)
List
<
FlowChange
>
findBy
Ds
(
String
startDate
,
String
endDate
,
String
code
);
@Query
(
value
=
"
select * from flow_change where contract_code= 1? and add_date >=2? and add_date <= 3?
"
,
nativeQuery
=
true
)
List
<
FlowChange
>
findBy
AddDate
(
String
startDate
,
String
endDate
,
String
code
);
}
src/main/java/common/service/ContractService.java
View file @
1db9dcb0
...
...
@@ -60,4 +60,6 @@ public interface ContractService {
Contract
contractStatusUpdate
(
String
platform
,
String
contractId
,
String
status
);
Map
contractCodeCheck
(
String
platform
,
String
contractCode
);
List
<
FlowChange
>
findflowChange
(
String
startDate
,
String
endDate
,
String
code
);
}
\ No newline at end of file
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
1db9dcb0
...
...
@@ -1142,14 +1142,15 @@ public class ContractServiceImpl implements ContractService {
}
}
List
<
FlowChange
>
flowChanges
=
flowChangeRepository
.
findByDs
(
startDate
,
endDate
,
code
);
return
result
;
}
@Override
public
List
<
FlowChange
>
findflowChange
(
String
startDate
,
String
endDate
,
String
code
)
{
return
flowChangeRepository
.
findByAddDate
(
startDate
,
endDate
,
code
);
}
@Override
public
Contract
updatePay
(
User
loginUser
,
ContractMoney
resource
)
{
ContractMoney
contractMoney
=
contractMoneyRepository
.
findOne
(
resource
.
getId
());
Contract
contract
=
contractRepository
.
findByCode
(
resource
.
getContractCode
());
...
...
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