Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_fund
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周鹏
tamp_fund
Commits
a51e21f8
Commit
a51e21f8
authored
Mar 04, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品查询
parent
089fbc2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+5
-4
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
a51e21f8
...
@@ -580,10 +580,10 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -580,10 +580,10 @@ public class ProductServiceImpl implements ProductService, Constant {
private
FundCountExample
getFundCountExample
(
NetReq
req
)
{
private
FundCountExample
getFundCountExample
(
NetReq
req
)
{
FundCountExample
example
=
new
FundCountExample
();
FundCountExample
example
=
new
FundCountExample
();
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
()
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
()
;
// .andStatusEqualTo(ONE_NUM).andDataSourcesEqualTo(ONE_NUM)
// .andStatusEqualTo(ONE_NUM).andDataSourcesEqualTo(ONE_NUM)
// .andDeleteTagEqualTo(ZERO_NUM)
// .andDeleteTagEqualTo(ZERO_NUM)
.
andSubstrategyNotEqualTo
(
ProductEnums
.
FundSubStrategyEnum
.
COMBINATION
.
subStrategy
);
//
.andSubstrategyNotEqualTo(ProductEnums.FundSubStrategyEnum.COMBINATION.subStrategy);
if
(
CollectionUtils
.
isNotEmpty
(
req
.
getList
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
req
.
getList
()))
{
criteria
.
andSubstrategyIn
(
req
.
getList
().
stream
().
map
(
Integer:
:
parseInt
).
collect
(
Collectors
.
toList
()));
criteria
.
andSubstrategyIn
(
req
.
getList
().
stream
().
map
(
Integer:
:
parseInt
).
collect
(
Collectors
.
toList
()));
...
@@ -1285,7 +1285,7 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1285,7 +1285,7 @@ public class ProductServiceImpl implements ProductService, Constant {
FundCountExample
example
=
new
FundCountExample
();
FundCountExample
example
=
new
FundCountExample
();
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
().
andDataSourcesEqualTo
(
ONE_NUM
)
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
().
andDataSourcesEqualTo
(
ONE_NUM
)
// .andStatusEqualTo(ONE_NUM)
// .andStatusEqualTo(ONE_NUM)
.
andSubstrategyNotEqualTo
(
ProductEnums
.
FundSubStrategyEnum
.
COMBINATION
.
subStrategy
)
//
.andSubstrategyNotEqualTo(ProductEnums.FundSubStrategyEnum.COMBINATION.subStrategy)
.
andDeleteTagEqualTo
(
ZERO_NUM
);
.
andDeleteTagEqualTo
(
ZERO_NUM
);
if
(
CollectionUtils
.
isNotEmpty
(
req
.
getList
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
req
.
getList
()))
{
...
@@ -1321,7 +1321,8 @@ public class ProductServiceImpl implements ProductService, Constant {
...
@@ -1321,7 +1321,8 @@ public class ProductServiceImpl implements ProductService, Constant {
FundCountExample
example
=
new
FundCountExample
();
FundCountExample
example
=
new
FundCountExample
();
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
().
andDataSourcesEqualTo
(
ONE_NUM
)
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
().
andDataSourcesEqualTo
(
ONE_NUM
)
// .andStatusEqualTo(ONE_NUM)
// .andStatusEqualTo(ONE_NUM)
.
andSubstrategyNotEqualTo
(
ProductEnums
.
FundSubStrategyEnum
.
COMBINATION
.
subStrategy
).
andDeleteTagEqualTo
(
ZERO_NUM
);
// .andSubstrategyNotEqualTo(ProductEnums.FundSubStrategyEnum.COMBINATION.subStrategy)
.
andDeleteTagEqualTo
(
ZERO_NUM
);
if
(!
CollectionUtils
.
isEmpty
(
req
.
getFundIds
()))
{
if
(!
CollectionUtils
.
isEmpty
(
req
.
getFundIds
()))
{
criteria
.
andFundIdIn
(
req
.
getFundIds
());
criteria
.
andFundIdIn
(
req
.
getFundIds
());
...
...
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