Merge remote-tracking branch 'origin/dev' into test

This commit is contained in:
Tankaikai 2024-11-19 14:15:14 +08:00
commit fd91fe655a
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ public class TbProductServiceImpl implements TbProductService {
if (!"group".equals(product.getTypeEnum())) {
if (resources.getCategoryId() == null) throw new BadRequestException("商品分类不可为空");
product.setGroupSnap(null);
if (resources.getNotices() != null && resources.getNotices().getId() != null) {
if (resources.getNotices() != null && resources.getNotices().getId() != null && resources.getNotices().getId() > 0) {
noticeRepository.deleteById(resources.getNotices().getId());
}
}