修改了商品的实体类信息,修改了添加商品的功能模块,将不必要的判断去掉
This commit is contained in:
parent
04d62fa38e
commit
9fd7a64d8e
@ -82,11 +82,13 @@ public class ProductEntity {
|
|||||||
/**
|
/**
|
||||||
* 商品封面
|
* 商品封面
|
||||||
*/
|
*/
|
||||||
|
@Column(length = 5000, columnDefinition = "varchar(5000)")
|
||||||
private String productCover;
|
private String productCover;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品内容图片
|
* 商品内容图片
|
||||||
*/
|
*/
|
||||||
|
@Column(length = 5000, columnDefinition = "varchar(5000)")
|
||||||
private String productContent;
|
private String productContent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,10 +60,10 @@ public class ProductServiceImpl implements ProductService {
|
|||||||
List<String> productCover = productQo.getProductCover();
|
List<String> productCover = productQo.getProductCover();
|
||||||
// 商品内容图片
|
// 商品内容图片
|
||||||
List<String> productContent = productQo.getProductContent();
|
List<String> productContent = productQo.getProductContent();
|
||||||
BusinessEntity byBusinessId = businessDao.findByBusinessIdAndBusinessType(business,"1");
|
/*BusinessEntity byBusinessId = businessDao.findByBusinessIdAndBusinessType(business,"1");
|
||||||
if(byBusinessId == null){
|
if(byBusinessId == null){
|
||||||
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE,"您还未入驻,请先入驻!",locale);
|
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE,"您还未入驻,请先入驻!",locale);
|
||||||
}
|
}*/
|
||||||
ProductEntity byProductName = productDao.findByProductName(productQo.getProductName());
|
ProductEntity byProductName = productDao.findByProductName(productQo.getProductName());
|
||||||
if(byProductName != null){
|
if(byProductName != null){
|
||||||
return outputEncapsulationObject(PromptMessageEnum.FILE_EXISTS,"您已添加该商品,请勿重复添加!",locale);
|
return outputEncapsulationObject(PromptMessageEnum.FILE_EXISTS,"您已添加该商品,请勿重复添加!",locale);
|
||||||
|
Loading…
Reference in New Issue
Block a user