bf7b6973b35910311abcad9699d4ae85fef9be77.svn-base 1.61 KB
package com.thinkgem.jeesite.modules.information.web;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.google.common.collect.Maps;
import com.thinkgem.jeesite.common.web.BaseController;
import com.thinkgem.jeesite.modules.information.service.InformationService;
import com.thinkgem.jeesite.modules.reg.dao.base.RegBaseHDao;
import com.thinkgem.jeesite.modules.reg.web.httprest.utils.DatatypeUtil; 
/**
 * 4.5根据房屋不动产单元号提取不动产单元信息
 * @author liuxiang
 *
 */
@RestController
@RequestMapping(value = "${frontPath}/Information")
public class InformationController  extends BaseController{
	
	protected Logger logger = LoggerFactory.getLogger(getClass());
    
	public static final int HASH_INTERATIONS = 1024;
	public static final int SALT_SIZE = 8;
	@Autowired 
	private InformationService informationService;
	
	
	
	@RequestMapping(value ="/getInformation",method = RequestMethod.POST)
	public Map  getInformation(HttpServletRequest request,HttpServletResponse response)  {
		
		String jsonstr = DatatypeUtil.reqReceive(request);
		logger.info("传入参数{}",jsonstr); 
		Map resmap = Maps.newHashMap();
		resmap = informationService.getInformation(jsonstr);
		return resmap;
	}
}