培训计划文件上传修改
parent
d3af35455b
commit
ca94dc7936
|
|
@ -173,6 +173,7 @@ public class PersonnelPlanController extends AbstractCommonFileController {
|
||||||
List<PersonnelPlan> plans = util.importExcel(file.getInputStream());
|
List<PersonnelPlan> plans = util.importExcel(file.getInputStream());
|
||||||
|
|
||||||
if (CollectionUtils.isNotEmpty(plans)) {
|
if (CollectionUtils.isNotEmpty(plans)) {
|
||||||
|
plans.forEach(o -> o.setId(IdWorker.getId()));
|
||||||
boolean b = service.saveBatch(plans);
|
boolean b = service.saveBatch(plans);
|
||||||
if (!b) {
|
if (!b) {
|
||||||
throw new IllegalArgumentException("上传失败");
|
throw new IllegalArgumentException("上传失败");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue