|
|
@ -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 【人房】居民总数饼图 |
|
|
|