From 3d09568e6cbc4a3eadd5230141ae807262856077 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 29 Oct 2024 11:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=AC=E5=8F=B8=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/ma/service/impl/SupplierInfoServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/SupplierInfoServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/SupplierInfoServiceImpl.java index e5dd6512..c58265bf 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/SupplierInfoServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/service/impl/SupplierInfoServiceImpl.java @@ -12,6 +12,7 @@ import org.springframework.stereotype.Service; import com.bonus.material.ma.mapper.SupplierInfoMapper; import com.bonus.material.ma.domain.SupplierInfo; import com.bonus.material.ma.service.ISupplierInfoService; +import org.springframework.util.CollectionUtils; import javax.annotation.Resource; @@ -66,7 +67,7 @@ public class SupplierInfoServiceImpl implements ISupplierInfoService { supplierInfo.setCreateTime(DateUtils.getNowDate()); int insertedSupplierInfoResult = supplierInfoMapper.insertSupplierInfo(supplierInfo); if (insertedSupplierInfoResult > 0) { - if (supplierInfo.getBusinessLicenseFileList() == null) { + if (CollectionUtils.isEmpty(supplierInfo.getBusinessLicenseFileList())) { return AjaxResult.success("新增任务成功,无营业执照附件"); } AtomicBoolean addFileInfoResult = new AtomicBoolean(false);