1.fix
This commit is contained in:
2026-05-18 15:56:23 +08:00
parent cb5be00e26
commit 0f0001b706

View File

@@ -78,7 +78,7 @@ public class MerchantCatalogServiceImpl extends BaseServiceImpl<MerchantCatalogM
if (catalog.getId() != null) {
MerchantCatalogEntity entity = getById(catalog.getId());
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("企业商品不可修改");
}
}