solr服务项目

parents
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<context id="DB2Tables" targetRuntime="MyBatis3">
<commentGenerator>
<!-- 生成没有注释的 -->
<property name="suppressAllComments" value="true" />
</commentGenerator>
<!-- 配置数据库连接 -->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/ssm_crud" userId="root"
password="123">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- 指定javaBean生成的位置 -->
<javaModelGenerator targetPackage="com.cc.model"
targetProject=".\src\main\java">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!--指定sql映射文件生成的位置 -->
<sqlMapGenerator targetPackage="mapper" targetProject=".\src\main\resources">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<!-- 指定dao接口生成的位置,mapper接口 -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.cc.dao" targetProject=".\src\main\java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!-- table指定每个表的生成策略 -->
<table tableName="tbl_emp" domainObjectName="Employee"></table>
<table tableName="tbl_dept" domainObjectName="Department"></table>
</context>
</generatorConfiguration>
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.cc</groupId>
<artifactId>xzxt_solr</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>xzxt_solr Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
<spring.version>4.2.6.RELEASE</spring.version>
<mybatis.version>3.4.1</mybatis.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.2</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.39</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>jstl-api</artifactId>
<version>1.2</version>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jstl-api-1.2.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.5</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>4.1.6</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>jstl-api</artifactId>
<version>1.2</version>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jstl-api-1.2.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>14</version>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/ojdbc14.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>org.lionsoul</groupId>
<artifactId>jcseg-core</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.8.8</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>5.5.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.2</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.39</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
</dependencies>
<build>
<finalName>xzxt_solr</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
package com.cc.controller;
import com.cc.model.Employee;
import com.cc.model.Gasjzyfwpz;
import com.cc.model.Msg;
import com.cc.service.EmployeeService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
/**
* 处理员工CRUD请求
*
* @author lfy
*
*/
@Controller
public class EmployeeController {
//@Autowired
//Gasjzyfwpz gasjzyfwpz;
@Autowired
EmployeeService employeeService;
/**
* 导入jackson包。
* @param pn
* @return
*/
//@RequestMapping("/emps")
//@ResponseBody
/* public Msg getEmpsWithJson(
@RequestParam(value = "pn", defaultValue = "1") Integer pn) {
// 这不是一个分页查询
// 引入PageHelper分页插件
// 在查询之前只需要调用,传入页码,以及每页的大小
PageHelper.startPage(pn, 5);
// startPage后面紧跟的这个查询就是一个分页查询
List<Employee> emps = employeeService.getAll();
// 使用pageInfo包装查询后的结果,只需要将pageInfo交给页面就行了。
// 封装了详细的分页信息,包括有我们查询出来的数据,传入连续显示的页数
PageInfo page = new PageInfo(emps, 5);
return Msg.success().add("pageInfo", page);
}*/
/**
* 查询员工数据(分页查询)
*
* @return
*/
@RequestMapping("/emps")
public String getEmps(@RequestParam(value = "pn", defaultValue = "1") Integer pn, Model model) {
// 这不是一个分页查询;
// 引入PageHelper分页插件
// 在查询之前只需要调用,传入页码,以及每页的大小
PageHelper.startPage(pn, 5);
// startPage后面紧跟的这个查询就是一个分页查询
//List<Employee> emps = employeeService.getAll();
// 使用pageInfo包装查询后的结果,只需要将pageInfo交给页面就行了。
// 封装了详细的分页信息,包括有我们查询出来的数据,传入连续显示的页数
//PageInfo page = new PageInfo(emps, 5);
model.addAttribute("pageInfo", "222");
return "list";
}
}
package com.cc.controller;
import com.cc.model.Drsconfig;
import com.cc.db.InfoDao;
import com.cc.framework.WordsTpye;
import com.cc.model.Table;
import com.cc.service.EmployeeService;
import com.cc.service.GasjzyfwService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.cc.utils.querySolr.$;
import static com.cc.utils.querySolrList.$list;
/**
* 处理solr请求
*
* @author changchao
*
*/
@Controller
public class LoginController {
/**
* ESB查询
*
* @return
*/
@Autowired
GasjzyfwService gasjzyfwService;
private static final Logger logger = LoggerFactory.getLogger(LoginController.class);
@RequestMapping(value = "/tosupersearch",method = {RequestMethod.POST,RequestMethod.GET})
public @ResponseBody Map<String, Object> solrsearch(String value,String unitcode)throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
WordsTpye wordsTpye = new WordsTpye();
InfoDao idao = new InfoDao();
String qjtcQueryParam ="";
String querytype ="";
String sf=unitcode.substring(0,2);
//判断传入的参数是什么类型
if(wordsTpye.isPsnid(value)){
qjtcQueryParam = "zjhm";//证件号码
querytype="1";
}
else if(wordsTpye.isCarid(value)) {
qjtcQueryParam = "cph";//车牌号
querytype = "2";
}
else if(wordsTpye.isMobile(value)){
qjtcQueryParam = "dhhm";//电话号码
querytype="3";
}
else if(InfoDao.isXzqh(value)){
qjtcQueryParam = "xzqh";//行政区划
querytype="6";//行政区划
}
else if(wordsTpye.isDatestr(value)){
qjtcQueryParam = "csrq";//出生日期
querytype="5";//出生日期
}
else{
qjtcQueryParam = "xm";//中文名
querytype="4";//中文名
}
//西藏没有ESB资源服务
//if(!sf.equals("54")){
List<Drsconfig> drsconfigs = InfoDao.getAllDrsconfig(unitcode,querytype);//获取配置的esb服务数量
Integer drsconfigsnum=drsconfigs.size();
if(drsconfigsnum>0){
model.put("drsconfigsnum",drsconfigsnum);
}else{
model.put("drsconfigsnum",0);
}
//}else{
// model.put("drsconfigsnum",0);
//}
model.put("qjtcQueryParam",qjtcQueryParam);
model.put("querytype",querytype);
return model;
}
}
package com.cc.controller;
import com.cc.model.SysDictitem;
import com.cc.service.EmployeeService;
import com.cc.service.MenuService;
import com.github.pagehelper.PageHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 处理员工CRUD请求
*
* @author changchao
*
*/
@Controller
public class MenuController {
private static final Logger logger = LoggerFactory.getLogger(MenuController.class);
@Autowired
MenuService menuService;
/**
* 导航菜单查询
* @param querytype
* @return
*/
@RequestMapping("/menu")
public @ResponseBody
Map<String,Object> getEmps(String querytype) {
Map<String, Object> maplist = new HashMap<String, Object>();
Map<String, Object> map = new HashMap<String, Object>();
map.put("levelid",querytype);
maplist=menuService.getMenus(map);
return maplist;
}
}
package com.cc.controller;
import com.cc.model.tbstry;
import com.cc.utils.Qgckzp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.cc.utils.querySolr.$;
/**
* 处理solr请求
*
* @author changchao
*
*/
@Controller
public class RyxxController {
/**
* solr查询全国常口
*
* @return
*/
private static final Logger logger = LoggerFactory.getLogger(RyxxController.class);
@RequestMapping(value = "/ryxxsearch",method = {RequestMethod.POST,RequestMethod.GET})
public @ResponseBody Map<String, Object> ryxxsearch(String value)throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
Qgckzp getryxx = new Qgckzp();
tbstry ryxx = getryxx.getQgckAllxxXml(value);
model.put("ryxx",ryxx);
return model;
}
}
package com.cc.controller;
import java.util.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import static com.cc.utils.propertiesUtil.propertiesUtil;
import static com.cc.utils.querySolr.$;
import static com.cc.utils.querySolrList.$list;
import static com.cc.utils.querySolrdata.$data;
/**
* 处理solr请求
*
* @author changchao
*
*/
@Controller
public class SolrController {
private static final Logger logger = LoggerFactory.getLogger(SolrController.class);
/**
* solrList查询
*
* @return
*/
@RequestMapping(value = "/solrsearch",method = {RequestMethod.POST,RequestMethod.GET})
public @ResponseBody Map<String, Object> solrsearch(String value)throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
//调用solr查询接口
model=$("solrZyUrl","solrZyCxtj","solrZyGlzd",value);
return model;
}
/**
* solrNum查询
*
* @return
*/
@RequestMapping(value = "/solrsearchlist",method = {RequestMethod.POST,RequestMethod.GET})
public @ResponseBody
List<Map<String, Object>> solrsearchlist(String value)throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
List<Map<String, Object>> nums=new ArrayList<Map<String, Object>>();
//遍历查询资源数量
Properties properties=propertiesUtil("solr.properties");
String zylist=properties.getProperty("zylist");
String [] zylistdate=zylist.split(",");
for(String solrzy:zylistdate){
//System.out.print(solrzy);
String [] solrlist =solrzy.split(":");
//调用solr查询接口
model=$list(solrlist,value);//503A1503025500010000005SolrDocument
if(!model.get("solrNum").equals("0")){
nums.add(model);
//System.out.println("查出数据"+nums.get(0).get("solrList"));
}
}
return nums;
}
@RequestMapping(value = "/solrsearchdata",method = {RequestMethod.POST,RequestMethod.GET})
public @ResponseBody Map<String, Object> solrsearchdata(String solr,String value,int num,String sort)throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
//调用solr查询数据接口
model=$data(solr,value,num,sort);
return model;
}
/**
* solrNum查询
*
* @return
*/
@RequestMapping(value = "/esbsearchlist",method = {RequestMethod.POST,RequestMethod.GET})
public @ResponseBody
List<Map<String, Object>> esbsearchlist(String value)throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
List<Map<String, Object>> nums=new ArrayList<Map<String, Object>>();
//遍历查询资源数量
Properties properties=propertiesUtil("solr.properties");
String zylist=properties.getProperty("zylist");
String [] zylistdate=zylist.split(",");
for(String solrzy:zylistdate){
//System.out.print(solrzy);
String [] solrlist =solrzy.split(":");
//调用solr查询接口
model=$list(solrlist,value);//503A1503025500010000005SolrDocument
if(!model.get("solrNum").equals("0")){
nums.add(model);
//System.out.println("查出数据"+nums.get(0).get("solrList"));
}
}
return nums;
}
}
package com.cc.dao;
import com.cc.model.Department;
import com.cc.model.DepartmentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface DepartmentMapper {
long countByExample(DepartmentExample example);
int deleteByExample(DepartmentExample example);
int deleteByPrimaryKey(Integer deptId);
int insert(Department record);
int insertSelective(Department record);
List<Department> selectByExample(DepartmentExample example);
Department selectByPrimaryKey(Integer deptId);
int updateByExampleSelective(@Param("record") Department record, @Param("example") DepartmentExample example);
int updateByExample(@Param("record") Department record, @Param("example") DepartmentExample example);
int updateByPrimaryKeySelective(Department record);
int updateByPrimaryKey(Department record);
}
\ No newline at end of file
package com.cc.dao;
import com.cc.model.Employee;
import com.cc.model.EmployeeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface EmployeeMapper {
long countByExample(EmployeeExample example);
int deleteByExample(EmployeeExample example);
int deleteByPrimaryKey(Integer empId);
int insert(Employee record);
int insertSelective(Employee record);
List<Employee> selectByExample(EmployeeExample example);
Employee selectByPrimaryKey(Integer empId);
int updateByExampleSelective(@Param("record") Employee record, @Param("example") EmployeeExample example);
int updateByExample(@Param("record") Employee record, @Param("example") EmployeeExample example);
int updateByPrimaryKeySelective(Employee record);
int updateByPrimaryKey(Employee record);
}
\ No newline at end of file
package com.cc.dao;
import com.cc.model.Drsconfig;
import com.cc.model.Gasjzyfwpz;
import com.cc.model.GasjzyfwpzFilter;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component
public interface GasjzyfwDao {
List<Drsconfig> getAllDrsconfig(Map map);
//-------------
List<Gasjzyfwpz> getGazyfwBySp(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getGazyfwById(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getGazyfwByResourceType(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getGazyfwByServiceId(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getGazyfwByAllTrails(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getGazyfwByTrailType(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getGazyfwIdByResourceHighType(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getGazyfwIdByCommonProperty(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getGazyfwIdByResourceType(GasjzyfwpzFilter gf);
//-----------------
List<Gasjzyfwpz> getGazyfwflByRTL(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getBshInfoByCode(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getRybhInfoByZjhm(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getRYHDPhoneInfoByRybh(GasjzyfwpzFilter gf);
List<Gasjzyfwpz> getWPJDCCphInfoByRybh(GasjzyfwpzFilter gf);
}
package com.cc.dao;
import com.cc.model.SysDictitem;
import java.util.List;
import java.util.Map;
public interface MenuDao {
List<SysDictitem> selectYjList(Map map);
List<SysDictitem> selectRjList(Map map);
List<SysDictitem> selectSjList(Map map);
}
\ No newline at end of file
package com.cc.db;
import java.sql.Connection;
import java.sql.DriverManager;
import com.cc.framework.Constants;
public class DBConnection {
/**
* 连接数据源
* @return Connection
* @throws Exception
*/
public static Connection getConnection() throws Exception {
String DB_driver = Constants.DB_driver;
String DB_url = Constants.DB_url;
String DB_dbuser = Constants.DB_dbuser;
String DB_dbpwd = Constants.DB_dbpwd;
Class.forName(DB_driver);
//System.out.println(DB_url);
//System.out.println(DB_dbuser+" "+DB_dbuser);
Connection conn = DriverManager.getConnection(DB_url, DB_dbuser, DB_dbpwd);
if (conn.isClosed()) {
throw new Exception("Jndi Connection is closed.");
}
return conn;
}
public static Connection getConnection1() throws Exception {
String DB_driver = Constants.DB_driver1;
String DB_url = Constants.DB_url1;
String DB_dbuser = Constants.DB_dbuser1;
String DB_dbpwd = Constants.DB_dbpwd1;
Class.forName(DB_driver);
//System.out.println(DB_url);
//System.out.println(DB_dbuser+" "+DB_dbuser);
Connection conn = DriverManager.getConnection(DB_url, DB_dbuser, DB_dbpwd);
if (conn.isClosed()) {
throw new Exception("Jndi Connection is closed.");
}
return conn;
}
}
package com.cc.db;
public class Drsconfig {
private String resourcetype;//资源类别
private String servicename;//服务名称
private String serviceprovince;//服务对应的省份
private String listfieldcode;//列表页显示字段code
private String listfieldname;//列表页显示字段名称
private String detailfieldcode;//详情页显示字段code
private String detailfieldname;//详情页显示字段名称
private String flag = "2";//类型:1全文检索;2ESB服务
private String qjtctid; //全景通查类型id
public String getResourcetype() {
return resourcetype;
}
public void setResourcetype(String resourcetype) {
this.resourcetype = resourcetype;
}
public String getServicename() {
return servicename;
}
public void setServicename(String servicename) {
this.servicename = servicename;
}
public String getServiceprovince() {
return serviceprovince;
}
public void setServiceprovince(String serviceprovince) {
this.serviceprovince = serviceprovince;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
public String getListfieldcode() {
return listfieldcode;
}
public void setListfieldcode(String listfieldcode) {
this.listfieldcode = listfieldcode;
}
public String getListfieldname() {
return listfieldname;
}
public void setListfieldname(String listfieldname) {
this.listfieldname = listfieldname;
}
public String getDetailfieldcode() {
return detailfieldcode;
}
public void setDetailfieldcode(String detailfieldcode) {
this.detailfieldcode = detailfieldcode;
}
public String getDetailfieldname() {
return detailfieldname;
}
public void setDetailfieldname(String detailfieldname) {
this.detailfieldname = detailfieldname;
}
public String getQjtctid() {
return qjtctid;
}
public void setQjtctid(String qjtctid) {
this.qjtctid = qjtctid;
}
}
package com.cc.db;
public class Layer {
private String code;
private String enname;
private String chname;
private String type;
private String cntype;
private String flag = "1";//类型:1全文检索;2ESB服务
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getEnname() {
return enname;
}
public void setEnname(String enname) {
this.enname = enname;
}
public String getChname() {
return chname;
}
public void setChname(String chname) {
this.chname = chname;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getCntype() {
return cntype;
}
public void setCntype(String cntype) {
this.cntype = cntype;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
}
package com.cc.db;
public class LayerType implements java.io.Serializable{
private String tid ;
private String enname;
public String getTid() {
return tid;
}
public void setTid(String tid) {
this.tid = tid;
}
public String getEnname() {
return enname;
}
public void setEnname(String enname) {
this.enname = enname;
}
}
package com.cc.db;
public class Table {
private String EnName;
private String fieldname;
private String aliasname;
private String chname;
private String type;
public String getChname() {
return chname;
}
public void setChname(String chname) {
this.chname = chname;
}
public String getAliasname() {
return aliasname;
}
public void setAliasname(String aliasname) {
this.aliasname = aliasname;
}
public String getEnName() {
return EnName;
}
public void setEnName(String enName) {
EnName = enName;
}
public String getFieldname() {
return fieldname;
}
public void setFieldname(String fieldname) {
this.fieldname = fieldname;
}
}
package com.cc.framework;
import java.util.ResourceBundle;
/**
* <p>Title: Constants.java</p>
* <p>Description: 基本的常量类!</p>
* <p>Copyright: HIGHLAND'S Copyright (c) 2013</p>
* <p>Company: HIGHLAND</p>
* @since 2013-8-20
* @author HIGHLAND_TEAM_Luojx
* @version 1.0
*/
public class Constants {
/**分页数据大小*/
public static final int DEFAULT_PAGE_SIZE = 15;
public static final int DEFAULT_BATCH_SIZE = 15;
public static final String LISTVIEW = "list";
public static final String EDITVIEW = "edit";
public static final String ADDVIEW ="add";
public static final String SUCCESSVIEW = "view";
public static final String SHOWRELATED ="showrelated";
public static final String REDIRECTED ="redirected";
public static final String SHOWMESSAGE ="message";
public static final String searchURL = ResourceBundle.getBundle("config").getString("searchURL");
public static final String serverSchema = ResourceBundle.getBundle("config").getString("serverSchema");
public static final String DB_driver = ResourceBundle.getBundle("config").getString("driver");
public static final String DB_url = ResourceBundle.getBundle("config").getString("url");
public static final String DB_dbuser = ResourceBundle.getBundle("config").getString("dbuser");
public static final String DB_dbpwd = ResourceBundle.getBundle("config").getString("dbpwd");
public static final String DB_driver1 = ResourceBundle.getBundle("jdbcconfig").getString("jdbc.driverClass");
public static final String DB_url1 = ResourceBundle.getBundle("jdbcconfig").getString("jdbc.url");
public static final String DB_dbuser1 = ResourceBundle.getBundle("jdbcconfig").getString("jdbc.user");
public static final String DB_dbpwd1 = ResourceBundle.getBundle("jdbcconfig").getString("jdbc.password");
/**
* SIM卡中定义的常量
*/
public static final String SPLIT_LINE = "#";
public static final String SPLIT_REC = ",";
public static final String SPLIT_LINE_XLS = "\\$\\#\\$";
public static final String SPLIT_REC_XLS = "\\¥\\$\\¥";
public static final String SPLIT_REC_XLS_TWO = "¥$¥";
/**
* 案件导引 根据点样式
*/
public static final String ASJDY_GJDYS="<img src='/XZXXZYXT/xtba/asj/jsmind/example/jinghui.png' width='32px' style='margin-left:32px;'/><br/>";
/**
* 案件导引 子节点样式
*/
public static final String ASJDY_CJDYS="<img src='/XZXXZYXT/xtba/asj/jsmind/example/#pic#' width='20px' style='vertical-align:bottom;margin:4px 6px 0 4px'/>";
/**
* 案件导引 节点文本样式
*/
public static final String ASJDY_JDTEXTYS="#text#";
/**
* 案件导引节点数字样式
*/
public static final String ASJDY_JDNUMYS="<span style='background:#F6D111;color:#fff;padding:2px 5px;border-radius:2px;margin:0 4px;'>#num#</span>";
}
package com.cc.model;
public class Department {
private Integer deptId;
private String deptName;
public Integer getDeptId() {
return deptId;
}
public void setDeptId(Integer deptId) {
this.deptId = deptId;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName == null ? null : deptName.trim();
}
}
\ No newline at end of file
package com.cc.model;
import java.util.ArrayList;
import java.util.List;
public class DepartmentExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DepartmentExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andDeptIdIsNull() {
addCriterion("dept_id is null");
return (Criteria) this;
}
public Criteria andDeptIdIsNotNull() {
addCriterion("dept_id is not null");
return (Criteria) this;
}
public Criteria andDeptIdEqualTo(Integer value) {
addCriterion("dept_id =", value, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdNotEqualTo(Integer value) {
addCriterion("dept_id <>", value, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdGreaterThan(Integer value) {
addCriterion("dept_id >", value, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdGreaterThanOrEqualTo(Integer value) {
addCriterion("dept_id >=", value, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdLessThan(Integer value) {
addCriterion("dept_id <", value, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdLessThanOrEqualTo(Integer value) {
addCriterion("dept_id <=", value, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdIn(List<Integer> values) {
addCriterion("dept_id in", values, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdNotIn(List<Integer> values) {
addCriterion("dept_id not in", values, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdBetween(Integer value1, Integer value2) {
addCriterion("dept_id between", value1, value2, "deptId");
return (Criteria) this;
}
public Criteria andDeptIdNotBetween(Integer value1, Integer value2) {
addCriterion("dept_id not between", value1, value2, "deptId");
return (Criteria) this;
}
public Criteria andDeptNameIsNull() {
addCriterion("dept_name is null");
return (Criteria) this;
}
public Criteria andDeptNameIsNotNull() {
addCriterion("dept_name is not null");
return (Criteria) this;
}
public Criteria andDeptNameEqualTo(String value) {
addCriterion("dept_name =", value, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameNotEqualTo(String value) {
addCriterion("dept_name <>", value, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameGreaterThan(String value) {
addCriterion("dept_name >", value, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameGreaterThanOrEqualTo(String value) {
addCriterion("dept_name >=", value, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameLessThan(String value) {
addCriterion("dept_name <", value, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameLessThanOrEqualTo(String value) {
addCriterion("dept_name <=", value, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameLike(String value) {
addCriterion("dept_name like", value, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameNotLike(String value) {
addCriterion("dept_name not like", value, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameIn(List<String> values) {
addCriterion("dept_name in", values, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameNotIn(List<String> values) {
addCriterion("dept_name not in", values, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameBetween(String value1, String value2) {
addCriterion("dept_name between", value1, value2, "deptName");
return (Criteria) this;
}
public Criteria andDeptNameNotBetween(String value1, String value2) {
addCriterion("dept_name not between", value1, value2, "deptName");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.cc.model;
public class Drsconfig {
private String resourcetype;//资源类别
private String servicename;//服务名称
private String serviceprovince;//服务对应的省份
private String listfieldcode;//列表页显示字段code
private String listfieldname;//列表页显示字段名称
private String detailfieldcode;//详情页显示字段code
private String detailfieldname;//详情页显示字段名称
private String flag = "2";//类型:1全文检索;2ESB服务
private String qjtctid; //全景通查类型id
public String getResourcetype() {
return resourcetype;
}
public void setResourcetype(String resourcetype) {
this.resourcetype = resourcetype;
}
public String getServicename() {
return servicename;
}
public void setServicename(String servicename) {
this.servicename = servicename;
}
public String getServiceprovince() {
return serviceprovince;
}
public void setServiceprovince(String serviceprovince) {
this.serviceprovince = serviceprovince;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
public String getListfieldcode() {
return listfieldcode;
}
public void setListfieldcode(String listfieldcode) {
this.listfieldcode = listfieldcode;
}
public String getListfieldname() {
return listfieldname;
}
public void setListfieldname(String listfieldname) {
this.listfieldname = listfieldname;
}
public String getDetailfieldcode() {
return detailfieldcode;
}
public void setDetailfieldcode(String detailfieldcode) {
this.detailfieldcode = detailfieldcode;
}
public String getDetailfieldname() {
return detailfieldname;
}
public void setDetailfieldname(String detailfieldname) {
this.detailfieldname = detailfieldname;
}
public String getQjtctid() {
return qjtctid;
}
public void setQjtctid(String qjtctid) {
this.qjtctid = qjtctid;
}
}
package com.cc.model;
public class Employee {
//公安数据资源服务访问链接
private String servcieUrl = null;
//标识号类别
private String idType = null;
//服务省份
private String serviceProvince = null;
//服务输入参数
private String serviceInputParam = null;
//数据资源类别
private String resourceType = null;
//数据资源输出项
private String outputFormatTransXml = null;
//数据资源输入项
private String inputFormatTransXml = null;
//服务ID
private String serviceId = null;
//数据资源父类别
private String resourceHighType = null;
//数据资源名称
private String resourceName = null;
//数据资源类别级别
private String resourceTypeLevel = null;
//数据资源输出内容名称
private String outputContentName = null;
//数据资源标识号名称
private String bshName = null;
//数据资源服务名称
private String serviceName = null;
//时间分析字段
private String timeAnalysisField = null;
//车牌号
private String cph = null;
//电话号码
private String phoneNumber = null;
//人员编号
private String rybh = null;
//行政区化分析字段
private String regionAnalysisField = null;
//轨迹节点名称字段
private String trailNodeNameField = null;
//轨迹节点ID字段
private String trailNodeIdField = null;
//轨迹类型
private String trailType = null;
//资源显示类别
private String resourceDisplayType = null;
//同时空时间查询条件
private String tsksjQueryCondition = null;
//同时空地域查询条件
private String tskdyQueryCondition = null;
//资源共同属性
private String commonProperties = null;
public String getCph() {
return cph;
}
public void setCph(String cph) {
this.cph = cph;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public String getRybh() {
return rybh;
}
public void setRybh(String rybh) {
this.rybh = rybh;
}
public String getOutputContentName() {
return outputContentName;
}
public void setOutputContentName(String outputContentName) {
this.outputContentName = outputContentName;
}
public String getServcieUrl() {
return servcieUrl;
}
public void setServcieUrl(String servcieUrl) {
this.servcieUrl = servcieUrl;
}
public String getIdType() {
return idType;
}
public void setIdType(String idType) {
this.idType = idType;
}
public String getServiceProvince() {
return serviceProvince;
}
public void setServiceProvince(String serviceProvince) {
this.serviceProvince = serviceProvince;
}
public String getServiceInputParam() {
return serviceInputParam;
}
public void setServiceInputParam(String serviceInputParam) {
this.serviceInputParam = serviceInputParam;
}
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
public String getOutputFormatTransXml() {
return outputFormatTransXml;
}
public void setOutputFormatTransXml(String outputFormatTransXml) {
this.outputFormatTransXml = outputFormatTransXml;
}
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public String getResourceHighType() {
return resourceHighType;
}
public void setResourceHighType(String resourceHighType) {
this.resourceHighType = resourceHighType;
}
public String getResourceName() {
return resourceName;
}
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
public String getResourceTypeLevel() {
return resourceTypeLevel;
}
public void setResourceTypeLevel(String resourceTypeLevel) {
this.resourceTypeLevel = resourceTypeLevel;
}
public String getInputFormatTransXml() {
return inputFormatTransXml;
}
public void setInputFormatTransXml(String inputFormatTransXml) {
this.inputFormatTransXml = inputFormatTransXml;
}
public String getBshName() {
return bshName;
}
public void setBshName(String bshName) {
this.bshName = bshName;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getTimeAnalysisField() {
return timeAnalysisField;
}
public void setTimeAnalysisField(String timeAnalysisField) {
this.timeAnalysisField = timeAnalysisField;
}
public String getRegionAnalysisField() {
return regionAnalysisField;
}
public void setRegionAnalysisField(String regionAnalysisField) {
this.regionAnalysisField = regionAnalysisField;
}
public String getTrailNodeNameField() {
return trailNodeNameField;
}
public void setTrailNodeNameField(String trailNodeNameField) {
this.trailNodeNameField = trailNodeNameField;
}
public String getTrailNodeIdField() {
return trailNodeIdField;
}
public void setTrailNodeIdField(String trailNodeIdField) {
this.trailNodeIdField = trailNodeIdField;
}
public String getTrailType() {
return trailType;
}
public void setTrailType(String trailType) {
this.trailType = trailType;
}
public String getResourceDisplayType() {
return resourceDisplayType;
}
public void setResourceDisplayType(String resourceDisplayType) {
this.resourceDisplayType = resourceDisplayType;
}
public String getTsksjQueryCondition() {
return tsksjQueryCondition;
}
public void setTsksjQueryCondition(String tsksjQueryCondition) {
this.tsksjQueryCondition = tsksjQueryCondition;
}
public String getTskdyQueryCondition() {
return tskdyQueryCondition;
}
public void setTskdyQueryCondition(String tskdyQueryCondition) {
this.tskdyQueryCondition = tskdyQueryCondition;
}
public String getCommonProperties() {
return commonProperties;
}
public void setCommonProperties(String commonProperties) {
this.commonProperties = commonProperties;
}
}
\ No newline at end of file
package com.cc.model;
public class GasjzyDisplayItems {
//公安数据资源服务ID
private String serviceId = null;
//公安数据资源类别
private String resourceType = null;
//公安数据资源类别名称
private String resourceTypeName = null;
//公安数据资源选中类别
private String resourceCurrentType = null;
//显示行数
private String displayRow = null;
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
public String getResourceTypeName() {
return resourceTypeName;
}
public void setResourceTypeName(String resourceTypeName) {
this.resourceTypeName = resourceTypeName;
}
public String getResourceCurrentType() {
return resourceCurrentType;
}
public void setResourceCurrentType(String resourceCurrentType) {
this.resourceCurrentType = resourceCurrentType;
}
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public String getDisplayRow() {
return displayRow;
}
public void setDisplayRow(String displayRow) {
this.displayRow = displayRow;
}
}
package com.cc.model;
/**
* @Description* @Copyright: HighLand'S Copyright (c) 2015
* @Company: HighLand
* @author zhouli
* @E-mail:zhouli@bjhlxt.com
* @careate 2015-11-26
* @version 1.0
* TODO ��
*/
@SuppressWarnings("serial")
public class Gasjzyfwpz {
//公安数据资源服务访问链接
private String servcieUrl = null;
//标识号类别
private String idType = null;
//服务省份
private String serviceProvince = null;
//服务输入参数
private String serviceInputParam = null;
//数据资源类别
private String resourceType = null;
//数据资源输出项
private String outputFormatTransXml = null;
//数据资源输入项
private String inputFormatTransXml = null;
//服务ID
private String serviceId = null;
//数据资源父类别
private String resourceHighType = null;
//数据资源名称
private String resourceName = null;
//数据资源类别级别
private String resourceTypeLevel = null;
//数据资源输出内容名称
private String outputContentName = null;
//数据资源标识号名称
private String bshName = null;
//数据资源服务名称
private String serviceName = null;
//时间分析字段
private String timeAnalysisField = null;
//车牌号
private String cph = null;
//电话号码
private String phoneNumber = null;
//人员编号
private String rybh = null;
//行政区化分析字段
private String regionAnalysisField = null;
//轨迹节点名称字段
private String trailNodeNameField = null;
//轨迹节点ID字段
private String trailNodeIdField = null;
//轨迹类型
private String trailType = null;
//资源显示类别
private String resourceDisplayType = null;
//同时空时间查询条件
private String tsksjQueryCondition = null;
//同时空地域查询条件
private String tskdyQueryCondition = null;
//资源共同属性
private String commonProperties = null;
public String getCph() {
return cph;
}
public void setCph(String cph) {
this.cph = cph;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public String getRybh() {
return rybh;
}
public void setRybh(String rybh) {
this.rybh = rybh;
}
public String getOutputContentName() {
return outputContentName;
}
public void setOutputContentName(String outputContentName) {
this.outputContentName = outputContentName;
}
public String getServcieUrl() {
return servcieUrl;
}
public void setServcieUrl(String servcieUrl) {
this.servcieUrl = servcieUrl;
}
public String getIdType() {
return idType;
}
public void setIdType(String idType) {
this.idType = idType;
}
public String getServiceProvince() {
return serviceProvince;
}
public void setServiceProvince(String serviceProvince) {
this.serviceProvince = serviceProvince;
}
public String getServiceInputParam() {
return serviceInputParam;
}
public void setServiceInputParam(String serviceInputParam) {
this.serviceInputParam = serviceInputParam;
}
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
public String getOutputFormatTransXml() {
return outputFormatTransXml;
}
public void setOutputFormatTransXml(String outputFormatTransXml) {
this.outputFormatTransXml = outputFormatTransXml;
}
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public String getResourceHighType() {
return resourceHighType;
}
public void setResourceHighType(String resourceHighType) {
this.resourceHighType = resourceHighType;
}
public String getResourceName() {
return resourceName;
}
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
public String getResourceTypeLevel() {
return resourceTypeLevel;
}
public void setResourceTypeLevel(String resourceTypeLevel) {
this.resourceTypeLevel = resourceTypeLevel;
}
public String getInputFormatTransXml() {
return inputFormatTransXml;
}
public void setInputFormatTransXml(String inputFormatTransXml) {
this.inputFormatTransXml = inputFormatTransXml;
}
public String getBshName() {
return bshName;
}
public void setBshName(String bshName) {
this.bshName = bshName;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getTimeAnalysisField() {
return timeAnalysisField;
}
public void setTimeAnalysisField(String timeAnalysisField) {
this.timeAnalysisField = timeAnalysisField;
}
public String getRegionAnalysisField() {
return regionAnalysisField;
}
public void setRegionAnalysisField(String regionAnalysisField) {
this.regionAnalysisField = regionAnalysisField;
}
public String getTrailNodeNameField() {
return trailNodeNameField;
}
public void setTrailNodeNameField(String trailNodeNameField) {
this.trailNodeNameField = trailNodeNameField;
}
public String getTrailNodeIdField() {
return trailNodeIdField;
}
public void setTrailNodeIdField(String trailNodeIdField) {
this.trailNodeIdField = trailNodeIdField;
}
public String getTrailType() {
return trailType;
}
public void setTrailType(String trailType) {
this.trailType = trailType;
}
public String getResourceDisplayType() {
return resourceDisplayType;
}
public void setResourceDisplayType(String resourceDisplayType) {
this.resourceDisplayType = resourceDisplayType;
}
public String getTsksjQueryCondition() {
return tsksjQueryCondition;
}
public void setTsksjQueryCondition(String tsksjQueryCondition) {
this.tsksjQueryCondition = tsksjQueryCondition;
}
public String getTskdyQueryCondition() {
return tskdyQueryCondition;
}
public void setTskdyQueryCondition(String tskdyQueryCondition) {
this.tskdyQueryCondition = tskdyQueryCondition;
}
public String getCommonProperties() {
return commonProperties;
}
public void setCommonProperties(String commonProperties) {
this.commonProperties = commonProperties;
}
}
package com.cc.model;
/**
* @Description* @Copyright: HighLand'S Copyright (c) 2015
* @Company: HighLand
* @author zhouli
* @E-mail:zhouli@bjhlxt.com
* @careate 2015-11-26
* @version 1.0
* TODO :
*/
@SuppressWarnings("serial")
public class GasjzyfwpzFilter {
//服务ID
private String serviceId = null;
//数据资源父类别
private String resourceHighType = null;
//标识号类别
private String idType = null;
//服务省份
private String serviceProvince = null;
//服务输入参数
private String serviceInputParam = null;
//数据资源类别
private String resourceType = null;
//数据资源名称
private String resourceName = null;
//数据资源类别级别
private String resourceTypeLevel = null;
//数据资源标识号代码
private String bshCode = null;
//证件号码
private String zjhm = null;
//人员编号
private String rybh = null;
//轨迹类型
private String trailType = null;
//资源共同属性
private String commonProperties = null;
public String getCommonProperties() {
return commonProperties;
}
public void setCommonProperties(String commonProperties) {
this.commonProperties = commonProperties;
}
public String getIdType() {
return idType;
}
public void setIdType(String idType) {
this.idType = idType;
}
public String getServiceProvince() {
return serviceProvince;
}
public void setServiceProvince(String serviceProvince) {
this.serviceProvince = serviceProvince;
}
public String getServiceInputParam() {
return serviceInputParam;
}
public void setServiceInputParam(String serviceInputParam) {
this.serviceInputParam = serviceInputParam;
}
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public String getResourceHighType() {
return resourceHighType;
}
public void setResourceHighType(String resourceHighType) {
this.resourceHighType = resourceHighType;
}
public String getResourceName() {
return resourceName;
}
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
public String getResourceTypeLevel() {
return resourceTypeLevel;
}
public void setResourceTypeLevel(String resourceTypeLevel) {
this.resourceTypeLevel = resourceTypeLevel;
}
public String getBshCode() {
return bshCode;
}
public void setBshCode(String bshCode) {
this.bshCode = bshCode;
}
public String getZjhm() {
return zjhm;
}
public void setZjhm(String zjhm) {
this.zjhm = zjhm;
}
public String getRybh() {
return rybh;
}
public void setRybh(String rybh) {
this.rybh = rybh;
}
public String getTrailType() {
return trailType;
}
public void setTrailType(String trailType) {
this.trailType = trailType;
}
}
package com.cc.model;
public class Layer {
private String code;
private String enname;
private String chname;
private String type;
private String cntype;
private String flag = "1";//类型:1全文检索;2ESB服务
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getEnname() {
return enname;
}
public void setEnname(String enname) {
this.enname = enname;
}
public String getChname() {
return chname;
}
public void setChname(String chname) {
this.chname = chname;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getCntype() {
return cntype;
}
public void setCntype(String cntype) {
this.cntype = cntype;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
}
package com.cc.model;
public class LayerType implements java.io.Serializable{
private String tid ;
private String enname;
public String getTid() {
return tid;
}
public void setTid(String tid) {
this.tid = tid;
}
public String getEnname() {
return enname;
}
public void setEnname(String enname) {
this.enname = enname;
}
}
package com.cc.model;
import java.util.HashMap;
import java.util.Map;
/**
* 通用的返回的类
*
* @author lfy
*
*/
public class Msg {
//状态码 100-成功 200-失败
private int code;
//提示信息
private String msg;
//用户要返回给浏览器的数据
private Map<String, Object> extend = new HashMap<String, Object>();
public static Msg success(){
Msg result = new Msg();
result.setCode(100);
result.setMsg("处理成功!");
return result;
}
public static Msg fail(){
Msg result = new Msg();
result.setCode(200);
result.setMsg("处理失败!");
return result;
}
public Msg add(String key,Object value){
this.getExtend().put(key, value);
return this;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Map<String, Object> getExtend() {
return extend;
}
public void setExtend(Map<String, Object> extend) {
this.extend = extend;
}
}
/*File: Resource.java
* date 2013-10-9
*/
package com.cc.model;
import java.util.ArrayList;
import java.util.List;
/**
* <p>Title: Resource.java</p>
* <p>Description: ϵͳ��Դʵ����</p>
* <p>Copyright: HIGHLAND'S Copyright (c) 2013</p>
* <p>Company: HIGHLAND</p>
* @author highland_team_Luojx
* @date 2013-10-9
* @version 1.0
*/
@SuppressWarnings("serial")
public class Resource {
private String name;
private String url;
private String icon;
private String description;
private String parentid;
private String inputid;
private String bm;
private List<Resource> children = new ArrayList<Resource>();
private String ifbc;
private String qckurl;//����������������ַ
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getParentid() {
return parentid;
}
public void setParentid(String parentid) {
this.parentid = parentid;
}
public List<Resource> getChildren() {
return children;
}
public void setChildren(List<Resource> children) {
this.children = children;
}
public String getInputid() {
return inputid;
}
public void setInputid(String inputid) {
this.inputid = inputid;
}
public String getBm() {
return bm;
}
public void setBm(String bm) {
this.bm = bm;
}
public String getIfbc() {
return ifbc;
}
public void setIfbc(String ifbc) {
this.ifbc = ifbc;
}
public String getQckurl() {
return qckurl;
}
public void setQckurl(String qckurl) {
this.qckurl = qckurl;
}
}
/*File: Role.java
* date 2013-10-9
*/
package com.cc.model;
import java.util.List;
/**
* <p>Title: Role.java</p>
* <p>Description: ��ɫʵ����</p>
* <p>Copyright: HIGHLAND'S Copyright (c) 2013</p>
* <p>Company: HIGHLAND</p>
* @author highland_team_Luojx
* @date 2013-10-9
* @version 1.0
*/
public class Role {
private static final long serialVersionUID = 1L;
private String rolename;
private String description;
private List<Resource> resources;
private String fp = null;
private String sffb=null;
public String getRolename() {
return rolename;
}
public void setRolename(String rolename) {
this.rolename = rolename;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public List<Resource> getResources() {
return resources;
}
public void setResources(List<Resource> resources) {
this.resources = resources;
}
public String getFp() {
return fp;
}
public void setFp(String fp) {
this.fp = fp;
}
public String getSffb() {
return sffb;
}
public void setSffb(String sffb) {
this.sffb = sffb;
}
}
package com.cc.model;
import java.util.Date;
public class SysDictitem {
private String code = null;
private String name = null;
private String groupid = null;
private String pid = null;
private String spell = null;
private String wbzx = null;
private String simple = null;
private String groupname = null;
private Date lrsj = null;
private Date lrsj1 = null;
private int xxdlNum = 0;
public int getXxdlNum() {
return xxdlNum;
}
public void setXxdlNum(int xxdlNum) {
this.xxdlNum = xxdlNum;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getGroupid() {
return groupid;
}
public void setGroupid(String groupid) {
this.groupid = groupid;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getSpell() {
return spell;
}
public void setSpell(String spell) {
this.spell = spell;
}
public String getWbzx() {
return wbzx;
}
public void setWbzx(String wbzx) {
this.wbzx = wbzx;
}
public String getSimple() {
return simple;
}
public void setSimple(String simple) {
this.simple = simple;
}
public String getGroupname() {
return groupname;
}
public void setGroupname(String groupname) {
this.groupname = groupname;
}
public Date getLrsj() {
return lrsj;
}
public void setLrsj(Date lrsj) {
this.lrsj = lrsj;
}
public Date getLrsj1() {
return lrsj1;
}
public void setLrsj1(Date lrsj1) {
this.lrsj1 = lrsj1;
}
}
\ No newline at end of file
package com.cc.model;
public class Table {
private String EnName;
private String fieldname;
private String aliasname;
private String chname;
private String type;
public String getChname() {
return chname;
}
public void setChname(String chname) {
this.chname = chname;
}
public String getAliasname() {
return aliasname;
}
public void setAliasname(String aliasname) {
this.aliasname = aliasname;
}
public String getEnName() {
return EnName;
}
public void setEnName(String enName) {
EnName = enName;
}
public String getFieldname() {
return fieldname;
}
public void setFieldname(String fieldname) {
this.fieldname = fieldname;
}
}
package com.cc.model;
import java.util.Date;
import java.util.List;
public class User {
private static final long serialVersionUID = 1L;
private String repassword;
private String unitcode;
private String unitname;
private String username;
private String password;
private String trueName;
//是否锁定
private String openFlag;
//身份证号码
private String identitycard;
private String sex;
private Date birthday;
private String policemanid;//警号
private String telephone;
private String remark;
private List<Role> roles;
private String grade;//用户级别
private String countycode; //根据用户级别截取单位代码
private int default_desktop;//该用户默认的工作桌面
private String id;//
private String theme;
private String xxzyurl;//信息资源URL
private String rolename;//山西添加角色字段(非表字段)
private String gzzmzhy;//工作桌面
private String gzzmypy;
private String gzzmzcy;
private String gzzmplay;//用户角色
private String glybz;//管理员判断标志
private String tqyhbz;//特权用户判断标志
public String getGlybz() {
return glybz;
}
public void setGlybz(String glybz) {
this.glybz = glybz;
}
public String getTqyhbz() {
return tqyhbz;
}
public void setTqyhbz(String tqyhbz) {
this.tqyhbz = tqyhbz;
}
public int getDefault_desktop() {
return default_desktop;
}
public void setDefault_desktop(int default_desktop) {
this.default_desktop = default_desktop;
}
public List<Role> getRoles() {
return roles;
}
public void setRoles(List<Role> roles) {
this.roles = roles;
}
/**
* 判断当前用户是否有指定名称的权限
*
* @param name
* @return
*/
public boolean hasAuthorityByName(String name) {
// 超级管理员有所有的权限
if (username.equals("admin")) {
return true;
}
// 对于其他用户,要有权限才返回true
for (Role role : this.getRoles()) {
for (Resource resource : role.getResources()) {
if (name.equals(resource.getName())) {
return true;
}
}
}
return false;
}
/**
* 判断当前用户是否有指定名称的权限
*
* @param
* @return
*//*
public boolean hasAuthorityById(String id) {
// 超级管理员有所有的权限
if (username.equals("admin")) {
return true;
}
// 对于其他用户,要有权限才返回true
for (Role role : this.getRoles()) {
if(role!=null){
for (Resource resource : role.getResources()) {
if(resource != null){
if (id.equals(resource.getId())) {
return true;
}
}else{
return false;
}
}
}else{
return false;
}
}
return false;
}*/
/**
* 判断当前用户是否有指定URL的权限,如果有"UI"后缀,就会去掉后再判断
*
* @param
* @return
*//*
@SuppressWarnings("unchecked")
public boolean hasAuthorityByUrl(String inputid) {
// 超级管理员有所有的权限
if (username.equals("admin")) {
return true;
}
// 权限表中的所有URL,都是需要控制的功能
List<String> allAuthorityids = (List<String>) ActionContext.getContext().getApplication().get("allAuthorityids");
// 如果本权限不需要控制,就是用户都可以使用,则返回true
if (!allAuthorityids.contains(inputid)) {
return true;
}
// 如果本权限需要控制,就需要有权限才可以使用
else {
// 对于其他用户,要有权限才返回true
for (Role role : roles) {
for (Resource res : role.getResources()) {
if (inputid.equals(res.getInputid())) {
return true;
}
}
}
return false;
}
}*/
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getTrueName() {
return trueName;
}
public void setTrueName(String trueName) {
this.trueName = trueName;
}
public String getOpenFlag() {
return openFlag;
}
public void setOpenFlag(String openFlag) {
this.openFlag = openFlag;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getRepassword() {
return repassword;
}
public void setRepassword(String repassword) {
this.repassword = repassword;
}
public String getUnitcode() {
if(unitcode != null && !"".equals(unitcode)){
unitcode = unitcode.trim();
}
return unitcode;
}
public void setUnitcode(String unitcode) {
this.unitcode = unitcode;
}
public String getUnitname() {
return unitname;
}
public void setUnitname(String unitname) {
this.unitname = unitname;
}
public String getIdentitycard() {
return identitycard;
}
public void setIdentitycard(String identitycard) {
this.identitycard = identitycard;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public String getPolicemanid() {
return policemanid;
}
public void setPolicemanid(String policemanid) {
this.policemanid = policemanid;
}
public String getTelephone() {
return telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public String getGrade() {
return grade;
}
public void setGrade(String grade) {
this.grade = grade;
}
public String getCountycode() {
return countycode;
}
public void setCountycode(String countycode) {
this.countycode = countycode;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTheme() {
return theme;
}
public void setTheme(String theme) {
this.theme = theme;
}
public String getXxzyurl() {
return xxzyurl;
}
public void setXxzyurl(String xxzyurl) {
this.xxzyurl = xxzyurl;
}
public String getRolename() {
return rolename;
}
public void setRolename(String rolename) {
this.rolename = rolename;
}
public String getGzzmzhy() {
return gzzmzhy;
}
public void setGzzmzhy(String gzzmzhy) {
this.gzzmzhy = gzzmzhy;
}
public String getGzzmypy() {
return gzzmypy;
}
public void setGzzmypy(String gzzmypy) {
this.gzzmypy = gzzmypy;
}
public String getGzzmzcy() {
return gzzmzcy;
}
public void setGzzmzcy(String gzzmzcy) {
this.gzzmzcy = gzzmzcy;
}
public String getGzzmplay() {
return gzzmplay;
}
public void setGzzmplay(String gzzmplay) {
this.gzzmplay = gzzmplay;
}
}
package com.cc.model;
import java.util.Date;
public class tbstry {
//"出生地_地址名称"
private String csdDzmc;
//"性别代码"
private String xbdm;
//"名族代码"
private String mzdm;
//"籍贯省市县代码"
private String jgdm;
//"现住址_地址名称"
private String xzzDzmc;
//"姓名"
private String xm;
//"常用证件_证件号码"
private String cyzjZjhm;
//出生日期
private Date csrqRqgzxx;
//"户籍地址_行政区划代码"
private String hjdzXzqhdm;
//"照片"
private String zp;
public String getCsdDzmc() {
return csdDzmc;
}
public void setCsdDzmc(String csdDzmc) {
this.csdDzmc = csdDzmc;
}
public String getXbdm() {
return xbdm;
}
public void setXbdm(String xbdm) {
this.xbdm = xbdm;
}
public String getJgdm() {
return jgdm;
}
public void setJgdm(String jgdm) {
this.jgdm = jgdm;
}
public String getXzzDzmc() {
return xzzDzmc;
}
public void setXzzDzmc(String xzzDzmc) {
this.xzzDzmc = xzzDzmc;
}
public String getXm() {
return xm;
}
public void setXm(String xm) {
this.xm = xm;
}
public String getCyzjZjhm() {
return cyzjZjhm;
}
public void setCyzjZjhm(String cyzjZjhm) {
this.cyzjZjhm = cyzjZjhm;
}
public Date getCsrqRqgzxx() {
return csrqRqgzxx;
}
public void setCsrqRqgzxx(Date csrqRqgzxx) {
csrqRqgzxx = csrqRqgzxx;
}
public String getHjdzXzqhdm() {
return hjdzXzqhdm;
}
public void setHjdzXzqhdm(String hjdzXzqhdm) {
this.hjdzXzqhdm = hjdzXzqhdm;
}
public String getZp() {
return zp;
}
public void setZp(String zp) {
this.zp = zp;
}
public String getMzdm() {
return mzdm;
}
public void setMzdm(String mzdm) {
this.mzdm = mzdm;
}
@Override
public String toString() {
return "tbstry{" +
"csdDzmc='" + csdDzmc + '\'' +
", xbdm='" + xbdm + '\'' +
", jgdm='" + jgdm + '\'' +
", xzzDzmc='" + xzzDzmc + '\'' +
", xm='" + xm + '\'' +
", cyzjZjhm='" + cyzjZjhm + '\'' +
", CsrqRqgzxx=" + csrqRqgzxx +
", hjdzXzqhdm='" + hjdzXzqhdm + '\'' +
", zp='" + zp + '\'' +
'}';
}
}
\ No newline at end of file
package com.cc.service;
import java.util.List;
import com.cc.dao.EmployeeMapper;
import com.cc.model.Employee;
import com.cc.model.EmployeeExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class EmployeeService {
@Autowired
EmployeeMapper employeeMapper;
/**
* 查询所有员工
* @return
*/
/*public List<Employee> getAll() {
// TODO Auto-generated method stub
//return employeeMapper.selectByExampleWithDept(null);
return List;
}*/
/**
* 员工保存
* @param employee
*//*
public void saveEmp(Employee employee) {
// TODO Auto-generated method stub
employeeMapper.insertSelective(employee);
}
*//**
* 检验用户名是否可用
*
* @param empName
* @return true:代表当前姓名可用 fasle:不可用
*//*
public boolean checkUser(String empName) {
// TODO Auto-generated method stub
EmployeeExample example = new EmployeeExample();
EmployeeExample.Criteria criteria = example.createCriteria();
criteria.andEmpNameEqualTo(empName);
long count = employeeMapper.countByExample(example);
return count == 0;
}
*//**
* 按照员工id查询员工
* @param id
* @return
*//*
public Employee getEmp(Integer id) {
// TODO Auto-generated method stub
Employee employee = employeeMapper.selectByPrimaryKey(id);
return employee;
}
*//**
* 员工更新
* @param employee
*//*
public void updateEmp(Employee employee) {
// TODO Auto-generated method stub
employeeMapper.updateByPrimaryKeySelective(employee);
}
*//**
* 员工删除
* @param id
*//*
public void deleteEmp(Integer id) {
// TODO Auto-generated method stub
employeeMapper.deleteByPrimaryKey(id);
}
public void deleteBatch(List<Integer> ids) {
// TODO Auto-generated method stub
EmployeeExample example = new EmployeeExample();
EmployeeExample.Criteria criteria = example.createCriteria();
//delete from xxx where emp_id in(1,2,3)
criteria.andEmpIdIn(ids);
employeeMapper.deleteByExample(example);
}*/
}
package com.cc.service;
import com.cc.dao.GasjzyfwDao;
import com.cc.model.Drsconfig;
import com.cc.model.Gasjzyfwpz;
import com.cc.model.GasjzyfwpzFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class GasjzyfwService {
@Autowired
private GasjzyfwDao gasjzyfwDao;
public List<Drsconfig> getAllDrsconfig(String unitcode,String value) {
Map<String, String> model = new HashMap<String, String>();
unitcode=unitcode.substring(0,2);
model.put("serviceProvince",unitcode);
model.put("querytype",value);
return gasjzyfwDao.getAllDrsconfig(model);
}
public List<Gasjzyfwpz> getGasjzypzInfoById(GasjzyfwpzFilter gf) {
return gasjzyfwDao.getGazyfwById(gf);
}
public List<Gasjzyfwpz> getGasjzypzInfoByRt(GasjzyfwpzFilter gf) {
return gasjzyfwDao.getGazyfwByResourceType(gf);
}
public List<Gasjzyfwpz> getGasjzypzInfoBySi(GasjzyfwpzFilter gf) {
return gasjzyfwDao.getGazyfwByServiceId(gf);
}
public List<Gasjzyfwpz> getGasjzyfwIdByRht(GasjzyfwpzFilter gf) {
return gasjzyfwDao.getGazyfwIdByResourceHighType( gf);
}
public List<Gasjzyfwpz> getGazyfwflByRTL(GasjzyfwpzFilter gf) {
return gasjzyfwDao.getGazyfwflByRTL(gf);
}
public List<Gasjzyfwpz> getBshInfoByCode(GasjzyfwpzFilter gf) {
return gasjzyfwDao.getBshInfoByCode(gf);
}
public List<Gasjzyfwpz> getGazyfwBySp(GasjzyfwpzFilter gf) {
// TODO Auto-generated method stub
return gasjzyfwDao.getGazyfwBySp(gf);
}
public List<Gasjzyfwpz> getRybhInfoByZjhm(GasjzyfwpzFilter gf) {
// TODO Auto-generated method stub
return gasjzyfwDao.getRybhInfoByZjhm(gf);
}
public List<Gasjzyfwpz> getRYHDPhoneInfoByRybh(GasjzyfwpzFilter gf) {
// TODO Auto-generated method stub
return gasjzyfwDao.getRYHDPhoneInfoByRybh(gf);
}
public List<Gasjzyfwpz> getWPJDCCphInfoByRybh(GasjzyfwpzFilter gf) {
// TODO Auto-generated method stub
return gasjzyfwDao.getWPJDCCphInfoByRybh(gf);
}
public List<Gasjzyfwpz> getGazyfwByAllTrails(GasjzyfwpzFilter gf) {
// TODO Auto-generated method stub
return gasjzyfwDao.getGazyfwByAllTrails(gf);
}
public List<Gasjzyfwpz> getGazyfwByTrailType(GasjzyfwpzFilter gf) {
// TODO Auto-generated method stub
return gasjzyfwDao.getGazyfwByTrailType(gf);
}
public List<Gasjzyfwpz> getGazyfwIdByCommonProperty(GasjzyfwpzFilter gf) {
// TODO Auto-generated method stub
return gasjzyfwDao.getGazyfwIdByCommonProperty(gf);
}
public List<Gasjzyfwpz> getGazyfwIdByResourceType(GasjzyfwpzFilter gf) {
// TODO Auto-generated method stub
return gasjzyfwDao.getGazyfwIdByResourceType(gf);
}
}
package com.cc.service;
import com.cc.controller.MenuController;
import com.cc.dao.EmployeeMapper;
import com.cc.dao.MenuDao;
import com.cc.model.SysDictitem;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class MenuService {
private static final Logger logger = LoggerFactory.getLogger(MenuService.class);
@Autowired
MenuDao menuDao;
/**
* 查询菜单
* @return
*/
public Map<String,Object> getMenus(Map map) {
Map<String, Object> Menumap = new HashMap<String, Object>();
List<SysDictitem> YjList=new ArrayList<>();
List<SysDictitem> RjList=new ArrayList<>();
List<SysDictitem> SjList=new ArrayList<>();
YjList=menuDao.selectYjList(map);
RjList=menuDao.selectRjList(map);
SjList=menuDao.selectSjList(map);
Menumap.put("YjList",YjList);
Menumap.put("RjList",RjList);
Menumap.put("SjList",SjList);
return Menumap;
}
}
package com.cc.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Objects;
import java.util.Properties;
/**
* Created by changc on 2017/9/13.
*/
public class propertiesUtil {
public static Properties propertiesUtil(String file){
Properties properties = new Properties();
InputStream inStream = propertiesUtil.class.getClassLoader().getResourceAsStream(file);
try {
properties.load(inStream);
} catch (IOException e) {
e.printStackTrace();
}
return properties;
}
public static String getConfig(String file,String key){
Properties pros = new Properties();
String value="";
try {
pros.load(new InputStreamReader(Object.class.getResourceAsStream(file),"UTF-8"));
value=pros.get(key).toString();
} catch (IOException e) {
e.printStackTrace();
}
return value;
}
}
package com.cc.utils;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.SolrDocumentList;
import org.apache.solr.common.util.NamedList;
import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.xml.ConfigurationParser;
import org.mybatis.generator.internal.DefaultShellCallback;
import java.io.File;
import java.io.IOException;
import java.util.*;
import static com.cc.utils.propertiesUtil.propertiesUtil;
/**
* solr查询接口
* solrUrl:solr实例服务地址
* solrCxtj:查询条件参数
* value:查询value
* @author changchao
*/
public class querySolr {
//查询solr方法
public static Map<String, Object> querySolr(String solrUrl,String solrCxtj,String solrGlzd,String value) throws IOException, SolrServerException {
Map<String, Object> solrmodel = new HashMap<String, Object>();
//获取solr配置参数
Properties properties=propertiesUtil("solr.properties");
//获取solr实例地址
String serverUrl=properties.getProperty(solrUrl);
//获取solr查询条件
String serverCxtj=properties.getProperty(solrCxtj);
//获取高亮字段
String serverGlzd=properties.getProperty(solrGlzd);
//处理查询条件
String cxtjs="";
String tj=value;
//复制域查询
if(serverCxtj.equals("keywords")){
cxtjs=serverCxtj+":"+value;
}else{
cxtjs= serverCxtj.replaceAll("#",tj);
}
HttpSolrClient client = new HttpSolrClient(serverUrl);
//创建查询对象---------------------------------
SolrQuery query = new SolrQuery();
//q 查询字符串,如果查询所有*:* keywords:*15* 模糊查询
query.set("q", cxtjs);
//fq 过滤条件,过滤是基于查询结果中的过滤
//query.set("fq", "id:0050");
//sort 排序,请注意,如果一个字段没有被索引,那么它是无法排序的
//query.set("sort", "product_price desc");
//start row 分页信息,与mysql的limit的两个参数一致效果
query.setStart(0);
query.setRows(10);
//fl 查询哪些结果出来,不写的话,就查询全部,所以我这里就不写了
// query.set("fl", "");
//df 默认搜索的域
//query.set("df", "product_keywords");
//======高亮设置=============================
//开启高亮
query.setHighlight(true);
//高亮域
if(serverGlzd!=""){
String [] data=serverGlzd.split(" ");
for(String glzd:data){
query.addHighlightField(glzd);
}
}
//前缀
query.setHighlightSimplePre("<span style='color:red'>");
//后缀
query.setHighlightSimplePost("</span>");
//执行搜索
QueryResponse queryResponse = client.query(query);
//搜索结果
SolrDocumentList results = queryResponse.getResults();
//查询出来的数量---------------------------------------
long numFound = results.getNumFound();
//获取数据---------------------------------------
//获取高亮信息---------------------------------------
Map<String, Map<String, List<String>>> highlighting = queryResponse.getHighlighting();
for (SolrDocument solrDocument : results) {
Map<String, List<String>> map = highlighting.get(solrDocument.get("id"));
for (String key:map.keySet()){
String value0=map.get(key).toString();
String value1=value0.replace("[","");
String glvalue=value1.replace("]","");
solrDocument.setField(key,glvalue);
}
//System.out.println("商品id:" + solrDocument.get("AJMC"));
}
//System.out.println("总查询出:" + numFound + "条记录");
solrmodel.put("solrObj",results);
client.close();
return solrmodel;
}
public static Map<String, Object> $(String solrUrl,String solrCxtj,String solrGlzd,String value) throws IOException, SolrServerException {
return querySolr( solrUrl, solrCxtj,solrGlzd,value);
}
}
package com.cc.utils;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.SolrDocumentList;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import static com.cc.utils.propertiesUtil.propertiesUtil;
/**
* solr查询接口
* solrUrl:solr实例服务地址
* solrCxtj:查询条件参数
* value:查询value
* @author changchao
*/
public class querySolrList {
//查询solr方法
public static Map<String,Object> querySolrNum(String [] solrlist,String value) throws IOException, SolrServerException {
Map<String, Object> solrmodel = new HashMap<String, Object>();
//获取solr配置参数
Properties properties=propertiesUtil("solr.properties");
String solrXx=properties.getProperty(solrlist[0]);
String [] solrdata=solrXx.split(",");
//获取solr实例地址
String serverUrl=solrdata[0];
//获取solr查询条件
String serverCxtj=solrdata[1];
//获取高亮字段
String serverGlzd=solrdata[2];
//处理查询条件
String cxtjs="";
String tj=value;
//复制域查询
if(serverCxtj.equals("keywords")){
cxtjs=serverCxtj+":"+value;
}else{
cxtjs= serverCxtj.replaceAll("#",tj);
}
HttpSolrClient client = new HttpSolrClient(serverUrl);
//创建查询对象---------------------------------
SolrQuery query = new SolrQuery();
//q 查询字符串,如果查询所有*:* keywords:*15* 模糊查询
query.set("q", cxtjs);
//执行搜索
QueryResponse queryResponse = client.query(query);
//搜索结果
SolrDocumentList results = queryResponse.getResults();
//查询出来的数量---------------------------------------
long numFound = results.getNumFound();
System.out.println(solrlist[1]+"查询出:"+ numFound + "条记录");
//有数据
if(numFound>0){
solrmodel.put("solrNum",numFound+"");//返回总条数
solrmodel.put("solrList",results);//返回资源数据
solrmodel.put("zysjTemplet",solrlist[0]);//返回资源模板
solrmodel.put("zysjTitle",solrlist[1]);//返回资源名称
solrmodel.put("zysjId",solrdata[4]);//返回资源ID
}else{
solrmodel.put("solrNum","0");
}
client.close();
return solrmodel;
}
public static Map<String,Object> $list(String [] solrlist,String value) throws IOException, SolrServerException {
return querySolrNum(solrlist,value);
}
}
package com.cc.utils;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.response.IntervalFacet;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.SolrDocumentList;
import java.io.IOException;
import java.util.*;
import static com.cc.utils.propertiesUtil.propertiesUtil;
/**
* solr查询接口
* solrUrl:solr实例服务地址
* solrCxtj:查询条件参数
* value:查询value
* @author changchao
*/
public class querySolrdata {
//查询solr方法
public static Map<String, Object> querySolrdata(String solr,String value,int num,String sort) throws IOException, SolrServerException {
Map<String, Object> solrmodel = new HashMap<String, Object>();
List<String> solrtemple=new ArrayList<>();
//Map<String, Object> solrtemple = new HashMap<String, Object>();
//获取solr配置参数
Properties properties=propertiesUtil("solr.properties");
String solrXx=properties.getProperty(solr);
String [] solrdata=solrXx.split(",");
String solr_table=solr+"_table";//hcdpxx_table
String solrTable=properties.getProperty(solr_table);
String [] solrtabledatas=solrTable.split(",");
for(String solrtables:solrtabledatas){
//String [] solrtdate=solrtables.split(":");
//solrtemple.put(solrtdate[0],solrtdate[1]);
solrtemple.add(solrtables);
}
//获取solr实例地址
String serverUrl=solrdata[0];
//获取solr查询条件
String serverCxtj=solrdata[1];
//获取高亮字段
String serverGlzd=solrdata[2];
//获取查询时间条件
String serverSjtj=solrdata[3];
//处理查询条件
String cxtjs="";
String tj=value;
//复制域查询
if(serverCxtj.equals("keywords")){
cxtjs=serverCxtj+":"+value;
}else{
cxtjs= serverCxtj.replaceAll("#",tj);
}
HttpSolrClient client = new HttpSolrClient(serverUrl);
//创建查询对象---------------------------------
SolrQuery query = new SolrQuery();
//q 查询字符串,如果查询所有*:* keywords:*15* 模糊查询
query.set("q", cxtjs);
//fq 过滤条件,过滤是基于查询结果中的过滤
//query.set("fq", "id:0050");
//sort 排序,请注意,如果一个字段没有被索引,那么它是无法排序的
if(sort.equals("sj")){
query.set("sort", serverSjtj);//时间查询排序
}else{
query.set("sort", sort);//相关度排序
}
//start row 分页信息,与mysql的limit的两个参数一致效果
//当前页码
int rowstart=0;
if(num==1){
rowstart=num-1;//当前首页页
}else{
rowstart=(num-1)*10;
}
query.setStart(rowstart);
query.setRows(10);
PageHelper.startPage(rowstart,10);
//fl 查询哪些结果出来,不写的话,就查询全部,所以我这里就不写了
// query.set("fl", "");
//df 默认搜索的域
//query.set("df", "product_keywords");
//======高亮设置=============================
//开启高亮
query.setHighlight(true);
//高亮域
if(serverGlzd!=""){
//String [] data=serverGlzd.split(" ");
String gldata=serverGlzd.replace(" ",",");
/* for(String glzd:data){
query.addHighlightField(glzd);
}*/
query.addHighlightField(gldata);
}
//前缀
query.setHighlightSimplePre("<span style='color:red'>");
//后缀
query.setHighlightSimplePost("</span>");
//执行搜索
QueryResponse queryResponse = client.query(query);
//搜索结果
SolrDocumentList results = queryResponse.getResults();
//查询出来的数量---------------------------------------
long numFound = results.getNumFound();
long fyNum=(numFound+query.getRows()-1)/query.getRows();
PageInfo page=new PageInfo(results,5);
page.setPageNum(num);
//总页数
page.setPages((int)fyNum);
//总条数
page.setTotal((int)numFound);
//分页数量----
//如果大于5页---作处理
int ysdata[]=new int [(int)fyNum];
//分页数小于5
for (int i=0;i<(int)fyNum;i++){
ysdata[i]=i+1;
}
/* if((int)fyNum<=10){
for (int i=0;i<(int)fyNum;i++){
ysdata[i]=i+1;
}
}*/
/*//分页数大于5
else{
for (int i=0;i<5;i++){
ysdata[i]=i+1;
}
}*/
//分页数量
page.setNavigatepageNums(ysdata);
//获取数据---------------------------------------
//获取高亮信息---------------------------------------
Map<String, Map<String, List<String>>> highlighting = queryResponse.getHighlighting();
for (SolrDocument solrDocument : results) {
Map<String, List<String>> map = highlighting.get(solrDocument.get("ID"));
for (String key:map.keySet()){
String value0=map.get(key).toString();
String value1=value0.replace("[","");
String glvalue=value1.replace("]","");
solrDocument.setField(key,glvalue);
}
//System.out.println("商品id:" + solrDocument.get("AJMC"));
}
System.out.println("返回数据:" + numFound + "条记录");
solrmodel.put("solrObj",results);
solrmodel.put("solrFyObj",page);//返回总分页数据
solrmodel.put("solrtbale",solrtemple);//返回模板
client.close();
return solrmodel;
}
public static Map<String, Object> $data(String solr, String value, int num, String sort) throws IOException, SolrServerException {
return querySolrdata( solr,value,num,sort);
}
}
#全文检索路径
#INDEX_PATH=D\:/Lucene/index
INDEX_PATH=D\:/data/xzxt
INTERVERVAL_TIME=10
#searchURL=http://10.172.20.14:8080/EzSearchService
searchURL=http://172.25.16.106:9080/EzSearchService0828
##\u5168\u6587\u641C\u7D22\u5EFA\u7ACB\u4E86\u7D22\u5F15\u6570\u636E\u7684\u8868(\u591A\u4E2A\u4EE5\u9017\u53F7\u5206\u9694)
#以下配置信息是联动服务jar包里的配置文件,由于调试联动服务里的配置文件和此文件同名,获取报错,所以合并到一起
#\u8bbf\u95eePiee\u8bf7\u6c42\u7684\u4e0a\u4e0b\u6587\u8def\u5f84
task_handler.path=/piee/task.handler
#\u8bbf\u95eePiee\u7ed3\u679c\u7684\u4e0a\u4e0b\u6587\u8def\u5f84
data_receiver.path=/piee/data.receiver
#push path
push.path=/piee/push.receiver
#\u914d\u7f6e\u7f13\u5b58\u6570\u636e\u662f\u5b58\u5728PCI\u7684\u8fd8\u662f\u9002\u914d\u5668,1\u8868\u5b58\u5728PCI\uff0c2\u8868\u5b58\u5728\u9002\u914d\u5668
adress=1
#\u914d\u7f6e\u7f13\u5b58\u7b56\u7565,1\u8868\u5b58\u5728\u5d4c\u5165\u5f0f\u6570\u636e\u5e93\uff0c2\u8868\u5b58\u5728\u6587\u4ef6\uff0c3\u8868\u5b58\u5728ehcache
strategy=2
#\u9002\u914d\u5668\u7f13\u5b58\u5b9e\u73b0\u7684\u7c7b\u540d\uff0c\u7528\u4e8epci\u53cd\u5c04\u521b\u5efa\u7c7b\u6765\u5b58\u50a8\u7ed3\u679c\u7528
className=com.dragonsoft.adapter.cache.impl.DataBaseCache
#\u8bf7\u6c42\u65b9\u96c6\u7fa4\u5e8f\u53f7,\u65e0\u96c6\u7fa4\u4e3a0,\u6709\u96c6\u7fa4\u5219\u4e3a1-9
racNum=0
#\u62a5\u6587\u5927\u5c0f\u4e0a\u9650,\u5355\u4f4d(k)
reportSize=2
#\u63a8\u9001\u670d\u52a1\u5668\u7ebf\u7a0b\u6c60\u914d\u7f6e\u4fe1\u606f\uff0c\u6309\u7167\u538b\u529b\u60c5\u51b5\u914d\u7f6e
threadSize=20
##\u6570\u636E\u6E90
driver=oracle.jdbc.OracleDriver
#url=jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.25.2.237)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 10.25.2.239)(PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = zhdb) ) )
#url=jdbc:oracle:thin:@172.18.69.37:1521/cat22db
#url=jdbc:oracle:thin:@10.172.20.18:1521:orcl1
url=jdbc:oracle:thin:@172.25.16.105:1521:orcl
dbuser=EZSPATIAL
dbpwd=EZSPATIAL
serverSchema=EZGIS
serverHandler=2
serverPort=8080
serverNode=1
serverFileDir=D:/pci_file_dir
#\u6587\u4ef6\u8fc7\u671f\u65f6\u95f4(\u5206\u949f)
serverFileExpired=60
#\u8fde\u63a5\u8d85\u65f6\u65f6\u95f4
connectTimeout=30000
#\u8bfb\u53d6\u6570\u636e\u8d85\u65f6\u65f6\u95f4
readTimeout=30000
#所属单位
ssdw=150000000000
#默认首页进三员或者工作桌面 1、三员 2、工作桌面
indexFlag=2
#关系挖掘服务url
gxwjUrl=http\://10.100.37.228\:8111/EzRelationSparkSeeInterface/RelationQuery
#巨龙单点登录秘钥
JlJmkey=8b67946e
#山西刑事技术平台比中详情页面
xsjsAddress=http://10.94.65.15:8081/xjpt/pages/business/sys/viewEntity.action?functionType=20&tableName
#\u5185\u8499
jdbc.driverClass=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@10.100.17.120:1521:XZXT
jdbc.user=XZXT
jdbc.password=XZXT
\ No newline at end of file
#---- global logging configuration
#---- level: FATAL,ERROR,WARN,INFO,DEBUG
#---- appender: console, file, mail
### set log levels ###
log4j.rootLogger = DEBUG,console
### 输出到控制台 ###
log4j.appender.console = org.apache.log4j.ConsoleAppender
log4j.appender.console.Target = System.out
log4j.appender.console.layout = org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern = %d{ABSOLUTE} %5p %c{1}:%L - %m%n
### 输出到日志文件 ###
log4j.appender.file = org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.File = ${uplat.root}/WEB-INF/logs/platform.log
log4j.appender.file.DatePattern=_yyyyMMdd'.log'
#log4j.appender.file.Append = true
#log4j.appender.file.Threshold = INFO
log4j.appender.file.layout = org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern =%-d{yyyy-MM-dd HH\:mm\:ss} [ %t\:%r ] - [ %p ] %m%n
### 打印SQL ###
#log4j.logger.com.ibatis=DEBUG
#log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG
#log4j.logger.com.ibatis.common.jdbc.ScriptRunner=DEBUG
#log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=DEBUG
log4j.logger.java.sql.Connection=DEBUG
log4j.logger.java.sql.Statement=DEBUG
log4j.logger.java.sql.PreparedStatement=DEBUG
#log4j.logger.java.sql.ResultSet=DEBUG
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cc.dao.DepartmentMapper">
<resultMap id="BaseResultMap" type="com.cc.model.Department">
<id column="dept_id" jdbcType="INTEGER" property="deptId" />
<result column="dept_name" jdbcType="VARCHAR" property="deptName" />
</resultMap>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cc.dao.EmployeeMapper">
<resultMap id="BaseResultMap" type="com.cc.model.Employee">
<id column="emp_id" jdbcType="INTEGER" property="empId" />
<result column="emp_name" jdbcType="VARCHAR" property="empName" />
<result column="gender" jdbcType="CHAR" property="gender" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="d_id" jdbcType="INTEGER" property="dId" />
</resultMap>
<resultMap type="com.cc.model.Employee" id="WithDeptResultMap">
<id column="emp_id" jdbcType="INTEGER" property="empId" />
<result column="emp_name" jdbcType="VARCHAR" property="empName" />
<result column="gender" jdbcType="CHAR" property="gender" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="d_id" jdbcType="INTEGER" property="dId" />
<!-- 指定联合查询出的部门字段的封装 -->
<association property="department" javaType="com.cc.model.Department">
<id column="dept_id" property="deptId"/>
<result column="dept_name" property="deptName"/>
</association>
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
emp_id, emp_name, gender, email, d_id
</sql>
<sql id="WithDept_Column_List">
e.emp_id, e.emp_name, e.gender, e.email, e.d_id,d.dept_id,d.dept_name
</sql>
<!-- List<Employee> selectByExampleWithDept(EmployeeExample example);
Employee selectByPrimaryKeyWithDept(Integer empId);
-->
<!-- 查询员工同时带部门信息 -->
<select id="selectByExampleWithDept" resultMap="WithDeptResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="WithDept_Column_List" />
FROM tbl_emp e
left join tbl_dept d on e.`d_id`=d.`dept_id`
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKeyWithDept" resultMap="WithDeptResultMap">
select
<include refid="WithDept_Column_List" />
FROM tbl_emp e
left join tbl_dept d on e.`d_id`=d.`dept_id`
where emp_id = #{empId,jdbcType=INTEGER}
</select>
<!-- 查询员工不带部门信息的 -->
<select id="selectByExample" parameterType="com.cc.model.EmployeeExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from tbl_emp
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tbl_emp
where emp_id = #{empId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tbl_emp
where emp_id = #{empId,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.cc.model.EmployeeExample">
delete from tbl_emp
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.cc.model.Employee">
insert into tbl_emp (emp_id, emp_name, gender,
email, d_id)
values (#{empId,jdbcType=INTEGER}, #{empName,jdbcType=VARCHAR}, #{gender,jdbcType=CHAR},
#{email,jdbcType=VARCHAR}, #{dId,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.cc.model.Employee">
insert into tbl_emp
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="empId != null">
emp_id,
</if>
<if test="empName != null">
emp_name,
</if>
<if test="gender != null">
gender,
</if>
<if test="email != null">
email,
</if>
<if test="dId != null">
d_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="empId != null">
#{empId,jdbcType=INTEGER},
</if>
<if test="empName != null">
#{empName,jdbcType=VARCHAR},
</if>
<if test="gender != null">
#{gender,jdbcType=CHAR},
</if>
<if test="email != null">
#{email,jdbcType=VARCHAR},
</if>
<if test="dId != null">
#{dId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.cc.model.EmployeeExample" resultType="java.lang.Long">
select count(*) from tbl_emp
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update tbl_emp
<set>
<if test="record.empId != null">
emp_id = #{record.empId,jdbcType=INTEGER},
</if>
<if test="record.empName != null">
emp_name = #{record.empName,jdbcType=VARCHAR},
</if>
<if test="record.gender != null">
gender = #{record.gender,jdbcType=CHAR},
</if>
<if test="record.email != null">
email = #{record.email,jdbcType=VARCHAR},
</if>
<if test="record.dId != null">
d_id = #{record.dId,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update tbl_emp
set emp_id = #{record.empId,jdbcType=INTEGER},
emp_name = #{record.empName,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=CHAR},
email = #{record.email,jdbcType=VARCHAR},
d_id = #{record.dId,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.cc.model.Employee">
update tbl_emp
<set>
<if test="empName != null">
emp_name = #{empName,jdbcType=VARCHAR},
</if>
<if test="gender != null">
gender = #{gender,jdbcType=CHAR},
</if>
<if test="email != null">
email = #{email,jdbcType=VARCHAR},
</if>
<if test="dId != null">
d_id = #{dId,jdbcType=INTEGER},
</if>
</set>
where emp_id = #{empId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.cc.model.Employee">
update tbl_emp
set emp_name = #{empName,jdbcType=VARCHAR},
gender = #{gender,jdbcType=CHAR},
email = #{email,jdbcType=VARCHAR},
d_id = #{dId,jdbcType=INTEGER}
where emp_id = #{empId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cc.dao.MenuDao">
<!-- 获取菜单-->
<select id="selectYjList" resultType="com.cc.model.SysDictitem" parameterType="java.util.Map">
select * from SYS_DICTITEM s
WHERE GROUPID='SOLR_ZYLX'
<if test="levelid != null">
AND levelid LIKE '%'||#{levelid}||'%'
</if>
AND length(code)=2
</select>
<!-- 获取菜单-->
<select id="selectRjList" resultType="com.cc.model.SysDictitem" parameterType="java.util.Map">
select * from SYS_DICTITEM s
WHERE GROUPID='SOLR_ZYLX'
<if test="levelid != null">
AND levelid LIKE '%'||#{levelid}||'%'
</if>
AND length(code)=4
</select>
<!-- 获取菜单-->
<select id="selectSjList" resultType="com.cc.model.SysDictitem" parameterType="java.util.Map">
select * from SYS_DICTITEM s
WHERE GROUPID='SOLR_ZYLX'
<if test="levelid != null">
AND levelid LIKE '%'||#{levelid}||'%'
</if>
AND length(code)=6
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cc.dao.GasjzyfwDao">
<resultMap id="gasjzyfwpz" type="com.cc.model.Gasjzyfwpz">
<id column="SERVICEID" property="serviceId" jdbcType="VARCHAR" />
<result column="SERVICEURL" property="idType" jdbcType="VARCHAR"/>
<result column="IDTYPE" property="idType" jdbcType="VARCHAR"/>
<result column="SERVICEPROVINCE" property="serviceProvince" jdbcType="VARCHAR"/>
<result column="SERVICEINPUTPARAM" property="serviceInputParam" jdbcType="VARCHAR"/>
<result column="RESOURCETYPE" property="resourceType" jdbcType="VARCHAR"/>
<result column="OUTPUTFORMATTRANSXML" property="outputFormatTransXml" jdbcType="VARCHAR"/>
<result column="INPUTFORMATTRANSXML" property="inputFormatTransXml" jdbcType="VARCHAR"/>
<result column="SERVICENAME" property="serviceName" jdbcType="VARCHAR"/>
<result column="TIMEANALYSISFIELD" property="timeAnalysisField" jdbcType="VARCHAR"/>
<result column="REGIONANALYSISFIELD" property="regionAnalysisField" jdbcType="VARCHAR"/>
<result column="TRAILNODENAMEFIELD" property="trailNodeNameField" jdbcType="VARCHAR"/>
<result column="TRAILNODEIDFIELD" property="trailNodeIdField" jdbcType="VARCHAR"/>
<result column="TRAILTYPE" property="trailType" jdbcType="VARCHAR"/>
<result column="RESOURCEDISPLAYTYPE" property="resourceDisplayType" jdbcType="VARCHAR"/>
<result column="TSKSJQUERYCONDITION" property="tsksjQueryCondition" jdbcType="VARCHAR"/>
<result column="TSKDYQUERYCONDITION" property="tskdyQueryCondition" jdbcType="VARCHAR"/>
<result column="COMMONPROPERTIES" property="commonProperties" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
SERVICEID,
SERVICEURL,
IDTYPE,
SERVICEPROVINCE,
SERVICEINPUTPARAM,
RESOURCETYPE,
OUTPUTFORMATTRANSXML,
OUTPUTCONTENTNAME,
INPUTFORMATTRANSXML,
SERVICENAME,
TIMEANALYSISFIELD,
REGIONANALYSISFIELD,
TRAILNODENAMEFIELD,
TRAILNODEIDFIELD,
TRAILTYPE,
RESOURCEDISPLAYTYPE,
TSKSJQUERYCONDITION,
TSKDYQUERYCONDITION,
COMMONPROPERTIES
</sql>
<!-- 根据省份查询公安资源服务信息 -->
<select id="getAllDrsconfig" resultMap="gasjzyfwpz" parameterType="java.util.Map">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where SERVICEPROVINCE=#{serviceProvince ,jdbcType=VARCHAR }
and QUERYTYPE=#{querytype ,jdbcType=VARCHAR } order by RESOURCETYPE
</select>
<!-- 根据省份查询公安资源服务信息 -->
<select id="getGazyfwBySp" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where SERVICEPROVINCE=#{serviceProvince ,jdbcType=VARCHAR }
</select>
<!-- 根据标识号查询公安资源服务信息 -->
<select id="getGazyfwById" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG
where SERVICEPROVINCE like #{serviceProvince ,jdbcType=VARCHAR }||'%' and IDTYPE like #{idType ,jdbcType=VARCHAR }||'%'
</select>
<!-- 根据资源类别查询公安资源服务信息 -->
<select id="getGazyfwByResourceType" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where RESOURCETYPE=#{resourceType ,jdbcType=VARCHAR }
</select>
<!-- 根据服务id查询公安资源服务信息 -->
<select id="getGazyfwByServiceId" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where SERVICEID=#{serviceId ,jdbcType=VARCHAR }
</select>
<!-- 根据所有轨迹查询公安资源服务信息 -->
<select id="getGazyfwByAllTrails" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where SERVICEPROVINCE=#{serviceProvince ,jdbcType=VARCHAR } and length(#{trailType ,jdbcType=VARCHAR })>0
</select>
<!-- 根据轨迹类型查询公安资源服务信息 -->
<select id="getGazyfwByTrailType" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where SERVICEPROVINCE=#{serviceProvince ,jdbcType=VARCHAR } and TRAILTYPE in #{trailType ,jdbcType=VARCHAR }
</select>
<!-- 根据资源父类别查询公安资源服务ID -->
<select id="getGazyfwIdByResourceHighType" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where
SERVICEPROVINCE like #{serviceProvince ,jdbcType=VARCHAR }||'%' and RESOURCEHIGHTYPE like #{resourceHighType ,jdbcType=VARCHAR }||'%'
</select>
<!-- 根据资源共同属性查询公安资源服务ID -->
<select id="getGazyfwIdByCommonProperty" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where
SERVICEPROVINCE like #{serviceProvince ,jdbcType=VARCHAR }||'%' and COMMONPROPERTIES like #{commonProperties ,jdbcType=VARCHAR }||'%'
</select>
<!-- 根据公安数据资源类别查询公安资源服务ID -->
<select id="getGazyfwIdByResourceType" resultMap="gasjzyfwpz" parameterType="com.cc.model.Gasjzyfwpz">
select
<include refid="Base_Column_List"/>
from TB_DRS_CONFIG where RESOURCETYPE = #{resourceType ,jdbcType=VARCHAR }
</select>
<!-- 根据资源类别级别查询公安资源父类别 -->
<select id="getGazyfwflByRTL" resultMap="gasjzyfwpz" parameterType="java.lang.String">
select RESOURCETYPE as resourceType,
RESOURCENAME as resourceName
from GASJZYLB where RESOURCEHIGHTYPE = #{resourceHighType ,jdbcType=VARCHAR }
</select>
<!-- 根据代码查询标识号信息 -->
<select id="getBshInfoByCode" resultMap="gasjzyfwpz" parameterType="java.lang.String">
select NAME as bshName
from CXGASJZYBSHLB where CODE= #{bshCode ,jdbcType=VARCHAR }
</select>
<!-- 根据证件号码查询人员编号信息 -->
<select id="getRybhInfoByZjhm" resultMap="gasjzyfwpz" parameterType="java.lang.String">
select asjxgrybh as rybh
from TB_ST_RY where CYZJ_ZJHM= #{zjhm ,jdbcType=VARCHAR }
</select>
<!-- 根据人员编号查询人员话单电话号码信息 -->
<select id="getRYHDPhoneInfoByRybh" resultMap="gasjzyfwpz" parameterType="java.lang.String">
select DF_LXDM as phoneNumber
from TB_RY_HD where RYBH in (#{rybh ,jdbcType=VARCHAR })
</select>
<!-- 根据人员编号查询物品机动车车牌号信息 -->
<select id="getWPJDCCphInfoByRybh" resultMap="gasjzyfwpz" parameterType="java.util.Map">
select JDCHPHM as cph
from TB_ST_WP_JDC twj,TB_GL_RY_WP tgrw where tgrw.ASJXGRYBH in (#{rybh ,jdbcType=VARCHAR }) and twj.SAWPBH=tgrw.SAWPBH
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd" >
<configuration>
<!-- <settings>
&lt;!&ndash; 配置全局性 cache 的 ( 开 / 关) default:true &ndash;&gt;
<setting name="cacheEnabled" value="true"/>
&lt;!&ndash; 设置驱动等待数据响应的超时数 默认没有设置&ndash;&gt;
<setting name="defaultStatementTimeout" value="25000"/>
&lt;!&ndash; [是否 启用 数据中 A_column 自动映射 到 java类中驼峰命名的属性 default:fasle] &ndash;&gt;
<setting name="mapUnderscoreToCamelCase" value="false"/>
<setting name="proxyFactory" value="CGLIB"/>
<setting name="lazyLoadingEnabled" value="true"/>
</settings>
<plugins>
<plugin interceptor="com.github.pagehelper.PageHelper">
<property name="dialect" value="mysql"/>
&lt;!&ndash;该参数默认为flase&ndash;&gt;
&lt;!&ndash;设置为ture时,会将RowBounds第一个参数offset当成pageNum页面使用&ndash;&gt;
&lt;!&ndash;和startPage中的pageNum效果一样&ndash;&gt;
<property name="offsetAsPageNum" value="true"/>
&lt;!&ndash;该参数默认为flas&ndash;&gt;
&lt;!&ndash;设置为true时,使用RowBounds分页进行count查询&ndash;&gt;
<property name="rowBoundsWithCount" value="true"/>
&lt;!&ndash;设置为true时,如果pageSize=0或者RowBounds.limit=0就会查询出全部的结果&ndash;&gt;
&lt;!&ndash;(相当于没有执行分页查询,但是返回结果仍然是Page类型)&ndash;&gt;
<property name="pageSizeZero" value="true"/>
</plugin>
</plugins>-->
<settings>
<setting name="mapUnderscoreToCamelCase" value="true"/>
</settings>
<typeAliases>
<package name="com.cc.model"/>
</typeAliases>
<plugins>
<plugin interceptor="com.github.pagehelper.PageHelper">
<!--分页参数合理化 -->
<property name="reasonable" value="true"/>
</plugin>
</plugins>
</configuration>
#-------------------\u53C2\u8003\u914D\u7F6E--------------------------------
#solr\u5B9E\u4F8B\u670D\u52A1\u5730\u5740
solrZyUrl=http://10.100.17.119:9041/solr/core1
#solr\u5B9E\u4F8B\u67E5\u8BE2\u6761\u4EF6\u53C2\u6570 #:\u4EE3\u8868\u4F20\u5165\u7684value\u503C or\u662F\u67E5\u8BE2\u7684\u5173\u7CFB(\u6CE8\u610For\u524D\u540E\u5FC5\u987B\u6709\u7A7A\u683C)
#1.solr\u7D22\u5F15\u5E93\u4E2D\u5EFA\u7ACBcopyField\u5B57\u6BB5\uFF0C\u6211\u4EEC\u76F4\u63A5\u91C7\u7528keywords
#2.\u4E0D\u6784\u5EFAcopyField\u5B57\u6BB5\uFF08\u9009\u62E9\u67E5\u8BE2\u591A\u4E2A\u5B57\u6BB5\uFF09 ----\u4E66\u5199\u683C\u5F0F\uFF1Aid:# or FLWS_BT:#
solrZyCxtj=keywords
#\u9AD8\u4EAE\u5B57\u6BB5
solrZyGlzd=AJMC SY_JYQK
#----------------------\u8D44\u6E90\u6570\u636E-------------------------------------
#\u8D44\u6E90\u6570\u636Elist
#zylist=hcdpxx:\u706B\u8F66\u767B\u8BB0\u4FE1\u606F,lkdjxx:\u65C5\u5BA2\u767B\u8BB0\u4FE1\u606F,mhlkxx:\u6C11\u822A\u65C5\u5BA2\u4FE1\u606F,swryxx:\u4E0A\u7F51\u4EBA\u5458\u4FE1\u606F
zylist=hcdpxx\:\u706B\u8F66\u767B\u8BB0\u4FE1\u606F,lkdjxx\:\u65C5\u5BA2\u767B\u8BB0\u4FE1\u606F
#,mhlkxx\:\u6C11\u822A\u65C5\u5BA2\u4FE1\u606F,swryxx\:\u4E0A\u7F51\u4EBA\u5458\u4FE1\u606F
#-----------------------------------------------------------
#ESB\u56DE\u6389\u8DEF\u5F84
basePath=http://10.100.17.122/
#----------------------\u8D44\u6E90\u6570\u636E\u5730\u5740-------------------------------------
#\u6848\u4EF6\u57FA\u672C\u4FE1\u606F
tbstasj=http://10.100.17.119:9041/solr/core1,keywords,AJMC SY_JYQK
#\u706B\u8F66\u767B\u8BB0\u4FE1\u606F
hcdpxx=http://10.100.17.119:9041/solr/hcdpxx,keywords,XM ZJHM,CCRQ desc,010203
hcdpxx_table=\u59D3\u540D:XM,\u6027\u522B:XB,\u8BC1\u4EF6\u53F7\u7801:ZJHM,\u4E58\u8F66\u65F6\u95F4:CCRQ,\u4E58\u8F66\u65E5\u671F:CCSJ,\u7968\u53F7:PH,\u8F66\u6B21:CC,\u53D1\u7AD9:FZ,\u5230\u7AD9:DZ,\u8F66\u53A2\u53F7:CXH,\u5EA7\u4F4D\u53F7:ZWH,\u552E\u7968\u5904:SPC,\u7A97\u53E3:CK,\u552E\u7968\u65F6\u95F4:SPSJ
#\u65C5\u5BA2\u767B\u8BB0\u4FE1\u606F
lkdjxx=http://10.100.17.119:9041/solr/lkdjxx,keywords,XM ZJHM,RZSJ desc,010202
lkdjxx_table=\u59D3\u540D:XM,\u6027\u522B:XB,\u6C11\u65CF:MZ,\u51FA\u751F\u65E5\u671F:CSRQ,\u8BC1\u4EF6\u7C7B\u578B:ZJLX,\u8BC1\u4EF6\u53F7\u7801:ZJHM,\u8BC1\u4EF6\u8BE6\u5740:XZ,\
\u5165\u4F4F\u65F6\u95F4:RZSJ,\u9000\u623F\u65F6\u95F4:TFSJ,\u65C5\u9986\u7F16\u7801:LGBM,\u65C5\u9986\u540D\u79F0:LGMC,\u65C5\u9986\u5730\u5740:LGDZ,\u65C5\u9986\u5730\u5740\u533A\u5212:LGDZQH,\u673A\u6784\u540D\u79F0:JGMC,\
\u65C5\u9986\u5730\u5740\u533A\u5212\u4EE3\u7801:LGDZQHDM,\u5165\u4F4F\u623F\u53F7:RZFH
#\u6C11\u822A\u65C5\u5BA2\u4FE1\u606F
mhlkxx=http://10.100.17.119:9041/solr/mhlkxx,keywords,XM ZJHM,CFRQ desc
#\u4E0A\u7F51\u4EBA\u5458\u4FE1\u606F
swryxx=http://10.100.17.119:9041/solr/swryxx,keywords,SWRYXM ZJHM,SWSJ desc
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
<!--Spring扫描包,除了controller-->
<context:component-scan base-package="com.cc.service"></context:component-scan>
<context:property-placeholder location="classpath:jdbcconfig.properties" />
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="${jdbc.driverClass}"></property>
<property name="jdbcUrl" value="${jdbc.url}"></property>
<property name="user" value="${jdbc.user}"></property>
<property name="password" value="${jdbc.password}"></property>
<property name="minPoolSize" value="1"></property>
<property name="maxPoolSize" value="100"></property>
<property name="initialPoolSize" value="10"></property>
<property name="acquireIncrement" value="1"></property>
</bean>
<!--================== 配置和MyBatis的整合=============== -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<!-- 指定mybatis全局配置文件的位置 -->
<property name="configLocation" value="classpath:mybatis-config.xml"></property>
<property name="dataSource" ref="dataSource"></property>
<!-- 指定mybatis,mapper文件的位置 -->
<property name="mapperLocations" value="classpath:mapper/*.xml"></property>
</bean>
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.cc.dao"></property>
</bean>
<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
<constructor-arg name="sqlSessionFactory" ref="sqlSessionFactory"></constructor-arg>
<constructor-arg name="executorType" value="BATCH"></constructor-arg>
</bean>
<!-- ===============事务控制的配置 ================-->
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<!--控制住数据源 -->
<property name="dataSource" ref="dataSource"></property>
</bean>
<aop:config>
<!-- 切入点表达式 -->
<aop:pointcut expression="execution(* com.cc.service..*(..))" id="txPoint"/>
<!-- 配置事务增强 -->
<aop:advisor advice-ref="txAdvice" pointcut-ref="txPoint"/>
</aop:config>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="*"/>
<tx:method name="get*" read-only="true"/>
</tx:attributes>
</tx:advice>
</beans>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<context:component-scan base-package="com.cc.controller"></context:component-scan>
<!--配置视图解析器,方便页面返回-->
<!-- 对转向页面的路径解析。prefix:前缀, suffix:后缀 -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="redirectContextRelative" value="true"></property>
<property name="prefix" value="/WEB-INF/views/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
<mvc:default-servlet-handler/>
<mvc:annotation-driven/>
</beans>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.1"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<display-name>Archetype Created Web Application</display-name>
<!--1.启动spring的容器-->
<listener>
<description>启动spring容器</description>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-context.xml</param-value>
</context-param>
<!--2.springmvc的前端控制器,拦截所有请求-->
<servlet>
<description>spring-mvc的前段控制器</description>
<servlet-name>spring-mvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-mvc.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spring-mvc</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- 3、字符编码过滤器,一定要放在所有过滤器之前 -->
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceRequestEncoding</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>forceResponseEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--4.使用Rest风格的url,将页面普通的post请求转为制定的delete或者put请求-->
<filter>
<filter-name>HiddenHttpMethodFilter</filter-name>
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>HiddenHttpMethodFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>HttpPutFormContentFilter</filter-name>
<filter-class>org.springframework.web.filter.HttpPutFormContentFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>HttpPutFormContentFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--ESB服务servlet -->
<servlet>
<servlet-name>SearchThread</servlet-name>
<servlet-class>com.cc.qjtc.SearchThread</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SearchThread</servlet-name>
<url-pattern>/SearchThread</url-pattern>
</servlet-mapping>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:log4j.properties</param-value>
</context-param>
<!-- 60s 检测日志配置 文件变化 -->
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>60000</param-value>
</context-param>
<!-- 配置Log4j监听器 -->
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
</web-app>
<!--pageEncoding是jsp文件本身的编码-->
<!-- contentType的charset是指服务器发送给客户端时的内容编码-->
<%@ page pageEncoding="utf-8" %>
<%
application.setAttribute("APP_PATH", request.getContextPath());
String time =request.getParameter("time");
String clientIp =request.getParameter("clientIp");
String username =request.getParameter("username");
String useridcard =request.getParameter("useridcard");
String unitcode = request.getParameter("unitcode");
String shuiying=time+" "+clientIp+" "+username;
String ssdw =request.getParameter("ssdw");
request.getSession().setAttribute("shuiying",shuiying);
request.getSession().setAttribute("username",username);
request.getSession().setAttribute("useridcard",useridcard);
request.getSession().setAttribute("unitcode",unitcode);
%>
<!--转发-->
<%--<jsp:forward page="/emps"></jsp:forward>--%>
<html>
<head>
<meta charset="utf-8">
<title>全景通查</title>
<style>
body {
background: #ccc;
}
</style>
<link rel="stylesheet" href="static/bootstrap/css/base.css"/>
<link rel="stylesheet" href="static/bootstrap/css/font-awesome.min.css"/>
<link rel="stylesheet" href="static/bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" href="static/bootstrap/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" href="static/bootstrap/css/znjs_serach.css"/>
<link rel="stylesheet" href="static/bootstrap/css/zcdh.css"/>
</head>
<body style="height:100%; width:100%; overflow:hidden;" onResize="Resize()" onLoad="Resize()">
<img src="static/images/qjtcbj.png" alt="" class="bjt"/>
<script>
/* if (self == top) {
watermark.getWaterMark('2017-09-15 11:28:22 10.100.37.93 ADMIN');
window.onscroll = function () {
watermark.getWaterMark('2017-09-15 11:28:22 10.100.37.93 ADMIN');
}
}*/
</script>
<div class="mask_div">
</div>
<div class="top">
<h1></h1>
</div>
<ul class="ssnr">
<li class="ss_wrap">
<div class="ssbf">
<div class="search">
<p><input type="text" placeholder="请输入检索内容..." class="serach" ></p>
<a href="#" onclick="supersearch()" class="ssan"></a>
</div>
<%--<a href="#" class="lsjl">历史记录</a>--%>
</div>
</li>
</ul>
<!--注意css,js文件引入的先后顺序,应该先引入jquery的js文件再引入bootstrap的css文件-->
<!--引入jquery-->
<script type="text/javascript" src="static/js/jquery-1.12.4.min.js"></script>
<!--引入bootstrap js文件-->
<script src="static/bootstrap/js/bootstrap.min.js"></script>
<script src="static/js/znjs.js"></script>
<!--引入工具文件-->
<script src="static/js/util.js"></script>
<!--引入模板文件-->
<script type="text/javascript" src="static/js/templet.js"></script>
</body>
</html>
<script type="text/javascript">
$(function () {
var shuiying = '<%=shuiying%>';
//加载水印模板
shuiyingtemplet(shuiying);
});
//跳转超级搜索页面
function supersearch() {
var value = $(".serach").val();
var url="${APP_PATH}/superserach.jsp?value="+value;
window.open(url);
}
</script>
\ No newline at end of file
@charset "utf-8";
/* 禁用iPhone中Safari的字号自动调整 */
html {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
/* 去除iPhone中默认的input样式 */
input{/* -webkit-appearance:none; */ resize: none;}
/* 取消链接高亮 */
body,div,ul,li,ol,h1,h2,h3,h4,h5,h6,input,textarea,select,p,dl,dt,dd,a,img,button,form,table,th,tr,td,tbody,article,
aside, details,figcaption,figure,footer,header,hgroup, menu,nav,section{ -webkit-tap-highlight-color:rgba(0, 0, 0, 0);
font-family: Microsoft YaHei;}
/* 设置HTML5元素为块 */
article, aside, details,figcaption,figure,footer,header,hgroup, menu,nav,section {
display: block;
}
/* 图片自适应 */
img {
max-width: 100%;
height: auto;
width:auto\9; /* ie8 */
-ms-interpolation-mode:bicubic;/*为了照顾ie图片缩放失真*/
}
*:focus {
outline:none;
}
/* 清零 */
body,div,ul,li,ol,h1,h2,h3,h4,h5,h6,input,textarea,select,p,dl,dt,dd,a,img,button,form,table,th,tr,td,tbody,article,
aside, details,figcaption,figure,footer,header,hgroup, menu,nav,section{margin:0; padding:0; border:none;}
body{font-family:Tahoma,Arial,Roboto,"Droid Sans","Helvetica Neue","Droid Sans Fallback","Heiti SC",sans-self; color:#555; }
em,i{font-style:normal;}
strong{font-weight: normal;}
.clearfix:after{content:""; display:block; visibility:hidden; height:0; clear:both;}
.clearfix{zoom:1;}
a{text-decoration:none; color:#969696; font-family:Tahoma,Arial,Roboto,"Droid Sans","Helvetica Neue","Droid Sans Fallback","Heiti SC",sans-self;}
a:hover{color:#969696; text-decoration:none;}
ul,ol,li{list-style:none;}
h1, h2, h3, h4, h5, h6{ font-size:100%; font-family:"微软雅黑",Tahoma,Arial,Roboto,"Droid Sans","Helvetica Neue","Droid Sans Fallback","Heiti SC",sans-self;}
fieldset,img{border: none;}
table {
border-collapse:collapse;
border-spacing:0;
}
caption, th {
text-align:left;
}
q:before,
q:after {
content:"";
}
input:password {
ime-mode:disabled;
}
.scope{max-width:640px; margin: 0 auto;}
.clear { clear: both; }
/*连续英文、数字换行*/
.wordwrap { word-break: break-all; word-wrap: break-word; }
/*单行文字超出显示省略号*/
.omg{overflow: hidden; text-overflow: ellipsis; white-space:nowrap;}
*{box-sizing:border-box;}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
.gSys_msg_box{
display:block;
z-index: 99999;
}
.gSys_msg_box h4,.gSys_msg_box p,.gSys_msg_box img{
border: 0 none;
margin: 0;
padding: 0;
}
.gSys_msg_box .loading{
display: table-cell;
vertical-align:middle;
text-align:center;
*display: block;
*font-size: 175px;
}
.gSys_msg_box .loading img {
vertical-align:middle;
border:0;
}
.gSys_msg_box .pbox{
border-style: solid;
border-width: 0 1px 1px;
clear: both;
padding: 0 8px;
background-color: #FFFFFF;
overflow: hidden;
border-color:#6C92AD;
height:100%;
}
.gSys_msg_box .piframe{
border-style: solid;
border-width: 0 1px 1px;
background-color: #FFFFFF;
overflow: hidden;
border-color:#6C92AD;
}
.gSys_msg_box .ptitle{
width:100%;
background-color: #1F5699;
background-image: url("images/bg/bgx.png");
background-repeat: repeat-x;
background-position: 0 -216px;
cursor: move;
height: 27px;
line-height: 27px;
overflow: hidden;
}
.gSys_msg_box .ptitle h4 {
color: #FFFFFF;
float: left;
font-size: 14px;
font-weight: bold;
margin-left: 5px;
margin-right: 5px;
}
.gSys_msg_box .ptitle a.fn-bg {
display: block;
float: right;
height: 20px;
margin-right: 2px;
margin-top: 3px;
outline: medium none;
overflow: hidden;
text-indent: 300px;
width: 20px;
}
.gSys_msg_box .ptitle .aclose {
background-position: -150px 0;
}
.gSys_msg_box .ptitle .aclose:hover {
background-position: -150px -36px;
}
.gSys_msg_box .ptitle .aclose:active {
background-position: -186px -35px;
}
.gSys_msg_box .ptitle span.fn-bg {
display: block;
height: 27px;
width: 2px;
}
.gSys_msg_box .ptitle .fn-bg {
background-image: url("images/bg/bg.png");
background-repeat: no-repeat;
}
.gSys_msg_box .ptitle .rc-l {
background-position: -120px 0;
float: left;
}
.gSys_msg_box .ptitle .rc-r {
background-position: -122px 0;
float: right;
}
.gSys_msg_box .pbox .pmsg {
position: relative;
text-align: left;
}
.gSys_msg_box .pbox .pmsg .ico {
overflow: hidden;
display: inline-block;
vertical-align: middle;
background-image: url("images/bg/bg.png");
background-repeat: no-repeat;
left: 25px;
position: absolute;
top: 20px;
height: 32px;
width: 32px;
}
.gSys_msg_box .pbox .pmsg .alert,.gSys_msg_box .pbox .pmsg .prompt{
background-position: -230px 0;
}
.gSys_msg_box .pbox .pmsg .confirm{
background-position: -230px -50px;
}
.gSys_msg_box .pbox .pmsg .ct {
font-family: simsun;
font-size: 14px;
padding: 25px 15px 30px 75px;
word-wrap: break-word;
}
.gSys_msg_box .pbox .pmsg .cp {
font-family: simsun;
font-size: 14px;
padding: 25px 15px 25px 15px;
word-wrap: break-word;
}
.gSys_msg_box .pbox .pmsg .pinput{
background:url("images/bg/bg.png") no-repeat scroll 0 -180px transparent;
border-color:#9A9A9A #CDCDCD #CDCDCD #9A9A9A;
border-style:solid;
border-width:1px;
font:14px arial;
padding:4px 5px;
vertical-align:top;
margin-top:4px;
}
.gSys_msg_box .popt{
border-style: solid;
border-width: 0 1px 1px;
clear: both;
height: 42px;
padding: 0 8px;
background-color: #F6F9FC;
}
.gSys_msg_box .popt .opt .pbtn {
margin-left: 8px;
}
.gSys_msg_box .popt .opt .pbtn, .gSys_msg_box .popt .opt .pbtn span {
cursor: pointer;
overflow: hidden;
text-align: center;
white-space: nowrap;
outline:none;
font-size:12px;
display: inline-block;
vertical-align: middle;
}
.gSys_msg_box .popt {
border-style: solid;
border-color: #6C92AD;
}
.gSys_msg_box .popt .opt {
float: right;
margin-top: 9px;
white-space: nowrap;
}
.gSys_msg_box .popt .opt .pbtn span {
padding-left: 18px;
padding-right: 14px;
line-height: 18px;
margin-right: 3px;
padding: 4px 9px 5px 12px;
}
.gSys_msg_box .popt .opt .pbtn,.gSys_msg_box .popt .opt .pbtn span{
background-image: url("images/bg/bg.png");
background-repeat: no-repeat;
}
.btn_gl, .btn_gl span, .gSys_msg_box .popt .opt .pbtn span {
background-position: -292px 0;
}
.gSys_msg_box .popt .opt .pbtn span {
margin-right: 3px;
padding: 4px 9px 5px 12px;
font-family:"";
}
.gSys_msg_box .popt .opt .pbtn{
background-position: 100% -24px;
border: 0 none;
color: #000000;
height: 24px;
overflow: hidden;
text-decoration: none;
float:right;
}
.gSys_msg_box .popt .opt .btn_hover {
background-position: 100% -72px;
}
.gSys_msg_box .popt .opt .btn_hover span {
background-position: -292px -48px;
}
.gSys_msg_box .popt .opt .btn_active {
background-position: 100% -120px;
}
.gSys_msg_box .popt .opt .btn_active span {
background-position: -292px -96px;
}
/*left*/
/*.leftsidebar_box{width:300px;height:auto !important;overflow:visible !important;position:fixed;height:100% !important;background-color:#3992d0;}*/
.line{height:2px;width:100%;background-image:url(../../images/left/line_bg.png);background-repeat:repeat-x;}
.leftsidebar_box dt{padding-left:40px;padding-right:10px;background-repeat:no-repeat;background-position:10px center;color:#666;font-size:14px;position:relative;line-height:48px;cursor:pointer;}
.leftsidebar_box dd{background-color:#fff;padding-left:40px; position: relative;}
.leftsidebar_box dd span{position: absolute; right:10px; top:6px; background:#ff8624; padding:0 4px; border-radius:4px; color:#fff; min-width: 20px; text-align: center; font-size:12px;}
.leftsidebar_box dd a{color:#666;line-height:20px;}
.zcejbt{position:relative;}
.leftsidebar_box dl img{position:absolute;right:10px;top:20px;}
.system_log dt{background-image:url(../../images/left/system.png)}
.custom dt{background-image:url(../../images/left/custom.png)}
.channel dt{background-image:url(../../images/left/channel.png)}
.app dt{background-image:url(../../images/left/app.png)}
.cloud dt{background-image:url(../../images/left/cloud.png)}
.syetem_management dt{background-image:url(../../images/left/syetem_management.png)}
.source dt{background-image:url(../../images/left/source.png)}
.statistics dt{background-image:url(../../images/left/statistics.png)}
.leftsidebar_box dl dd:last-child{padding-bottom:10px;}
.leftsidebar_box dd{padding-top:4px; padding-bottom: 4px;}
.leftsidebar_box dd:focus,
.leftsidebar_box dd:hover,.leftsidebar_box dd.act{background:#3992d0; }
.leftsidebar_box dd:focus a,
.leftsidebar_box dd:hover a,
.leftsidebar_box .act a{color:#fff;}
.red {
color: #d31c1b !important;
}
.blue {
color: #0876CC !important;
}
.bjt {
width: 100%;
height: 100%;
position: fixed;
z-index: -1;
left: 0;
top: 0;
}
h2 {
font-size:24px;
margin: 0;
}
.top h1 {
height: 60px;
width:1920px;
margin-top:0;
margin-bottom: 0px;
background: url(../../images/qjtc2.png) 0 0 no-repeat;
}
.big_box {
border-top:1px solid #eee;
overflow: auto;
background: #fff;
}
.big_box>div {
float: left;
min-height: 800px;
padding: 10px;
}
.big_box .left_box {
width: 300px;
background: #fff;
padding: 10px;
box-sizing: border-box;
padding: 0;
}
/*.big_box .left_box1 {
background: #0876CC;
}*/
.leftsidebar_box dl{margin-bottom:0;}
.right_box {
border-left: 1px solid #ccc;
margin-right: 10px;
background: #fff;
}
/*搜索按钮样式*/
.ssnr {
overflow: hidden;
}
.ssnr>li {
width: 840px;
margin: 10px auto 0;
}
.ssnr>li p {
border-radius: 10px 0 0 10px;
float: left;
text-align: center;
background: #198edb;
color: #fff;
}
.ssnr>li p a {
color: #fff;
height: 22px;
display: inline-block;
line-height: 22px;
text-decoration: none;
}
.ssnr>li p input {
border-radius: 10px 0 0 10px;
width: 630px;
height: 36px;
border: 2px solid #198edb;
padding: 2px 10px;
background: rgba(255, 255, 255, 0.8);
color: #333;
}
.ss_wrap {
margin-top: 20px;
}
.ssbf {
overflow: hidden;
color: #fff;
}
.ss_wrap .xzbf {
font-size: 18px;
margin-top: 10px;
color: #fff;
}
.ssbf a {
color: #fff;
background: #198edb;
/*background:-moz-linear-gradient(top,#2cacfd,#54bcfd);
background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#2cacfd), to(#54bcfd));谷歌*/
/*background: #198EDB;*/
display: inline-block;
height: 36px;
line-height: 36px;
width: 80px;
text-align: center;
text-decoration: none;
border-radius: 0 10px 10px 0;
}
.ssbf a:hover {
background: #2cacfd;
}
.search {
margin-right: 20px;
float: left;
}
.ssbf .lsjl,
.ssbf .zysj {
border-radius: 10px;
box-shadow: 1px 1px 20px #fff;
margin-right: 20px;
}
/*左边盒子基本信息*/
.jbxx_wrap {
position: relative;
}
.jbxx {
padding: 0 10px;
}
.jbxx_wrap img {
position: absolute;
right: 10px;
top: 50px;
width: 100px;
height: 120px;
border: 1px solid #ccc;
}
/*搜索对方社会关系*/
.sfshgx_wrap {
border-bottom: 2px solid #b1e1ef;
height: 40px;
background: -ms-linear-gradient(top, #fff, #b1e1ef);
/* IE 10 */
background: -moz-linear-gradient(top, #fff, #b1e1ef);
/*火狐*/
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#b1e1ef));
/*谷歌*/
padding-left: 10px;
}
.sfshgx_wrap .xm {
display: inline-block;
margin-top: 3px;
font-size: 18px;
line-height: 40px;
}
.sfshgx {
height: 50px;
}
.btn_wrap .btn {
margin-bottom: 10px;
width: 132px;
text-align: center;
}
.sfshgx_wrap button {
float: right;
margin: 4px 4px 0 0;
}
.sfshgx_wrap p {
float: left;
width: 80px;
margin-right: 9px;
text-align: center;
}
/*右边的盒子*/
.ssjg {
margin-bottom: 10px;
}
.right_box>h4 {
margin: 0 0 10px;
border-bottom: 2px solid #ec971f;
padding-bottom: 6px;
}
.zylb_wrap>a {
float: left;
border: 1px solid #ccc;
margin-right: 10px;
padding: 4px 6px;
cursor:pointer;
}
.zylb_wrap>.active{background:#0876CC; color:#fff;}
.zylb_wrap a{text-decoration: none;}
.zylb_wrap i{font-style: normal;}
.ryxq_wrap span {
margin-right: 10px;
color: #666;
}
.ryxq_wrap dt {
color: #0876CC;
}
.ryxq_wrap {
border-bottom: 1px dashed #0BAEC7;
padding-bottom: 10px;
}
.ryxq_wrap:hover {
background: #eee;
}
.fy {
text-align: center;
}
.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
background: #0876CC;
color: #fff;
}
#page2 .ryxq_wrap dd {
border-bottom: 1px dashed #ccc;
}
.ryxq_wrap dd>p {
margin-top: 10px;
}
/*姓名查询*/
/*.zjhm_wrap {
!*display:hidden;*!
}*/
.ssmz_right dl {
overflow: hidden;
}
.ssmz_right dl dd,
.ssmz_right dl dt {
float: left;
}
.ssmz_right dl dd {
width: 88%;
}
.ssmz_right dl dt {
width: 140px;
}
.ssmz_right dl dt img {
width: 120px;
}
@media only screen and (max-width:1500px) {
.ssmz_right dl dd {
width: 78%;
}
}
.zcejbt{padding:10px; background:#e5e5e5; margin-bottom: 0;}
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment