a11d5ad878022bc2c9ac69ef7b5dd29abb4d3b8e.svn-base
1.46 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
49
50
51
52
53
54
55
56
57
package com.thinkgem.jeesite.modules.title.web;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
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;
@RestController
@RequestMapping(value = "${frontPath}/title")
public class TitleController {
protected Logger logger = Logger.getLogger(getClass());
@Autowired
private ZdxxService zdxxService;
@Autowired
private ZsxService zsxService;
@Autowired
private FwsxService fwsxService;
public Map synZdjbxx() {
Map map = Maps.newHashMap();
try {
zdxxService.synZdjbxx();
zsxService.synZxx();
} catch (Exception e) {
e.printStackTrace();
}
return map;
}
public Map synZxx() {
Map map = Maps.newHashMap();
try {
zsxService.synZxx();
} catch (Exception e) {
e.printStackTrace();
}
return map;
}
@RequestMapping(value="/syn/fwxx")
public Map synFwxx(Fwsx dto) {
logger.debug("接收信息:"+JsonUtil.toJsonString(dto));
Map map = Maps.newHashMap();
fwsxService.synFwxx(dto);
return map;
}
}