Commit 2da11856 by 吴博

bug: [1025507] 【生产环境】【平台PC端】【小程序管理】编辑资讯,添加第三方小程序,点击保存,再次编辑该资讯,第三方小程序的选取内容未被保存

parent 6af669ef
...@@ -1244,15 +1244,11 @@ public class AppletNewsBizImpl implements AppletNewsBiz { ...@@ -1244,15 +1244,11 @@ public class AppletNewsBizImpl implements AppletNewsBiz {
} }
for (AppletNewsDTO newsDTO : appletNewsDTOList) { for (AppletNewsDTO newsDTO : appletNewsDTOList) {
Long newsId = newsDTO.getId(); Long newsId = newsDTO.getId();
if (Objects.equals(YesOrNoNumEnum.YES.getValue(),newsDTO.getShowLink())) { List<AppletThirdResources> thirdResourcesList = thirdResourcesDao.getThirdResourcesByNewsId(newsId);
List<AppletThirdResources> thirdResourcesList = thirdResourcesDao.getThirdResourcesByNewsId(newsId); newsDTO.setThirdResourcesRelations(ListUtils.isEmpty(thirdResourcesList) ? new ArrayList<>() : thirdResourcesList);
if (ListUtils.isEmpty(thirdResourcesList)) {
continue;
}
newsDTO.setThirdResourcesRelations(thirdResourcesList);
}
} }
} }
@Override @Override
public Long getAgentIdByAccountId(Long officialAccountsId){ public Long getAgentIdByAccountId(Long officialAccountsId){
Long agentId = null; Long agentId = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment