Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asset-distribution
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
asset-distribution
Commits
adf1598f
Commit
adf1598f
authored
Sep 16, 2021
by
王业雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资金产品分页查询返回id
parent
b905b71d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
FundProductQueryResultVo.java
...el/entity/route/fundproduct/FundProductQueryResultVo.java
+1
-0
IWhiteListRepository.java
...ribution/service/jpa/repository/IWhiteListRepository.java
+2
-0
WhiteListServiceImpl.java
...distribution/service/route/impl/WhiteListServiceImpl.java
+5
-0
No files found.
src/main/java/com/quantgroup/asset/distribution/model/entity/route/fundproduct/FundProductQueryResultVo.java
View file @
adf1598f
...
...
@@ -7,6 +7,7 @@ import java.sql.Timestamp;
@Data
public
class
FundProductQueryResultVo
{
private
Long
id
;
private
Integer
seqNo
;
private
Long
fundId
;
private
Long
fundProId
;
...
...
src/main/java/com/quantgroup/asset/distribution/service/jpa/repository/IWhiteListRepository.java
View file @
adf1598f
...
...
@@ -7,4 +7,6 @@ import org.springframework.data.querydsl.QueryDslPredicateExecutor;
public
interface
IWhiteListRepository
extends
JpaRepository
<
WhiteListEntity
,
Long
>,
QueryDslPredicateExecutor
<
WhiteListEntity
>
{
WhiteListEntity
getByPhoneEquals
(
String
phone
);
WhiteListEntity
getByPhoneEqualsAndFundIdEqualsAndFundProIdEquals
(
String
phone
,
Long
fundId
,
Long
fundProId
);
}
src/main/java/com/quantgroup/asset/distribution/service/route/impl/WhiteListServiceImpl.java
View file @
adf1598f
...
...
@@ -83,6 +83,11 @@ public class WhiteListServiceImpl implements IWhiteListService {
@Override
public
GlobalResponse
save
(
WhiteListSaveVo
whiteListSaveVo
)
{
WhiteListEntity
one
=
whiteListRepository
.
getByPhoneEqualsAndFundIdEqualsAndFundProIdEquals
(
whiteListSaveVo
.
getPhone
(),
whiteListSaveVo
.
getFundId
(),
whiteListSaveVo
.
getFundProId
());
if
(
Objects
.
nonNull
(
one
)){
return
GlobalResponse
.
error
(
"这个用户已经配置过这个资金产品的白名单了,请确认"
);
}
WhiteListEntity
whiteListEntity
=
new
WhiteListEntity
();
BeanUtils
.
copyProperties
(
whiteListSaveVo
,
whiteListEntity
);
FundProductEntity
fundProductEntity
=
fundProductRepository
.
getByFundIdEqualsAndFundProIdEqualsAndEnableEquals
(
whiteListSaveVo
.
getFundId
(),
whiteListSaveVo
.
getFundProId
(),
Byte
.
valueOf
(
"1"
));
...
...
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