ExecutorService service = Executors.newSingleThreadExecutor(); service.execute(new Runnable() { public void run() { inertPayRecord(reqdata, siteCode); // 插入支付记录 insertPayLog(reqdata); // 插入支付日志 } });