public static Boolean insertSalesOrder(SalesOrder salesOrder) throws ClassNotFoundException, SQLException{
		TicketManager ticketManager = new TicketManager();
		String soCode = UUID.randomUUID().toString();
//		String sql = "INSERT INTO test.train_ticketSalesOrder "
//				+ "(Code, IDCard, ticketNumber) " + "VALUES ( '"
//				+ soCode + "', 's%', 'd%');";	// 票据信息是通过数据库中查询出来的Enable为1 的最近的数据
		String sql = "INSERT INTO test.train_ticketSalesOrder "
				+ "(Code, IDCard, ticketNumber) " + "VALUES ( '"
				+ soCode + "', '";//s%', 'd%');";
		List<String> sqls = new ArrayList<String>();
		for (Ticket ticket : salesOrder.getTickets()) {
//			String tmpStr = String.format(sql,ticket.getIdCard(),			// 一直报错，找不到原因
//					+ ticket.getId());
			String tmpStr = sql + ticket.getIdCard()+"', '" + ticket.getId()+"');";
			sqls.add(tmpStr);
		}
		Object obj = new Object();
		Boolean result;
		synchronized (obj) {
			result = DateBaseManager.execute(sqls); // 插入订单数据
			if (result)
				result = ticketManager.updateTickets(salesOrder.getTickets()); // 更新票据信息
		}
		return result;
	}