update:
1.fix
This commit is contained in:
@@ -78,7 +78,7 @@ public class MerchantCatalogServiceImpl extends BaseServiceImpl<MerchantCatalogM
|
|||||||
if (catalog.getId() != null) {
|
if (catalog.getId() != null) {
|
||||||
MerchantCatalogEntity entity = getById(catalog.getId());
|
MerchantCatalogEntity entity = getById(catalog.getId());
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
if (!Objects.equals(entity.getType(), MerchantProductType.PLATFORM.getCode()) || catalog.getUserId() != null) {
|
if (!Objects.equals(entity.getType(), MerchantProductType.PLATFORM.getCode())) {
|
||||||
throw new ServiceException("企业商品不可修改");
|
throw new ServiceException("企业商品不可修改");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user