ccjgmwz 3 年 前
コミット
1e9db093c3

+ 4 - 3
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/QualityInspectionManagementServiceImpl.java

@@ -120,13 +120,14 @@ public class QualityInspectionManagementServiceImpl extends ServiceImpl<QualityI
                     .eq("relation_id", qualityInspectionManagement.getRelationId())
                     .eq("comp_id", qualityInspectionManagement.getCompId()));
             if (weighingManagement==null){
-                //删除质检管理信息
-                this.deleteById(qualityInspectionManagement.getId());
 //                weighingManagementService.deleteById(weighingManagement.getId());
             }
             else{
-                throw new YException(YExceptionEnum.WEIGHT_NOT_DELETED_ERROR);
+                weighingManagementService.deleteById(weighingManagement.getId());
+//                throw new YException(YExceptionEnum.WEIGHT_NOT_DELETED_ERROR);
             }
+            //删除质检管理信息
+            this.deleteById(qualityInspectionManagement.getId());
         }
     }
     /**