Ver código fonte

产品删除修改

wangyu 6 anos atrás
pai
commit
fa807b9165

+ 1 - 4
diagbotman-service/src/main/java/com/diagbot/facade/LantoneProductFacade.java

@@ -216,12 +216,9 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
                     "产品删除失败");
         }
-        List<OpenedProducts> list = openedProductsFacade.getOpendById(openedProducts);
-        if(list.size() != 0){
-            if(!productServiceFacade.deleteByProductId(updateProductVO.getId())){
+        if(!productServiceFacade.deleteByProductId(updateProductVO.getId())){
                 throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
                         "产品令牌删除失败");
-            }
         }
         return true;
     }