5-1 sql修改
This commit is contained in:
@@ -9,6 +9,6 @@
|
|||||||
select f.id,f.sid,f.createBySid,f.forumSid,f.content,i.name from sys_forum_comment f
|
select f.id,f.sid,f.createBySid,f.forumSid,f.content,i.name from sys_forum_comment f
|
||||||
left join sys_user i
|
left join sys_user i
|
||||||
on f.createBySid = i.sid
|
on f.createBySid = i.sid
|
||||||
where f.sid = #{sid}
|
where f.forumSid = #{sid}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -49,7 +49,11 @@ public class SysForumCommentService extends MybatisBaseService<SysForumCommentMa
|
|||||||
|
|
||||||
public ResultBean selectSysForumCommentOne(String sid) {
|
public ResultBean selectSysForumCommentOne(String sid) {
|
||||||
ResultBean rb = ResultBean.fireFail();
|
ResultBean rb = ResultBean.fireFail();
|
||||||
|
if (sid == null){
|
||||||
|
return rb.setMsg("参数有误,请重试");
|
||||||
|
}else {
|
||||||
SysForumComment sysForumComment = sysForumCommentMapper.selectSysForumCommentOne(sid);
|
SysForumComment sysForumComment = sysForumCommentMapper.selectSysForumCommentOne(sid);
|
||||||
return rb.success().setData(sysForumComment);
|
return rb.success().setData(sysForumComment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user