From 5fa7af69e5d2f9485521b955fe487d23903c16f0 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期四, 16 十二月 2021 10:07:46 +0800 Subject: [PATCH] 新增Vue3前端代码生成模板 --- src/main/java/com/ruoyi/project/system/service/impl/SysPostServiceImpl.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ruoyi/project/system/service/impl/SysPostServiceImpl.java b/src/main/java/com/ruoyi/project/system/service/impl/SysPostServiceImpl.java index b013cbb..f7d1b33 100644 --- a/src/main/java/com/ruoyi/project/system/service/impl/SysPostServiceImpl.java +++ b/src/main/java/com/ruoyi/project/system/service/impl/SysPostServiceImpl.java @@ -4,7 +4,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.common.constant.UserConstants; -import com.ruoyi.common.exception.CustomException; +import com.ruoyi.common.exception.ServiceException; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.project.system.domain.SysPost; import com.ruoyi.project.system.mapper.SysPostMapper; @@ -67,7 +67,7 @@ * @return 閫変腑宀椾綅ID鍒楄〃 */ @Override - public List<Integer> selectPostListByUserId(Long userId) + public List<Long> selectPostListByUserId(Long userId) { return postMapper.selectPostListByUserId(userId); } @@ -147,7 +147,7 @@ SysPost post = selectPostById(postId); if (countUserPostById(postId) > 0) { - throw new CustomException(String.format("%1$s宸插垎閰�,涓嶈兘鍒犻櫎", post.getPostName())); + throw new ServiceException(String.format("%1$s宸插垎閰�,涓嶈兘鍒犻櫎", post.getPostName())); } } return postMapper.deletePostByIds(postIds); -- Gitblit v1.9.3