供应商重复导入修改
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user