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
7db24d88
Commit
7db24d88
authored
Apr 21, 2020
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
774b9756
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ContractBodyRepository.java
src/main/java/common/repository/ContractBodyRepository.java
+3
-0
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+1
-1
No files found.
src/main/java/common/repository/ContractBodyRepository.java
View file @
7db24d88
...
@@ -19,4 +19,7 @@ public interface ContractBodyRepository extends JpaRepository<ContractBody, Long
...
@@ -19,4 +19,7 @@ public interface ContractBodyRepository extends JpaRepository<ContractBody, Long
@Query
(
value
=
"select code from contract_body where id in ?1"
,
nativeQuery
=
true
)
@Query
(
value
=
"select code from contract_body where id in ?1"
,
nativeQuery
=
true
)
List
<
String
>
findByIds
(
List
bodyids
);
List
<
String
>
findByIds
(
List
bodyids
);
@Query
(
value
=
"select * from contract_body group by code"
,
nativeQuery
=
true
)
List
<
ContractBody
>
findAllCodeDis
();
}
}
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
7db24d88
...
@@ -252,7 +252,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -252,7 +252,7 @@ public class ContractServiceImpl implements ContractService {
public
List
<
ContractBody
>
findBody
(
String
platform
,
User
loginAccount
)
{
public
List
<
ContractBody
>
findBody
(
String
platform
,
User
loginAccount
)
{
if
(
"all"
.
equals
(
platform
))
{
if
(
"all"
.
equals
(
platform
))
{
List
<
ContractBody
>
all
=
contractBodyRepository
.
findAllDis
();
List
<
ContractBody
>
all
=
contractBodyRepository
.
findAll
Code
Dis
();
return
all
;
return
all
;
}
else
{
}
else
{
...
...
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