TjService.java
3.41 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package com.thinkgem.jeesite.modules.interfaces.service;
import java.io.IOException;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.http.NameValuePair;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import org.mybatis.spring.SqlSessionTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.service.ServiceException;
import com.thinkgem.jeesite.common.utils.DateUtils;
import com.thinkgem.jeesite.common.utils.JsonUtil;
import com.thinkgem.jeesite.modules.reg.dao.base.RegBaseHDao;
import com.thinkgem.jeesite.modules.reg.dao.base.RegBaseZdjbxxDao;
import com.thinkgem.jeesite.modules.reg.dao.bus.RegBusBdcqzsdjxxDao;
import com.thinkgem.jeesite.modules.reg.dao.bus.RegBusFdcq2Dao;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseH;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZdjbxx;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusBdcqzsdjxx;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusFdcq2;
import com.thinkgem.jeesite.modules.sys.service.InterSiService;
import com.thinkgem.jeesite.modules.sys.utils.DictUtils;
import com.thinkgem.jeesite.modules.zhj.entity.ZhjSenddata;
import com.thinkgem.jeesite.modules.zhj.entity.ZhjSendpatch;
import com.thinkgem.jeesite.modules.zhj.service.ZhjSenddataService;
import com.thinkgem.jeesite.modules.zhj.service.ZhjSendpatchService;
@Service
public class TjService {
private Logger logger = LoggerFactory.getLogger(TjService.class);
@Autowired
private SqlSessionTemplate sqlSessionTemplate;
public Map selectZdjbxxCount() {
Map param = Maps.newHashMap();
List<Map> list = sqlSessionTemplate.selectList("odm.tj.selectZdjbxxCount",param);
if(list == null) {
Map res_map = Maps.newHashMap();
res_map.put("NUM", "0");
res_map.put("ZDMJ", "0");
return res_map;
}
return list.get(0);
}
public Map selectHxxCount() {
Map param = Maps.newHashMap();
List<Map> list = sqlSessionTemplate.selectList("odm.tj.selectHxxCount",param);
if(list == null) {
Map res_map = Maps.newHashMap();
res_map.put("NUM", "0");
res_map.put("SCJZMJ", "0");
return res_map;
}
return list.get(0);
}
public Map selectLdxxCount() {
Map res_map = Maps.newHashMap();
res_map.put("NUM", "0");
res_map.put("LDMJ", "0");
return res_map;
}
public List selectHFwytCountList() {
Map param = Maps.newHashMap();
List<Map> list = sqlSessionTemplate.selectList("odm.tj.selectHFwytCountList",param);
return list;
}
public List selectDjxxQllxList() {
Map param = Maps.newHashMap();
List<Map> list = sqlSessionTemplate.selectList("odm.tj.selectDjxxQllxCountList",param);
return list;
}
}