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
c079d52f
Commit
c079d52f
authored
Feb 26, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
策略类型
parent
0d959728
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
45 deletions
+5
-45
ProStrategyEnums.java
src/main/java/com/tanpu/fund/enums/ProStrategyEnums.java
+0
-40
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+5
-5
No files found.
src/main/java/com/tanpu/fund/enums/ProStrategyEnums.java
deleted
100644 → 0
View file @
0d959728
package
com
.
tanpu
.
fund
.
enums
;
public
enum
ProStrategyEnums
{
SHARES
(
1
,
"股票策略"
),
MACROSCOPIC
(
2
,
"宏观策略"
),
FUTURES
(
3
,
"管理期货"
),
EVENTDRIVEN
(
4
,
"事件驱动"
),
RELATIVEVALUE
(
5
,
"相对价值策略"
),
FIXEDINCOME
(
6
,
"固定收益策略"
),
COMBINEFUND
(
7
,
"组合基金"
),
REUNITEWIT
(
8
,
"复合策略"
),
OTHER
(-
1
,
"复合策略"
);
private
Integer
type
;
private
String
name
;
ProStrategyEnums
(
Integer
type
,
String
name
)
{
this
.
type
=
type
;
this
.
name
=
name
;
}
public
Integer
getType
()
{
return
type
;
}
public
String
getName
()
{
return
name
;
}
public
static
String
getName
(
Integer
code
)
{
ProStrategyEnums
[]
types
=
values
();
for
(
ProStrategyEnums
p
:
types
)
{
if
(
code
.
equals
(
p
.
getType
()))
{
return
p
.
getName
();
}
}
return
null
;
}
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
c079d52f
...
...
@@ -8,6 +8,7 @@ import com.tanpu.common.auth.UserInfoThreadLocalHolder;
import
com.tanpu.common.enums.BizEnums
;
import
com.tanpu.common.enums.Constant
;
import
com.tanpu.common.enums.SysConstEnums
;
import
com.tanpu.common.enums.product.ProductEnums
;
import
com.tanpu.common.model.Page
;
import
com.tanpu.common.model.Pageable
;
import
com.tanpu.common.model.product.FundInfoVO
;
...
...
@@ -20,7 +21,6 @@ import com.tanpu.common.resp.CommonResp;
import
com.tanpu.common.utils.BigDecimalUtil
;
import
com.tanpu.fund.entity.generator.*
;
import
com.tanpu.fund.enums.FilterTypeEnum
;
import
com.tanpu.fund.enums.ProStrategyEnums
;
import
com.tanpu.fund.feign.diagnose.FeignClientForDiagnose
;
import
com.tanpu.fund.feign.user.FeignClientForFatools
;
import
com.tanpu.fund.mapper.generator.*
;
...
...
@@ -564,7 +564,7 @@ public class ProductServiceImpl implements ProductService, Constant {
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
()
// .andStatusEqualTo(ONE_NUM).andDataSourcesEqualTo(ONE_NUM)
// .andDeleteTagEqualTo(ZERO_NUM)
.
andS
trategyNotEqualTo
(
SEVEN_NUM
);
.
andS
ubstrategyNotEqualTo
(
ProductEnums
.
FundSubStrategyEnum
.
COMBINATION
.
subStrategy
);
if
(
CollectionUtils
.
isNotEmpty
(
req
.
getList
()))
{
criteria
.
andSubstrategyIn
(
req
.
getList
().
stream
().
map
(
Integer:
:
parseInt
).
collect
(
Collectors
.
toList
()));
...
...
@@ -979,7 +979,7 @@ public class ProductServiceImpl implements ProductService, Constant {
// 产品类型
{
vo
.
setFundType
(
fundInfo
.
getFundType
());
vo
.
setFundTypeValue
(
Pro
StrategyEnums
.
getName
(
fundInfo
.
getFundType
()));
vo
.
setFundTypeValue
(
Pro
ductEnums
.
FundSubStrategyEnum
.
getBySubStrategy
(
fundInfo
.
getFundType
()));
}
return
vo
;
...
...
@@ -1265,7 +1265,7 @@ public class ProductServiceImpl implements ProductService, Constant {
FundCountExample
example
=
new
FundCountExample
();
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
().
andDataSourcesEqualTo
(
ONE_NUM
)
// .andStatusEqualTo(ONE_NUM)
.
andS
trategyNotEqualTo
(
7
)
.
andS
ubstrategyNotEqualTo
(
ProductEnums
.
FundSubStrategyEnum
.
COMBINATION
.
subStrategy
)
.
andDeleteTagEqualTo
(
ZERO_NUM
);
if
(
CollectionUtils
.
isNotEmpty
(
req
.
getList
()))
{
...
...
@@ -1301,7 +1301,7 @@ public class ProductServiceImpl implements ProductService, Constant {
FundCountExample
example
=
new
FundCountExample
();
FundCountExample
.
Criteria
criteria
=
example
.
createCriteria
().
andDataSourcesEqualTo
(
ONE_NUM
)
// .andStatusEqualTo(ONE_NUM)
.
andS
trategyNotEqualTo
(
7
).
andDeleteTagEqualTo
(
ZERO_NUM
);
.
andS
ubstrategyNotEqualTo
(
ProductEnums
.
FundSubStrategyEnum
.
COMBINATION
.
subStrategy
).
andDeleteTagEqualTo
(
ZERO_NUM
);
if
(!
CollectionUtils
.
isEmpty
(
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