TjService.java 3.41 KB
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;
	}
	
	 

}