撤销异步

main
hshansha 1 month ago
parent 064c06f124
commit a9b34f690d

@ -12,7 +12,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* @author ruoyi * @author ruoyi
*/ */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@EnableAsync //@EnableAsync
@EnableScheduling @EnableScheduling
public class RuoYiApplication public class RuoYiApplication
{ {

@ -114,7 +114,7 @@ public class KhVoteEmpServiceImpl implements IKhVoteEmpService {
@Override @Override
@Transactional @Transactional
@Async("threadPoolTaskExecutor") // @Async("threadPoolTaskExecutor")
public AjaxResult voteSubmit(KhVoteRecardParam param) { public AjaxResult voteSubmit(KhVoteRecardParam param) {
System.out.println("------------------------开始异步批量处理用户数据,线程:" + Thread.currentThread().getName()); System.out.println("------------------------开始异步批量处理用户数据,线程:" + Thread.currentThread().getName());
Map<String, String> xuanxiangDetails = new LinkedHashMap<>(); Map<String, String> xuanxiangDetails = new LinkedHashMap<>();

Loading…
Cancel
Save