| | |
| | | |
| | | 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()+"危化品特性编码为空"); |
| | | // } |
| | | } |
| | | } |