From fe7fa03c8f6047fe32c8477c0d3548d8f30e151d Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期四, 13 三月 2025 14:01:36 +0800
Subject: [PATCH] Merge branch 'dev' into dev_dz

---
 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