From 48de12e1635b99d593048398af45d186c8f39234 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: 星期二, 29 七月 2025 11:10:42 +0800
Subject: [PATCH] 危化品简化版修改

---
 hazmat-system/src/main/java/com/gkhy/hazmat/system/service/impl/HzSecientificServiceImpl.java |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/hazmat-system/src/main/java/com/gkhy/hazmat/system/service/impl/HzSecientificServiceImpl.java b/hazmat-system/src/main/java/com/gkhy/hazmat/system/service/impl/HzSecientificServiceImpl.java
index cbcc175..1976121 100644
--- a/hazmat-system/src/main/java/com/gkhy/hazmat/system/service/impl/HzSecientificServiceImpl.java
+++ b/hazmat-system/src/main/java/com/gkhy/hazmat/system/service/impl/HzSecientificServiceImpl.java
@@ -113,16 +113,16 @@
 
     private void checkData(SecientificExcelData secientificExcelDatum) {
         if(StringUtils.isBlank(secientificExcelDatum.getSecientificName())){
-            throw new ApiException("序号"+secientificExcelDatum.getIndex()+"品名为空");
+            throw new ApiException("序号"+secientificExcelDatum.getIndex()+"品名为空"+"危险性类别:"+secientificExcelDatum.getRiskType());
         }
-        if(StringUtils.isBlank(secientificExcelDatum.getCas())){
-            throw new ApiException("序号"+secientificExcelDatum.getIndex()+"CAS码为空");
-        }
-        if(StringUtils.isBlank(secientificExcelDatum.getRiskType())){
-            throw new ApiException("序号"+secientificExcelDatum.getIndex()+"危险性类别为空");
-        }
-        if(secientificExcelDatum.getPeculiarityNumber() == null){
-            throw new ApiException("序号"+secientificExcelDatum.getIndex()+"危化品特性编码为空");
-        }
+//        if(StringUtils.isBlank(secientificExcelDatum.getCas())){
+//            throw new ApiException("序号"+secientificExcelDatum.getIndex()+"CAS码为空");
+//        }
+//        if(StringUtils.isBlank(secientificExcelDatum.getRiskType())){
+//            throw new ApiException("序号"+secientificExcelDatum.getIndex()+"危险性类别为空");
+//        }
+//        if(secientificExcelDatum.getPeculiarityNumber() == null){
+//            throw new ApiException("序号"+secientificExcelDatum.getIndex()+"危化品特性编码为空");
+//        }
     }
 }

--
Gitblit v1.9.2