21833014a630883a3d41cdaf92153f49bdd50550.svn-base 3.29 KB
package com.thinkgem.jeesite.modules.ycsl.web.ycdl;

import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.google.common.collect.Maps;
import com.thinkgem.jeesite.common.utils.JsonUtil;
import com.thinkgem.jeesite.modules.title.po.Fwsx;
import com.thinkgem.jeesite.modules.title.service.FwsxService;
import com.thinkgem.jeesite.modules.title.service.ZdxxService;
import com.thinkgem.jeesite.modules.title.service.ZsxService;
import com.thinkgem.jeesite.modules.ycsl.entity.YcslJbxx;
import com.thinkgem.jeesite.modules.ycsl.po.YcdlDto;
import com.thinkgem.jeesite.modules.ycsl.service.YcslJbxxService;
import com.thinkgem.jeesite.modules.ycsl.service.ycdl.YcdlService;

@RestController
@RequestMapping(value = "${frontPath}/ycdl")
public class YcdlController {
	
    protected Logger logger = Logger.getLogger(getClass());
    @Autowired
    private YcdlService ycdlService;
  
	/*
	 * 4.2 房屋不动产权证号
	 */
    @RequestMapping("/getBdcxxByBdcqzh")
	public Map getBdcxxByBdcqzh(HttpServletRequest request) {
		Map map = Maps.newHashMap();
		map = ycdlService.getBdcxxByBdcqzh(request);
		
		return map;
	}
    /*
     * 4.3 房屋抵押证明号
     */
    @RequestMapping("/getBdcxxByDyzmh")
	public Map getBdcxxByDyzmh(HttpServletRequest request) {
		Map map = Maps.newHashMap();
		map = ycdlService.getBdcxxByDyzmh(request);
		
		return map;
	}
    /*
     * 4.4 房屋预告证明号
     */
    @RequestMapping("/getBdcxxByYgzmh")
	public Map getBdcxxByYgzmh(HttpServletRequest request) {
		Map map = Maps.newHashMap();
		map = ycdlService.getBdcxxByYgzmh(request);
		
		return map;
	} 
    
    /*
     * 4.10
     */
    @RequestMapping("/getYwzt")
	public Map getYwzt(HttpServletRequest request) {
		Map map = Maps.newHashMap();
		map = ycdlService.getYwzt(request);
		
		return map;
	} 
    
    /*
     * 4.6 土地不动产权证号
     */
    @RequestMapping("/getTdBdcxxByBdcqzh")
	public Map getTdBdcxxByBdcqzh(HttpServletRequest request) {
		Map map = Maps.newHashMap();
		map = ycdlService.getTdBdcxxByBdcqzh(request);
		
		return map;
	}
    
    /*
     * 4.7 宗地代码
     */
    @RequestMapping("/getBdcxxZddm")
	public Map getBdcxxZddm(HttpServletRequest request) {
		Map map = Maps.newHashMap();
		map = ycdlService.getBdcxxZddm(request);
		
		return map;
	}
    
    /*
     * 4.9 查档证明
     */
    @RequestMapping("/checkCertifyInspect")
	public Map checkCertifyInspect(HttpServletRequest request) throws JsonParseException, JsonMappingException, IOException {
		Map map = Maps.newHashMap();
		map = ycdlService.checkCertifyInspect(request);
		
		return map;
	}
    
    
    
    /*
     * 测试一窗发送数据
     */
   /* @RequestMapping("/ceshi")
  	public Map ceshi(HttpServletRequest request) {
  		Map map = Maps.newHashMap();
  		YcslJbxx jbxx = ycslJbxxService.get(request.getParameter("id"));
  		map = ycslJbxxService.getMap(jbxx);
  		
  		return map;
  	}*/
      
}