| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | |
| | | @Validated |
| | | /* loaded from: blade-starter-mybatis-9.3.0.0-SNAPSHOT.jar:org/springblade/core/mp/service/impl/BladeServiceImpl.class */ |
| | | public class BladeServiceImpl<M extends BladeMapper<T>, T extends BaseEntity> extends BaseServiceImpl<M, T> implements BladeService<T> { |
| | | |
| | | |
| | |
| | | return SqlHelper.retBool(Integer.valueOf(((BladeMapper) this.baseMapper).replace(entity))); |
| | | } |
| | | |
| | | @Override // org.springblade.core.mp.service.BladeService |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public boolean saveIgnoreBatch(Collection<T> entityList, int batchSize) { |
| | | return saveBatch(entityList, batchSize, BladeSqlMethod.INSERT_IGNORE_ONE); |
| | | } |
| | | |
| | | @Override // org.springblade.core.mp.service.BladeService |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public boolean saveReplaceBatch(Collection<T> entityList, int batchSize) { |
| | | return saveBatch(entityList, batchSize, BladeSqlMethod.REPLACE_ONE); |