Skip to content

Commit

Permalink
spring 管理批量插入功能.
Browse files Browse the repository at this point in the history
  • Loading branch information
magestacks committed Dec 25, 2021
1 parent b77cfc0 commit cbaa3a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;
Expand Down Expand Up @@ -128,6 +129,7 @@ public MonitorRespDTO queryThreadPoolLastTaskCount(MonitorQueryReqDTO reqDTO) {
}

@Override
@Transactional(rollbackFor = Exception.class)
public void save(Message message) {
List<RuntimeMessage> runtimeMessages = message.getMessages();
List<HisRunDataInfo> hisRunDataInfos = Lists.newArrayList();
Expand Down

0 comments on commit cbaa3a9

Please sign in to comment.