Browse Source

错误的

dev
jianjun 3 years ago
parent
commit
5928e6abc4
  1. 18
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java

18
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java

@ -913,24 +913,6 @@ public class IcResiUserController implements ResultDataResolver {
return new Result<List<String>>().ok(icResiUserService.getExistUserByHouseIds(ids));
}
// public static ThreadLocal tl = new ThreadLocal();
@PostMapping("test-async")
public Result testAsync(HttpServletRequest request) {
// tl.set("wxz");
executorService.submit(() -> {
try {
Thread.sleep(500l);
log.info("[我是子线程]:" + EpmetRequestHolder.getHeader("app"));
System.out.println("---");
} catch (InterruptedException e) {
log.error("method exception", e);
}
icResiUserImportService.testAsync();
});
return new Result();
}
/**
* @Author sun
* @Description 人房居民总数饼图

Loading…
Cancel
Save