提交 9556cace authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 eb78fd63
......@@ -120,6 +120,12 @@ public class FgForumController {
vo.setCommentNum(count);
ForumAgree ca = new ForumAgree();
ca.setForumId(forum.getId());
List<ForumAgree> list = fgForumAgreeService.select(ca);
if(list.size()>0) {
vo.setFabulousNum(list.size());
}else {
vo.setFabulousNum(0);
}
ca.setUserId(redis.getMember().getUserId().toString());
if (!fgForumAgreeService.select(ca).isEmpty()) {
vo.setIsAgree(Integer.parseInt(BooleanStatusEnum.YES.getCode()));
......@@ -143,6 +149,7 @@ public class FgForumController {
if (result.hasEntity() && ArrayUtils.isNotEmpty(result.getData())) {
vo.setImg(result.getData().get(0));
}
vo.setUserName(user.getUserName());
// 远程调用视频路径
List<String> fileNameVoide = Arrays.asList(forum.getVideo());
CallBack<List<String>> result2 = fileInfoClient.getFilePath(fileNameVoide);
......
......@@ -26,7 +26,7 @@ public interface FgInformationMapper extends BaseMapper<Information> {
+ "</script>")
List<FgInformationVo> queryByCriteria(@Param("form")FgInformationForm form);
@Select("<script>"
+ "SELECT cc.id,cc.title,cc.text FROM sys_information cc where 1=1 "
+ "SELECT cc.id,cc.title,cc.text,cc.cover FROM sys_information cc where 1=1 "
+ "<if test='"+ NOTBLANK +"(title)'>"
+ " and cc.title !=#{title}"
+ "</if>"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论