public synchronized Result<?> list() throws java.lang.Exception {\n\tlog.info("开始销售订单");\n\tJSONObject result = odsSalesOrderHeaderService.createSalesOrderToSAP();\n\tif (result.get("success").equals(false)){\n\t\t//发送邮件\n\t\tsendMail2(result.getString("message"));\n\t\treturn Result.error(result.get("message").toString());\n\t}\n}

Java接口同步访问实现:保证每次只有一个用户访问

原文地址: https://www.cveoy.top/t/topic/qfYB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录