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