From 76e866731ab0cf247823bc8628f33faadaf99f7e Mon Sep 17 00:00:00 2001 From: pserimal Date: Fri, 30 Jun 2023 10:44:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=8A=A8=E6=80=81=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E9=87=8D=E5=A4=8D=E5=BC=82=E5=B8=B8=E6=8A=9B=E5=87=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cool/store/service/impl/ContentServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/ContentServiceImpl.java b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/ContentServiceImpl.java index ce827f359..f6522a26f 100644 --- a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/ContentServiceImpl.java +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/ContentServiceImpl.java @@ -41,7 +41,7 @@ public class ContentServiceImpl implements ContentService { //增加不允许重复标题的逻辑 Boolean isDuplicated = contentInfoMapper.whetherTitleDuplicated(dto.getContentTitle()); if (isDuplicated) { - throw new ApiException(ErrorCodeEnum.DATA_CONVERT_ERROR); + throw new ApiException(ErrorCodeEnum.CONTENT_DUPLICATED); } HyContentInfoDO hyContentInfoDO = new HyContentInfoDO(); BeanUtil.copyProperties(dto, hyContentInfoDO);