Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
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
探普后端
tanpu-community
Commits
658d373c
Commit
658d373c
authored
Feb 23, 2022
by
刘基明
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2.3.1' into 'dev'
基金详情接口fix See merge request
!73
parents
2ce17376
7811671c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
9 deletions
+32
-9
FeignBackClientForProducts.java
...u/community/feign/product/FeignBackClientForProducts.java
+9
-2
FeignClientForProducts.java
...tanpu/community/feign/product/FeignClientForProducts.java
+6
-2
NotificationManager.java
...java/com/tanpu/community/manager/NotificationManager.java
+1
-1
BatchFeignCallService.java
...va/com/tanpu/community/service/BatchFeignCallService.java
+1
-1
FeignService.java
...c/main/java/com/tanpu/community/service/FeignService.java
+13
-1
NotificationService.java
...java/com/tanpu/community/service/NotificationService.java
+1
-1
TopicService.java
...c/main/java/com/tanpu/community/service/TopicService.java
+1
-1
No files found.
community-service/src/main/java/com/tanpu/community/feign/product/FeignBackClientForProducts.java
View file @
658d373c
...
@@ -24,9 +24,16 @@ public class FeignBackClientForProducts implements FallbackFactory<FeignClientFo
...
@@ -24,9 +24,16 @@ public class FeignBackClientForProducts implements FallbackFactory<FeignClientFo
}
}
@Override
@Override
public
CommonResp
<
List
<
ProductInfoVO
>>
getProductInfoByIds
(
List
<
String
>
i
ds
)
{
public
CommonResp
<
List
<
ProductInfoVO
>>
getProductInfoByIds
(
List
<
String
>
fundI
ds
)
{
log
.
error
(
"请求信息"
,
throwable
);
log
.
error
(
"请求信息"
,
throwable
);
log
.
error
(
"FeignClientForProducts.getProductInfoByIds-查询产品ids:{}"
,
ids
);
log
.
error
(
"FeignClientForProducts.getProductInfoByIds-查询产品ids:{}"
,
fundIds
);
return
null
;
}
@Override
public
CommonResp
<
List
<
ProductInfoVO
>>
getProductInfoByIdsNew
(
List
<
String
>
fundIds
)
{
log
.
error
(
"请求信息"
,
throwable
);
log
.
error
(
"FeignClientForProducts.getProductInfoByIdsNew-查询私募产品ids:{}"
,
fundIds
);
return
null
;
return
null
;
}
}
...
...
community-service/src/main/java/com/tanpu/community/feign/product/FeignClientForProducts.java
View file @
658d373c
...
@@ -21,9 +21,13 @@ public interface FeignClientForProducts {
...
@@ -21,9 +21,13 @@ public interface FeignClientForProducts {
CommonResp
<
ProductInfoVO
>
getProductDetailInfo
(
@ApiParam
(
"产品id"
)
@RequestParam
(
"id"
)
String
id
);
CommonResp
<
ProductInfoVO
>
getProductDetailInfo
(
@ApiParam
(
"产品id"
)
@RequestParam
(
"id"
)
String
id
);
@ApiOperation
(
"批量获取私募产品详情"
)
@ApiOperation
(
"批量获取私募产品详情
(旧),Theme详情用
"
)
@GetMapping
(
"/getProductInfoByIds"
)
@GetMapping
(
"/getProductInfoByIds"
)
CommonResp
<
List
<
ProductInfoVO
>>
getProductInfoByIds
(
@ApiParam
(
"产品id"
)
@RequestParam
(
"fundIds"
)
List
<
String
>
fundIds
);
CommonResp
<
List
<
ProductInfoVO
>>
getProductInfoByIds
(
@ApiParam
(
"筛选条件对象"
)
@RequestParam
List
<
String
>
fundIds
);
@ApiOperation
(
"批量获取私募产品详情(新),Topic详情用"
)
@GetMapping
(
"/getProductInfoByIdsNew"
)
CommonResp
<
List
<
ProductInfoVO
>>
getProductInfoByIdsNew
(
@ApiParam
(
"筛选条件对象"
)
@RequestParam
List
<
String
>
fundIds
);
@ApiOperation
(
"基金公司-简单信息"
)
@ApiOperation
(
"基金公司-简单信息"
)
@GetMapping
(
"/fund/companyInfoSimple"
)
@GetMapping
(
"/fund/companyInfoSimple"
)
...
...
community-service/src/main/java/com/tanpu/community/manager/NotificationManager.java
View file @
658d373c
...
@@ -137,7 +137,7 @@ public class NotificationManager {
...
@@ -137,7 +137,7 @@ public class NotificationManager {
themeNotifyQo
.
setTopicTitle
(
topicService
.
queryTitleById
(
themeNotifyQo
.
getTopicId
()));
themeNotifyQo
.
setTopicTitle
(
topicService
.
queryTitleById
(
themeNotifyQo
.
getTopicId
()));
}
}
// 评论的评论
// 评论的评论
if
(
NotificationTypeEnum
.
COMMENT
.
getCode
().
equals
(
themeNotifyQo
.
getMessageType
())){
if
(
NotificationTypeEnum
.
COMMENT
_REPLY
.
getCode
().
equals
(
themeNotifyQo
.
getMessageType
())){
CommentEntity
commentEntity
=
commentService
.
queryByCommentId
(
themeNotifyQo
.
getReplyCommentId
());
CommentEntity
commentEntity
=
commentService
.
queryByCommentId
(
themeNotifyQo
.
getReplyCommentId
());
if
(
commentEntity
!=
null
)
{
if
(
commentEntity
!=
null
)
{
themeNotifyQo
.
setFormerContent
(
commentEntity
.
getContent
());
themeNotifyQo
.
setFormerContent
(
commentEntity
.
getContent
());
...
...
community-service/src/main/java/com/tanpu/community/service/BatchFeignCallService.java
View file @
658d373c
...
@@ -288,7 +288,7 @@ public class BatchFeignCallService {
...
@@ -288,7 +288,7 @@ public class BatchFeignCallService {
// .fundIds(Lists.newArrayList(tanpuFundIds))
// .fundIds(Lists.newArrayList(tanpuFundIds))
// .build();
// .build();
// 探普产品
// 探普产品
List
<
ProductInfoVO
>
list
=
feignService
.
getProductInfoByIds
(
setToList
(
tanpuFundIds
));
List
<
ProductInfoVO
>
list
=
feignService
.
getProductInfoByIds
ForTheme
(
setToList
(
tanpuFundIds
));
List
<
FundInfoBaseResp
>
fundInfoBaseRespList
=
list
.
stream
().
map
(
item
->
{
List
<
FundInfoBaseResp
>
fundInfoBaseRespList
=
list
.
stream
().
map
(
item
->
{
FundInfoBaseResp
fundInfoBaseResp
=
FundInfoBaseResp
.
builder
().
build
();
FundInfoBaseResp
fundInfoBaseResp
=
FundInfoBaseResp
.
builder
().
build
();
BeanUtils
.
copyProperties
(
item
,
fundInfoBaseResp
);
BeanUtils
.
copyProperties
(
item
,
fundInfoBaseResp
);
...
...
community-service/src/main/java/com/tanpu/community/service/FeignService.java
View file @
658d373c
...
@@ -139,7 +139,19 @@ public class FeignService {
...
@@ -139,7 +139,19 @@ public class FeignService {
});
});
}
}
public
List
<
ProductInfoVO
>
getProductInfoByIds
(
List
<
String
>
fundIds
)
{
public
List
<
ProductInfoVO
>
getProductInfoByIdsForTopic
(
List
<
String
>
fundIds
)
{
return
batchExecute
(
"getProductInfoByIds_"
,
fundIds
,
ProductInfoVO
.
class
,
ProductInfoVO:
:
getFundId
,
ids
->
{
CommonResp
<
List
<
ProductInfoVO
>>
resp
=
feignForProduct
.
getProductInfoByIds
(
ids
);
if
(
resp
.
isSuccess
())
{
return
resp
.
getData
();
}
else
{
return
new
ArrayList
<>();
}
});
}
public
List
<
ProductInfoVO
>
getProductInfoByIdsForTheme
(
List
<
String
>
fundIds
)
{
return
batchExecute
(
"getProductInfoByIds_"
,
fundIds
,
ProductInfoVO
.
class
,
return
batchExecute
(
"getProductInfoByIds_"
,
fundIds
,
ProductInfoVO
.
class
,
ProductInfoVO:
:
getFundId
,
ids
->
{
ProductInfoVO:
:
getFundId
,
ids
->
{
CommonResp
<
List
<
ProductInfoVO
>>
resp
=
feignForProduct
.
getProductInfoByIds
(
ids
);
CommonResp
<
List
<
ProductInfoVO
>>
resp
=
feignForProduct
.
getProductInfoByIds
(
ids
);
...
...
community-service/src/main/java/com/tanpu/community/service/NotificationService.java
View file @
658d373c
...
@@ -170,7 +170,7 @@ public class NotificationService {
...
@@ -170,7 +170,7 @@ public class NotificationService {
// 类型2点赞返回评论点赞和主题点赞
// 类型2点赞返回评论点赞和主题点赞
queryWrapper
.
in
(
NotificationEntity:
:
getMessageType
,
queryWrapper
.
in
(
NotificationEntity:
:
getMessageType
,
Arrays
.
asList
(
NotificationTypeEnum
.
LIKE
.
getCode
(),
NotificationTypeEnum
.
COMMENT_LIKE
.
getCode
()));
Arrays
.
asList
(
NotificationTypeEnum
.
LIKE
.
getCode
(),
NotificationTypeEnum
.
COMMENT_LIKE
.
getCode
()));
}
else
if
(
!
NotificationTypeEnum
.
COMMENT
.
getCode
().
equals
(
type
))
{
}
else
if
(
NotificationTypeEnum
.
COMMENT
.
getCode
().
equals
(
type
))
{
// 类型3返回 回复主题和回复评论
// 类型3返回 回复主题和回复评论
queryWrapper
.
in
(
NotificationEntity:
:
getMessageType
,
queryWrapper
.
in
(
NotificationEntity:
:
getMessageType
,
Arrays
.
asList
(
NotificationTypeEnum
.
COMMENT
.
getCode
(),
NotificationTypeEnum
.
COMMENT_REPLY
.
getCode
()));
Arrays
.
asList
(
NotificationTypeEnum
.
COMMENT
.
getCode
(),
NotificationTypeEnum
.
COMMENT_REPLY
.
getCode
()));
...
...
community-service/src/main/java/com/tanpu/community/service/TopicService.java
View file @
658d373c
...
@@ -231,7 +231,7 @@ public class TopicService {
...
@@ -231,7 +231,7 @@ public class TopicService {
List
<
ProductInfoVO
>
fund
=
Collections
.
emptyList
();
List
<
ProductInfoVO
>
fund
=
Collections
.
emptyList
();
// 基金
// 基金
if
(
entity
.
getSubjectSubType
()
==
ProductTypeEnum
.
PRIVATE
.
type
||
entity
.
getSubjectSubType
()
==
ProductTypeEnum
.
TAMP
.
type
)
{
if
(
entity
.
getSubjectSubType
()
==
ProductTypeEnum
.
PRIVATE
.
type
||
entity
.
getSubjectSubType
()
==
ProductTypeEnum
.
TAMP
.
type
)
{
fund
=
feignService
.
getProductInfoByIds
(
Collections
.
singletonList
(
entity
.
getSubjectId
()));
fund
=
feignService
.
getProductInfoByIds
ForTopic
(
Collections
.
singletonList
(
entity
.
getSubjectId
()));
}
else
if
(
entity
.
getSubjectSubType
()
==
ProductTypeEnum
.
PUBLIC
.
type
)
{
}
else
if
(
entity
.
getSubjectSubType
()
==
ProductTypeEnum
.
PUBLIC
.
type
)
{
fund
=
feignService
.
getPublicFundList
(
Collections
.
singletonList
(
entity
.
getSubjectId
()));
fund
=
feignService
.
getPublicFundList
(
Collections
.
singletonList
(
entity
.
getSubjectId
()));
}
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