培训计划文件上传修改

master
徐杰盟 2024-09-26 14:08:55 +08:00
parent d3af35455b
commit ca94dc7936
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ public class PersonnelPlanController extends AbstractCommonFileController {
List<PersonnelPlan> plans = util.importExcel(file.getInputStream());
if (CollectionUtils.isNotEmpty(plans)) {
plans.forEach(o -> o.setId(IdWorker.getId()));
boolean b = service.saveBatch(plans);
if (!b) {
throw new IllegalArgumentException("上传失败");