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
cf692241
Commit
cf692241
authored
Apr 21, 2021
by
张亚辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无净值基金推荐
parent
829b1fd2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1740 additions
and
0 deletions
+1740
-0
ProductApi.java
src/main/java/com/tanpu/fund/api/ProductApi.java
+6
-0
ProductController.java
...ain/java/com/tanpu/fund/controller/ProductController.java
+8
-0
IfaImportedNonavFund.java
...com/tanpu/fund/entity/generator/IfaImportedNonavFund.java
+161
-0
IfaImportedNonavFundExample.java
...pu/fund/entity/generator/IfaImportedNonavFundExample.java
+731
-0
IfaImportedNonavFundMapper.java
...npu/fund/mapper/generator/IfaImportedNonavFundMapper.java
+80
-0
ProductService.java
src/main/java/com/tanpu/fund/service/ProductService.java
+2
-0
ProductServiceImpl.java
.../java/com/tanpu/fund/service/impl/ProductServiceImpl.java
+26
-0
application-dev.properties
src/main/resources/application-dev.properties
+4
-0
IfaImportedNonavFundMapper.xml
...esources/mybatis/generator/IfaImportedNonavFundMapper.xml
+722
-0
No files found.
src/main/java/com/tanpu/fund/api/ProductApi.java
View file @
cf692241
...
...
@@ -188,4 +188,10 @@ public interface ProductApi {
@GetMapping
(
"/private/like"
)
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
@Valid
@NotEmpty
(
message
=
"产品名称不能为空"
)
@RequestParam
(
"productName"
)
String
productName
,
Pageable
page
);
//**********************************************************私有基金 end**********************************************************
@ApiOperation
(
"推荐基金 - 无净值基金"
)
@GetMapping
(
"/noNetfund/query/samefund"
)
CommonResp
<
List
<
FundSameResp
>>
getNoNetfund
(
@RequestParam
(
"fundId"
)
String
fundId
);
}
src/main/java/com/tanpu/fund/controller/ProductController.java
View file @
cf692241
...
...
@@ -238,4 +238,12 @@ public class ProductController implements ProductApi {
public
CommonResp
<
List
<
Type
>>
getFundLikeShortNameInfo
(
String
productName
,
Pageable
page
)
{
return
CommonResp
.
success
(
this
.
productService
.
getFundLikeShortName
(
productName
,
page
));
}
@Override
public
CommonResp
<
List
<
FundSameResp
>>
getNoNetfund
(
String
fundId
)
{
if
(
StringUtils
.
isEmpty
(
fundId
))
{
return
CommonResp
.
error
(
CommonResp
.
PARAMETER_INVALID_STATUS_CODE
,
CommonResp
.
PARAMETER_INVALID_MESSAGE
);
}
return
CommonResp
.
success
(
this
.
productService
.
getNoNetfund
(
fundId
));
}
}
src/main/java/com/tanpu/fund/entity/generator/IfaImportedNonavFund.java
0 → 100644
View file @
cf692241
package
com
.
tanpu
.
fund
.
entity
.
generator
;
import
java.util.Date
;
public
class
IfaImportedNonavFund
{
/**
* id
*/
private
String
id
;
/**
* 无净值基金名称
*/
private
String
fundName
;
/**
* 募集期开始结束时间
*/
private
String
startEndDate
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 修改时间
*/
private
Date
updateTime
;
/**
* 0正常 1删除
*/
private
Integer
deleteTag
;
/**
* 理财师id
*/
private
String
ifaId
;
/**
* 机构id
*/
private
String
orgId
;
/**
* 产品概要
*/
private
String
summary
;
/**
* 产品详情
*/
private
String
detail
;
/**
* 基金附件pdf
*/
private
String
fundFile
;
/**
* 基金图片
*/
private
String
fundPng
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getFundName
()
{
return
fundName
;
}
public
void
setFundName
(
String
fundName
)
{
this
.
fundName
=
fundName
;
}
public
String
getStartEndDate
()
{
return
startEndDate
;
}
public
void
setStartEndDate
(
String
startEndDate
)
{
this
.
startEndDate
=
startEndDate
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getDeleteTag
()
{
return
deleteTag
;
}
public
void
setDeleteTag
(
Integer
deleteTag
)
{
this
.
deleteTag
=
deleteTag
;
}
public
String
getIfaId
()
{
return
ifaId
;
}
public
void
setIfaId
(
String
ifaId
)
{
this
.
ifaId
=
ifaId
;
}
public
String
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
String
orgId
)
{
this
.
orgId
=
orgId
;
}
public
String
getSummary
()
{
return
summary
;
}
public
void
setSummary
(
String
summary
)
{
this
.
summary
=
summary
;
}
public
String
getDetail
()
{
return
detail
;
}
public
void
setDetail
(
String
detail
)
{
this
.
detail
=
detail
;
}
public
String
getFundFile
()
{
return
fundFile
;
}
public
void
setFundFile
(
String
fundFile
)
{
this
.
fundFile
=
fundFile
;
}
public
String
getFundPng
()
{
return
fundPng
;
}
public
void
setFundPng
(
String
fundPng
)
{
this
.
fundPng
=
fundPng
;
}
}
\ No newline at end of file
src/main/java/com/tanpu/fund/entity/generator/IfaImportedNonavFundExample.java
0 → 100644
View file @
cf692241
This diff is collapsed.
Click to expand it.
src/main/java/com/tanpu/fund/mapper/generator/IfaImportedNonavFundMapper.java
0 → 100644
View file @
cf692241
package
com
.
tanpu
.
fund
.
mapper
.
generator
;
import
com.tanpu.fund.entity.generator.IfaImportedNonavFund
;
import
com.tanpu.fund.entity.generator.IfaImportedNonavFundExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
IfaImportedNonavFundMapper
{
long
countByExample
(
IfaImportedNonavFundExample
example
);
int
deleteByExample
(
IfaImportedNonavFundExample
example
);
/**
* delete by primary key
* @param id primaryKey
* @return deleteCount
*/
int
deleteByPrimaryKey
(
String
id
);
/**
* insert record to table
* @param record the record
* @return insert count
*/
int
insert
(
IfaImportedNonavFund
record
);
int
insertOrUpdate
(
IfaImportedNonavFund
record
);
int
insertOrUpdateSelective
(
IfaImportedNonavFund
record
);
int
insertOrUpdateWithBLOBs
(
IfaImportedNonavFund
record
);
/**
* insert record to table selective
* @param record the record
* @return insert count
*/
int
insertSelective
(
IfaImportedNonavFund
record
);
List
<
IfaImportedNonavFund
>
selectByExampleWithBLOBs
(
IfaImportedNonavFundExample
example
);
List
<
IfaImportedNonavFund
>
selectByExample
(
IfaImportedNonavFundExample
example
);
/**
* select by primary key
* @param id primary key
* @return object by primary key
*/
IfaImportedNonavFund
selectByPrimaryKey
(
String
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
IfaImportedNonavFund
record
,
@Param
(
"example"
)
IfaImportedNonavFundExample
example
);
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
IfaImportedNonavFund
record
,
@Param
(
"example"
)
IfaImportedNonavFundExample
example
);
int
updateByExample
(
@Param
(
"record"
)
IfaImportedNonavFund
record
,
@Param
(
"example"
)
IfaImportedNonavFundExample
example
);
/**
* update record selective
* @param record the updated record
* @return update count
*/
int
updateByPrimaryKeySelective
(
IfaImportedNonavFund
record
);
int
updateByPrimaryKeyWithBLOBs
(
IfaImportedNonavFund
record
);
/**
* update record
* @param record the updated record
* @return update count
*/
int
updateByPrimaryKey
(
IfaImportedNonavFund
record
);
int
updateBatch
(
List
<
IfaImportedNonavFund
>
list
);
int
updateBatchSelective
(
List
<
IfaImportedNonavFund
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
IfaImportedNonavFund
>
list
);
}
\ No newline at end of file
src/main/java/com/tanpu/fund/service/ProductService.java
View file @
cf692241
...
...
@@ -87,4 +87,6 @@ public interface ProductService {
Long
getFundRankCountInfo
(
FundRankReq
req
);
List
<
Type
>
getFundLikeShortName
(
String
productName
,
Pageable
page
);
List
<
FundSameResp
>
getNoNetfund
(
String
fundId
);
}
src/main/java/com/tanpu/fund/service/impl/ProductServiceImpl.java
View file @
cf692241
...
...
@@ -72,6 +72,9 @@ public class ProductServiceImpl implements ProductService, Constant {
@Resource
private
FundInfoMapper
fundInfoMapper
;
@Resource
private
IfaImportedNonavFundMapper
ifaImportedNonavFundMapper
;
@Resource
private
FundPerformanceMapper
fundPerformanceMapper
;
...
...
@@ -1671,6 +1674,7 @@ public class ProductServiceImpl implements ProductService, Constant {
example
.
createCriteria
().
andIfaIdEqualTo
(
UserInfoThreadLocalHolder
.
getserInfo
().
getId
())
.
andIdNotEqualTo
(
fundId
)
.
andDeleteTagEqualTo
(
BizEnums
.
DeleteTag
.
tag_init
);
PageMethod
.
startPage
(
1
,
10
);
List
<
IfaImportedFundInfo
>
importedFundInfoList
=
ifaImportedFundInfoMapper
.
selectByExample
(
example
);
List
<
String
>
fundIdList
=
importedFundInfoList
.
stream
().
map
(
IfaImportedFundInfo:
:
getId
).
collect
(
Collectors
.
toList
());
...
...
@@ -2402,4 +2406,26 @@ public class ProductServiceImpl implements ProductService, Constant {
return
this
.
fundInfoCustomMapper
.
getFundInfoLikeName
(
"%"
+
productName
+
"%"
);
}
@Override
public
List
<
FundSameResp
>
getNoNetfund
(
String
fundId
)
{
IfaImportedNonavFundExample
example
=
new
IfaImportedNonavFundExample
();
example
.
createCriteria
().
andIfaIdEqualTo
(
UserInfoThreadLocalHolder
.
getserInfo
().
getId
())
.
andIdNotEqualTo
(
fundId
)
.
andDeleteTagEqualTo
(
BizEnums
.
DeleteTag
.
tag_init
);
PageMethod
.
startPage
(
1
,
10
);
List
<
IfaImportedNonavFund
>
importedFundInfoList
=
ifaImportedNonavFundMapper
.
selectByExample
(
example
);
List
<
String
>
fundIdList
=
importedFundInfoList
.
stream
().
map
(
IfaImportedNonavFund:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
String
>
checkFundIdList
=
feignClientForDiagnose
.
getFundCollectInfo
(
fundIdList
).
getAttributes
();
importedFundInfoList
.
forEach
(
item
->
{
FundSameResp
p
=
FundSameResp
.
builder
()
.
fundId
(
item
.
getId
())
.
fundName
(
item
.
getFundName
())
.
isCheck
(
CollectionUtils
.
isNotEmpty
(
checkFundIdList
)
?
(
checkFundIdList
.
contains
(
item
.
getId
())
?
1
:
0
)
:
0
)
.
build
();
});
return
new
ArrayList
<>(
0
);
}
}
src/main/resources/application-dev.properties
View file @
cf692241
...
...
@@ -94,6 +94,10 @@ tanpu.oss.ali.region-id = cn-shanghai
tanpu.oss.ali.endpoint
=
https://oss-${tanpu.oss.ali.region-id}.aliyuncs.com
tanpu.oss.ali.bucket-domain
=
https://${tanpu.oss.ali.bucket-name}.oss-${tanpu.oss.ali.region-id}.aliyuncs.com
tanpu.oss.ali.oss-path
=
/upload
tanpu.oss.ali.access-key-id
=
LTAIAKEzVydP0Q9P
tanpu.oss.ali.secret-access-key
=
59V9ke9txaIFzWxHFKTb1eoOOpmKpJ
tanpu.oss.ali.project-name
=
faTools-sit
tanpu.oss.ali.doc-convert-output-path
=
/docConvertOutput
tanpu.userno.startstep
=
10000000
...
...
src/main/resources/mybatis/generator/IfaImportedNonavFundMapper.xml
0 → 100644
View file @
cf692241
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