private boolean executeSql(String sql, Object[] params,String tableId) {
    	Connection connection = AppDBContext.getWCon(tableId);
        PreparedStatement preparedStatement = null;
        try {
            preparedStatement = connection.prepareStatement(sql);
            if (params != null && params.length != 0) {
                int index = 1;
                for (Object param : params) {
                    preparedStatement.setObject(index++, param);
                }
            }
            int i = preparedStatement.executeUpdate();
            if (i == 0) {
                return false;
            } else {
                return true;
            }
        } catch (Exception e) {
        	String msg = "sql=" +sql + ", params=" + Arrays.toString(params);
        	if (msg.length() > 2000) {
        		msg = msg.substring(0, 2000);
        	}
            log.error("db error " + ", tableId=" + tableId + ", " + msg , e);
            throw new DaoException("update error", e);
        } finally {
            DBUtil.closePs(preparedStatement);
        }

    }