no message

main
HUOJIN\92525 2024-06-03 12:17:19 +08:00
parent afa8862849
commit 4e120390e2
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ public class BatchCreateOrUpdate {
* @param entities * @param entities
* @param <T> * @param <T>
*/ */
@Transactional @Transactional(rollbackFor = Exception.class)
public <T> void batchCreate(List<T> entities) { public <T> void batchCreate(List<T> entities) {
int batchSize = 100; int batchSize = 100;
if (entities == null || entities.isEmpty()) { if (entities == null || entities.isEmpty()) {
@ -51,7 +51,7 @@ public class BatchCreateOrUpdate {
* @param entities * @param entities
* @param <T> * @param <T>
*/ */
@Transactional @Transactional(rollbackFor = Exception.class)
public <T> void batchUpdate(List<T> entities) { public <T> void batchUpdate(List<T> entities) {
int batchSize = 100; int batchSize = 100;
if (entities == null || entities.isEmpty()) { if (entities == null || entities.isEmpty()) {