[]error: entityList must not be empty
com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: error: entityList must not be empty
at com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe(ExceptionUtils.java:49) ~[mybatis-plus-core-3.1.1.jar:3.1.1]
at com.baomidou.mybatisplus.core.toolkit.Assert.isTrue(Assert.java:38) ~[mybatis-plus-core-3.1.1.jar:3.1.1]
at com.baomidou.mybatisplus.core.toolkit.Assert.notEmpty(Assert.java:94) ~[mybatis-plus-core-3.1.1.jar:3.1.1]
长点脑子 ,org.apache.commons.collections.CollectionUtils.isNotEmpty + 批量操作!!!!
if (!CollectionUtils.isNotEmpty(valueSetAddDOS)) {
this.saveBatch(valueSetAddDOS);
}
if (!CollectionUtils.isNotEmpty(valueSetAddDOS)) {
this.updateBatchById(valueSetUpdateDOS);
}
再更新下, 上面的又写错了
if (CollectionUtils.isNotEmpty(valueSetAddDOS)) {
this.saveBatch(valueSetAddDOS);
}
if (CollectionUtils.isNotEmpty(valueSetAddDOS)) {
this.updateBatchById(valueSetUpdateDOS);
}