Template temp = getConfiguration().getTemplate("adviseproduct.ftl");
ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
GatewayCategory gatewayCategory = gatewayService.findGatewayCategoryById(GatewayConstants.CTC_TCTH);
root.put("gatewayCategory", gatewayCategory);
//同城兑换类型
List<ProductVO> productVOs = gatewayService.initGatewayInfo(GatewayConstants.CTC_TCTHLX);
root.put("productVOs", productVOs);