소스 검색

产品删除修改

wangyu 6 년 전
부모
커밋
fa807b9165
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      diagbotman-service/src/main/java/com/diagbot/facade/LantoneProductFacade.java

+ 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;
     }