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