Pārlūkot izejas kodu

菜品分类回滚

he.dujuan 3 gadi atpakaļ
vecāks
revīzija
ced5755a14

+ 2 - 0
eladmin-system/src/main/java/me/zhengjie/modules/dm/foodCate/service/impl/DmFoodCateServiceImpl.java

@@ -171,7 +171,9 @@ public class DmFoodCateServiceImpl implements DmFoodCateService {
         updateSubCnt(newPid);
     }
 
+
     @Override
+    @Transactional(rollbackFor = Exception.class)
     public void deleteAll(Set<DmFoodCate> dmFoodCates) {
         for (DmFoodCate foodCate : dmFoodCates) {
             dmFoodCateRepository.deleteById(foodCate.getId());