private static void apendSqlCon(StringBuffer sql, Node parent) throws BasException {
		NodeList nodes = parent.getChildNodes();
		int count = 0;
		for (int i = 0; i < nodes.getLength(); i++) {
			Node node = nodes.item(i);
			String nodeName = node.getNodeName().trim();
			if (BasConstants.XML_NODE_AND.equals(nodeName)) {
				if (BasUtil.isNullOrEmpty(node.getTextContent())) {
					throw new BasException(BasErrCode.E10039, BasConstants.XML_NODE_AND);
				}

				if (count != 0) {
					sql.append(" ").append(BasConstants.XML_NODE_AND);
				}
				sql.append(" ").append(node.getTextContent());
				count++;
			} else if (BasConstants.XML_NODE_OR.equals(nodeName)) {
				if (BasUtil.isNullOrEmpty(node.getTextContent())) {
					throw new BasException(BasErrCode.E10039, BasConstants.XML_NODE_OR);
				}

				if (count != 0) {
					sql.append(" ").append(BasConstants.XML_NODE_OR);
				}
				sql.append(" ").append(node.getTextContent());
				count++;
			}
		}
	}