|
|
@@ -166,8 +166,9 @@ public class FsTagUpdateServiceImpl implements FsTagUpdateService {
|
|
|
batchData.add(task);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- fsTagUpdateQueueMapper.batchInsert(batchData);
|
|
|
+ if (!batchData.isEmpty()) {
|
|
|
+ fsTagUpdateQueueMapper.batchInsert(batchData);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -228,8 +229,9 @@ public class FsTagUpdateServiceImpl implements FsTagUpdateService {
|
|
|
batchData.add(task);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- fsTagUpdateQueueMapper.batchInsert(batchData);
|
|
|
+ if (!batchData.isEmpty()) {
|
|
|
+ fsTagUpdateQueueMapper.batchInsert(batchData);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|