BUGFIX:作品删除后,获取点赞详细报错
This commit is contained in:
@@ -71,4 +71,9 @@ public class CommonConstant {
|
|||||||
|
|
||||||
public static final String RCA_WORKSHOP_TAG = "#RCAworkshop_2024";
|
public static final String RCA_WORKSHOP_TAG = "#RCAworkshop_2024";
|
||||||
|
|
||||||
|
public static final String PORTFOLIO_DELETED_EN = "Portfolio has been deleted";
|
||||||
|
|
||||||
|
public static final String PORTFOLIO_DELETED_CN = "作品已删除";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,10 +112,15 @@ public class MessageCenterServiceImpl extends ServiceImpl<NotificationMapper, No
|
|||||||
notificationVO.setPortfolioId(null);
|
notificationVO.setPortfolioId(null);
|
||||||
}else {
|
}else {
|
||||||
Portfolio byId = portfolioService.getById(notificationVO.getPortfolioId());
|
Portfolio byId = portfolioService.getById(notificationVO.getPortfolioId());
|
||||||
if (Objects.isNull(byId.getPortfolioName())){
|
if (!Objects.isNull(byId)){
|
||||||
notificationVO.setPortfolioName(null);
|
if (Objects.isNull(byId.getPortfolioName())){
|
||||||
|
notificationVO.setPortfolioName(null);
|
||||||
|
}else {
|
||||||
|
notificationVO.setPortfolioName(byId.getPortfolioName());
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
notificationVO.setPortfolioName(byId.getPortfolioName());
|
String name = UserContext.getUserHolder().getLanguage().equals("ENGLISH") ? CommonConstant.PORTFOLIO_DELETED_EN : CommonConstant.PORTFOLIO_DELETED_CN;
|
||||||
|
notificationVO.setPortfolioName(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 设置单个人 系统消息是否已读
|
// 设置单个人 系统消息是否已读
|
||||||
|
|||||||
Reference in New Issue
Block a user