瀏覽代碼

外部爆量素材库——excel导入

zhaoxian 3 年之前
父節點
當前提交
1c300ef0ca

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/fileupload/service/impl/ExternalMaterialCollectionServiceImpl.java

@@ -321,7 +321,7 @@ public class ExternalMaterialCollectionServiceImpl extends ServiceImpl<ExternalM
                 String materialDescribe = eeu.getCellValue(row.getCell(4));
                 ExternalMaterialCollection materialCollection = new ExternalMaterialCollection();
                 QueryWrapper<SysCategory> queryWrapper = new QueryWrapper<>();
-                queryWrapper.eq("name", industryLabel);
+                queryWrapper.eq("name", industryLabel).last("limit 1");
                 SysCategory one = sysCategoryService.getOne(queryWrapper);
                 if (!Check.isNull(one)) {
                     materialCollection.setIndustry(one.getId());