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
af0d3bd1
Commit
af0d3bd1
authored
Sep 22, 2021
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验收金额
parent
0201c49f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
Contract.java
src/main/java/common/model/Contract.java
+0
-0
DmpIncomeRepository.java
src/main/java/common/repository/DmpIncomeRepository.java
+2
-0
PdIncomeRepository.java
src/main/java/common/repository/PdIncomeRepository.java
+7
-4
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+0
-0
No files found.
src/main/java/common/model/Contract.java
View file @
af0d3bd1
This diff is collapsed.
Click to expand it.
src/main/java/common/repository/DmpIncomeRepository.java
View file @
af0d3bd1
...
...
@@ -16,4 +16,6 @@ public interface DmpIncomeRepository extends JpaRepository<DmpIncome, Long> {
@Query
(
value
=
"select * from dmp_income where contract_code = ?1 and income_month =?2 limit 1 "
,
nativeQuery
=
true
)
DmpIncome
findByCodeMonth
(
String
contractCode
,
String
incomeMonth
);
}
src/main/java/common/repository/PdIncomeRepository.java
View file @
af0d3bd1
...
...
@@ -8,10 +8,13 @@ import java.util.List;
public
interface
PdIncomeRepository
extends
JpaRepository
<
PdIncome
,
Long
>
{
@Query
(
value
=
"select * from pd_income where contract_code = ? order by input_date desc "
,
nativeQuery
=
true
)
List
<
PdIncome
>
findByContractCode
(
String
code
);
@Query
(
value
=
"select * from pd_income where contract_code = ? order by input_date desc "
,
nativeQuery
=
true
)
List
<
PdIncome
>
findByContractCode
(
String
code
);
@Query
(
value
=
"select * from pd_income where settlement_date > ?1 and settlement_date < ?2"
,
nativeQuery
=
true
)
List
<
PdIncome
>
findByDs
(
String
startDate
,
String
endDate
);
@Query
(
value
=
"select * from pd_income where settlement_date > ?1 and settlement_date < ?2"
,
nativeQuery
=
true
)
List
<
PdIncome
>
findByDs
(
String
startDate
,
String
endDate
);
@Query
(
value
=
"select contract_code, sum(acceptance_amount) from pd_income where contract_code in ?1 group by contract_code"
,
nativeQuery
=
true
)
List
<
Object
[]>
findGroupWithCode
(
List
codes
);
}
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
af0d3bd1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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