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
bd6da457
Commit
bd6da457
authored
Jul 22, 2021
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DMP 收入导入
parent
c2f4df04
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
ContractRepository.java
src/main/java/common/repository/ContractRepository.java
+6
-3
DmpIncomeServiceImpl.java
src/main/java/common/service/impl/DmpIncomeServiceImpl.java
+0
-0
No files found.
src/main/java/common/repository/ContractRepository.java
View file @
bd6da457
...
...
@@ -140,14 +140,17 @@ public interface ContractRepository extends JpaRepository<Contract, Long> {
List
<
Long
>
findRelationContractBySideAgre
();
@Query
(
value
=
"SELECT * from contract where contract_code = ?1 UNION SELECT * from contract where relation_code = ?1 and create_time <= ?2 and id<> ?3 and contract_type = '2'"
,
nativeQuery
=
true
)
List
<
Contract
>
findByCreateTimeAndCodeNotOwn
(
String
contractCode
,
String
createTime
,
Long
id
);
List
<
Contract
>
findByCreateTimeAndCodeNotOwn
(
String
contractCode
,
String
createTime
,
Long
id
);
@Query
(
value
=
"select * from contract where next_signed_contract_code=?1 limit 1 "
,
nativeQuery
=
true
)
@Query
(
value
=
"select * from contract where next_signed_contract_code=?1 limit 1 "
,
nativeQuery
=
true
)
Contract
findByNextSignedContractCode
(
String
contractCode
);
@Query
(
value
=
"select * from contract where platform=?1 and share_sign = ?2 "
,
nativeQuery
=
true
)
@Query
(
value
=
"select * from contract where platform=?1 and share_sign = ?2 "
,
nativeQuery
=
true
)
List
<
Contract
>
findByPlatformAndShareSign
(
String
platform
,
int
share_sign
);
@Query
(
value
=
"select * from contract where contract_code = ?1 and status != 'del'"
,
nativeQuery
=
true
)
Contract
findByCodeAndNotDel
(
String
contractCode
);
@Query
(
value
=
"select id from contract where contract_code = ?1 "
,
nativeQuery
=
true
)
List
<
Long
>
findIdByCode
(
String
relationCode
);
}
src/main/java/common/service/impl/DmpIncomeServiceImpl.java
View file @
bd6da457
This diff is collapsed.
Click to expand it.
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