bf7b6973b35910311abcad9699d4ae85fef9be77.svn-base
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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;
}
}