@ -9,6 +9,6 @@
select f.id,f.sid,f.createBySid,f.forumSid,f.content,i.name from sys_forum_comment f
left join sys_user i
on f.createBySid = i.sid
where f.sid = #{sid}
where f.forumSid = #{sid}
</select>
</mapper>
@ -49,7 +49,11 @@ public class SysForumCommentService extends MybatisBaseService<SysForumCommentMa
public ResultBean selectSysForumCommentOne(String sid) {
ResultBean rb = ResultBean.fireFail();
if (sid == null){
return rb.setMsg("参数有误,请重试");
}else {
SysForumComment sysForumComment = sysForumCommentMapper.selectSysForumCommentOne(sid);
return rb.success().setData(sysForumComment);
}