From 9fd7a64d8eb19141db9e4d494493a68568b7d0aa Mon Sep 17 00:00:00 2001 From: XinYi Song <2037158277@qq.com> Date: Thu, 23 Dec 2021 14:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=9A=84=E5=AE=9E=E4=BD=93=E7=B1=BB=E4=BF=A1=E6=81=AF=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97=EF=BC=8C=E5=B0=86?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E5=88=A4=E6=96=AD=E5=8E=BB?= =?UTF-8?q?=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/model/entity/ProductEntity.java | 2 ++ src/main/java/com/xkrs/service/impl/ProductServiceImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/xkrs/model/entity/ProductEntity.java b/src/main/java/com/xkrs/model/entity/ProductEntity.java index f7a6993..14d74d2 100644 --- a/src/main/java/com/xkrs/model/entity/ProductEntity.java +++ b/src/main/java/com/xkrs/model/entity/ProductEntity.java @@ -82,11 +82,13 @@ public class ProductEntity { /** * 商品封面 */ + @Column(length = 5000, columnDefinition = "varchar(5000)") private String productCover; /** * 商品内容图片 */ + @Column(length = 5000, columnDefinition = "varchar(5000)") private String productContent; /** diff --git a/src/main/java/com/xkrs/service/impl/ProductServiceImpl.java b/src/main/java/com/xkrs/service/impl/ProductServiceImpl.java index d345d06..593da35 100644 --- a/src/main/java/com/xkrs/service/impl/ProductServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/ProductServiceImpl.java @@ -60,10 +60,10 @@ public class ProductServiceImpl implements ProductService { List productCover = productQo.getProductCover(); // 商品内容图片 List productContent = productQo.getProductContent(); - BusinessEntity byBusinessId = businessDao.findByBusinessIdAndBusinessType(business,"1"); + /*BusinessEntity byBusinessId = businessDao.findByBusinessIdAndBusinessType(business,"1"); if(byBusinessId == null){ return outputEncapsulationObject(PromptMessageEnum.DATA_NONE,"您还未入驻,请先入驻!",locale); - } + }*/ ProductEntity byProductName = productDao.findByProductName(productQo.getProductName()); if(byProductName != null){ return outputEncapsulationObject(PromptMessageEnum.FILE_EXISTS,"您已添加该商品,请勿重复添加!",locale);