From c072682530bb797bf7a5eaffc87e1e2b394d3b60 Mon Sep 17 00:00:00 2001
From: deslrey <deslre0381@gmail.com>
Date: 星期二, 13 一月 2026 09:08:26 +0800
Subject: [PATCH] 新增取消拖拽功能造成的删除和插入操作接口

---
 basic-server/src/main/java/com/ruoyi/basic/service/impl/ProductSupplierDensityServiceImpl.java |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/basic-server/src/main/java/com/ruoyi/basic/service/impl/ProductSupplierDensityServiceImpl.java b/basic-server/src/main/java/com/ruoyi/basic/service/impl/ProductSupplierDensityServiceImpl.java
index 54a92ab..fc5f09e 100644
--- a/basic-server/src/main/java/com/ruoyi/basic/service/impl/ProductSupplierDensityServiceImpl.java
+++ b/basic-server/src/main/java/com/ruoyi/basic/service/impl/ProductSupplierDensityServiceImpl.java
@@ -32,15 +32,6 @@
         if (supplierDensity.getProductId() == null) {
             throw new BaseException("缂哄皯浜у搧瀵硅薄id");
         }
-        // 鏌ヨ鏀瑰巶瀹舵槸鍚︾粦瀹氳繃
-//        Long count = baseMapper.selectCount(Wrappers.<ProductSupplierDensity>lambdaQuery()
-//                .eq(ProductSupplierDensity::getProductId, supplierDensity.getProductId())
-//                .eq(ProductSupplierDensity::getModel, supplierDensity)
-//                .eq(ProductSupplierDensity::getSupplierName, supplierDensity.getSupplierName()));
-//        if (count > 0){
-//            throw new BaseException("璇ヤ骇鍝佸凡缁戝畾杩囪鍘傚");
-//        }
-
         baseMapper.insert(supplierDensity);
     }
 
@@ -49,15 +40,6 @@
         if (supplierDensity.getProductId() == null) {
             throw new BaseException("缂哄皯浜у搧瀵硅薄id");
         }
-        // 鏌ヨ鏀瑰巶瀹舵槸鍚︾粦瀹氳繃
-//        Long count = baseMapper.selectCount(Wrappers.<ProductSupplierDensity>lambdaQuery()
-//                .ne(ProductSupplierDensity::getId, supplierDensity.getId())
-//                .eq(ProductSupplierDensity::getProductId, supplierDensity.getProductId())
-//                .eq(ProductSupplierDensity::getModel, supplierDensity)
-//                .eq(ProductSupplierDensity::getSupplierName, supplierDensity.getSupplierName()));
-//        if (count > 0){
-//            throw new BaseException("璇ヤ骇鍝佸凡缁戝畾杩囪鍘傚");
-//        }
         baseMapper.updateById(supplierDensity);
     }
 }

--
Gitblit v1.9.3