Browse Source

物料删除BUG

chenw 7 years ago
parent
commit
65fa00dd05

+ 1 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/ProductServiceImpl.java

@@ -449,6 +449,7 @@ public class ProductServiceImpl extends CommonBaseServiceImpl<ProductMapper, Pro
     }
     }
 
 
     @Override
     @Override
+    @Transactional
     public boolean deleteByPrimaryKey(Long id) {
     public boolean deleteByPrimaryKey(Long id) {
         Product productTemp = getMapper().selectByPrimaryKey(id);
         Product productTemp = getMapper().selectByPrimaryKey(id);
         if (ObjectUtils.isEmpty(productTemp)){
         if (ObjectUtils.isEmpty(productTemp)){