培训计划文件上传修改
parent
d3af35455b
commit
ca94dc7936
|
|
@ -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("上传失败");
|
||||
|
|
|
|||
Loading…
Reference in New Issue