供应商重复导入修改

This commit is contained in:
2025-09-24 14:59:06 +08:00
parent 1e76e4ffe1
commit bc41175162

View File

@ -1,5 +1,6 @@
package org.dromara.tender.service.impl;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.cailiaoshebei.controller.constant;
@ -240,7 +241,9 @@ public class TenderSupplierInputServiceImpl extends ServiceImpl<TenderSupplierIn
newTenderSupplierInput.setState("draft");
tenderSupplierInputs.add(newTenderSupplierInput);
}
if (CollectionUtils.isEmpty(tenderSupplierInputs)) {
throw new ServiceException("导入数据数据库中全部存在,请核实后再导入!!!");
}
return baseMapper.insertBatch(tenderSupplierInputs);
}