Commit 0793a0b9 by e

人员一体化采集和质量检查

parents
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
\ No newline at end of file
<component name="libraryTable">
<library name="jdk1.8">
<CLASSES />
<JAVADOC />
<SOURCES />
</library>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.founder</groupId>
<artifactId>shce-boot</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>shce-boot</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<!-- 公司的maven仓库 -->
<repositories>
<repository>
<id>founder</id>
<url>http://47.92.108.28:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<!-- 指定maven plugin仓库 -->
<pluginRepositories>
<!-- 公司的maven plugin仓库 -->
<pluginRepository>
<id>founder</id>
<url>http://47.92.108.28:8081/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<!-- 上传资源到nexus私服,构建部署项目 -->
<distributionManagement>
<repository>
<id>releases</id>
<url>http://47.92.108.28:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://47.92.108.28:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<druid.version>1.0.18</druid.version>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.6</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.2</version>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>1.1.5</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<!-- 数据库驱动包 -->
<dependency>
<groupId>org.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>10</version>
</dependency>
<!-- pagehelper 分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.3</version>
</dependency>
<!-- alibaba的druid数据库连接池 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.11</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.35</version>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!--spring2.0集成redis所需common-pool2-->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.4.2</version>
</dependency>
</dependencies>
<build>
<finalName>shce</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 没有该配置,devtools 不生效 -->
<fork>true</fork>
</configuration>
</plugin>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<configurationFile>${basedir}/src/main/resources/config/generatorConfig.xml</configurationFile>
<overwrite>true</overwrite>
<verbose>true</verbose>
</configuration>
<dependencies>
<!--oracle驱动-->
<dependency>
<groupId>org.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>10</version>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-generator</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>static/**</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>static/**</include>
</includes>
</resource>
</resources>
</build>
</project>
package com.founder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
/**
* 项目运行启动类
*/
@SpringBootApplication
@EnableCaching
public class XtbaBootApplication {
public static void main(String[] args) {
SpringApplication.run(XtbaBootApplication.class, args);
}
}
package com.founder.amsisDao;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
//demo
@Component
@Mapper
public interface NewDataSourceDao {
public String demoDao();
public String demoDao2();
}
package com.founder.amsisDao;
import com.founder.model.amsis.Rollimg;
import com.founder.model.amsis.Plainimg;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
//demo
@Component
@Mapper
public interface amsisDao {
public List<Rollimg> getRollimgByBarcode(Map<String, Object> map);
public List<Plainimg> getPlainimgByBarcode(Map<String, Object> map);
}
package com.founder.config;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import javax.sql.DataSource;
@Configuration
public class DataSourceConfig {
@Bean(name="xzxtdbProperties")
@Primary
@Qualifier("xzxtdb")
@ConfigurationProperties(prefix = "spring.datasource.xzxtdb")
public DataSourceProperties baseDbProperties(){
return new DataSourceProperties();
}
@Bean(name="xzxtdb")
@Qualifier("xzxtdb")
@ConfigurationProperties(prefix = "spring.datasource.xzxtdb")
@Primary
public DataSource setDataSource(){
return baseDbProperties().initializeDataSourceBuilder().build();
}
@Bean(name="amsisdbProperties")
@Qualifier("amsisdb")
@ConfigurationProperties(prefix = "spring.datasource.amsisdb")
public DataSourceProperties secondDbProperties(){
return new DataSourceProperties();
}
@Bean(name="amsisdb")
@Qualifier("amsisdb")
@ConfigurationProperties(prefix = "spring.datasource.amsisdb")
public DataSource secondDataSource(){
return secondDbProperties().initializeDataSourceBuilder().build();
}
}
package com.founder.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* Created by libin on 2018/4/11.
*/
@Configuration
public class DefaultViewConfig implements WebMvcConfigurer {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/toLogin").setViewName("login/login");
registry.addViewController("/noLogin").setViewName("login/login");
registry.addViewController("/").setViewName("login/login");
registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
WebMvcConfigurer.super.addViewControllers(registry);
}
/**
* 排除静态资源
* @param registry
*/
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry){
registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
}
}
package com.founder.config;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import javax.sql.DataSource;
@Configuration
@MapperScan(basePackages = {"com.founder.**.dao"}, sqlSessionFactoryRef = "xzxtSqlSessionFactory")
public class MybatisBaseDbConfig {
static final String MAPPER_LOCATION = "classpath:mapper/*.xml";
@Autowired
@Qualifier("xzxtdb")
private DataSource xzxtdb;
@Bean(name="xzxtSqlSessionFactory")
@Primary
public SqlSessionFactory baseSqlSessionFactory() throws Exception {
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
factoryBean.setDataSource(xzxtdb);
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisBaseDbConfig.MAPPER_LOCATION));
return factoryBean.getObject();
}
@Bean(name="xzxtSqlSessionTemplate")
@Primary
public SqlSessionTemplate baseSqlSessionTemplate() throws Exception {
return new SqlSessionTemplate(baseSqlSessionFactory());
}
}
package com.founder.config;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import javax.sql.DataSource;
@Configuration
@MapperScan(basePackages = {"com.founder.amsisDao"},sqlSessionFactoryRef = "amsisSqlSessionFactory")
public class MybatisDb2Config {
@Autowired
@Qualifier("amsisdb")
private DataSource amsisdb;
@Bean(name="amsisSqlSessionFactory")
public SqlSessionFactory amsisSqlSessionFactory() throws Exception {
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
factoryBean.setDataSource(amsisdb);
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisBaseDbConfig.MAPPER_LOCATION));
return factoryBean.getObject();
}
@Bean(name="amsisSqlSessionTemplate")
public SqlSessionTemplate jwzhSqlSessionTemplate() throws Exception {
return new SqlSessionTemplate(amsisSqlSessionFactory());
}
}
package com.founder.config;
import com.founder.module.redis.service.impl.ImportCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
/**
* Created by libin on 2018/4/11.
* 程序启动时要做的操作
*/
@Component
@Order(value=1)
public class StartUpConfig implements CommandLineRunner {
@Autowired
private ImportCode importCode;
@Override
public void run(String... strings) throws Exception {
//将代码导入redis
//importCode.insertIntoRedis();
System.out.println("项目启动完毕!");
}
}
package com.founder.config;
import com.founder.model.User;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class SystemInterceptor implements HandlerInterceptor {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
boolean flag =true;
User user=(User)request.getSession().getAttribute("User");
if(null==user){
response.sendRedirect("/toLogin");//页面跳转到login登录页面
flag = false;
}else{
flag = true;
}
return flag;
}
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
}
@Override
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
}
}
package com.founder.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.WebApplicationContext;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import java.util.EventObject;
@Component
public class SystemListener implements ServletContextListener {
@Value("${ssdw}")
String ssdw;
@Override
public void contextInitialized(ServletContextEvent servletContextEvent) {
System.out.println("==>SystemListener定义全局变量启动");
ServletContext application = servletContextEvent.getServletContext();
if(!StringUtils.isEmpty(ssdw)){
ssdw = ssdw.substring(0,2);
}
application.setAttribute("ssdw",ssdw);
}
@Override
public void contextDestroyed(ServletContextEvent servletContextEvent) {
}
}
package com.founder.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import java.util.ArrayList;
import java.util.List;
//系统配置
@Configuration
public class SystemWebMvcConfigurer implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {//启动拦截器
// addPathPatterns 用于添加拦截规则
// excludePathPatterns 用户排除拦截
List<String> excludeUrl=new ArrayList<>();
excludeUrl.add("/toLogin");
excludeUrl.add("/doLogin");
excludeUrl.add("/noLogin");
excludeUrl.add("/toHome");
// registry.addInterceptor(new SystemInterceptor()).addPathPatterns("/**").excludePathPatterns(excludeUrl);
// WebMvcConfigurer.super.addInterceptors(registry);
// addPathPatterns("/**")对所有请求都拦截,但是排除了/toLogin和/login请求的拦截。
}
}
package com.founder.controller;
import com.alibaba.fastjson.JSON;
import com.founder.dao.DemoDao;
import com.founder.amsisDao.NewDataSourceDao;
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.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by libin on 2018/4/10.
*/
@Controller
public class DemoController {
private Logger log= LoggerFactory.getLogger(DemoController.class);
@Autowired
private DemoDao testDao;
@Autowired
private NewDataSourceDao Demodao;
@RequestMapping("/test")
@ResponseBody
public String Hello(String name){
return "hello,"+name;
}
@RequestMapping("/demo2")
public ModelAndView index(){
List<Map<String,String>> list = new ArrayList<>();
Map<String,String> map=new HashMap<>();
map.put("name","dawdasd");
map.put("age","dzsdfzsdf");
map.put("sex","hsdfhf");
list.add(map);
map=new HashMap<>();
map.put("name","分公司电饭锅");
map.put("age","dzs十多个地方dfzsdf");
map.put("sex","深深地感受到");
list.add(map);
map=new HashMap<>();
map.put("name","大速度发");
map.put("age","啊哈的话");
map.put("sex","觉得合适的");
list.add(map);
map=new HashMap<>();
map.put("name","噶所发生的");
map.put("age","个大概是");
map.put("sex","防守打法根深蒂固");
list.add(map);
ModelAndView modelAndView = new ModelAndView("index");
modelAndView.addObject("testList",list);
log.info("info:"+list.toString());
log.error("error:"+list.toString());
log.warn("warn:"+list.toString());
log.debug("debug:"+list.toString());
log.warn("warn:"+ testDao.testDao());
return modelAndView;
}
@RequestMapping("/demo3")
@ResponseBody
public String demo3(){
return testDao.testDao2();
}
@RequestMapping("/demo4")
public String demo4(){
return "demohtml/demo4";
}
@RequestMapping("/demo5")
public String demo5(){
return "testTree";
}
@RequestMapping("/demo6")
@ResponseBody
public Map<String,Object> demo6(){
Map<String,Object> map=new HashMap<>();
map.put("name","噶所发生的");
map.put("age","个大概是");
map.put("sex","防守打法根深蒂固");
return map;
}
@RequestMapping("/demo7")
@ResponseBody
public Map<String,Object> demo7(HttpServletRequest request){
Map<String,Object> map=new HashMap<>();
map.put("name","噶所发生的");
map.put("age","个大概是");
map.put("sex","防守打法根深蒂固");
map.put("user", JSON.toJSON(request.getSession().getAttribute("User")));
return map;
}
@RequestMapping("/demo8")
public String demo8(){
return "testTree";
}
@RequestMapping("/demo9")
public String demo9(){
return "demohtml/ysseryxxcj";
}
@RequestMapping("/demo10")
@ResponseBody
public String demo10(){
return Demodao.demoDao()+"_SID="+Demodao.demoDao2();
}
}
package com.founder.controller;
import com.founder.model.AutoTbStRy;
import com.founder.service.TbStRyService;
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.ResponseBody;
/**
* Created by libin on 2018/4/13.
* 实体人员controller
*/
@Controller
public class TbStRyController {
Logger log = LoggerFactory.getLogger(this.getClass());
@Autowired
private TbStRyService tbStRyService;
@RequestMapping("/getTbStRyById")
@ResponseBody
public AutoTbStRy getStRy(String id){
AutoTbStRy tbStRy=null;
if(id!=null&&!"".equals(id)){
tbStRy=tbStRyService.selectByKey(id);
}
return tbStRy;
}
}
package com.founder.dao;
import com.founder.model.AfisQualityCk;
import com.founder.util.MyMapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component
public interface AfisQualityCkDao extends MyMapper<AfisQualityCk> {
public List<AfisQualityCk> getAfisQuality(Map<String, Object> map);
public boolean updateAfisQualityCk(Map<String, Object> map);
public boolean updateChexiao(Map<String, Object> map);
public Integer queryZljcPageCount(Map<String, Object> map);
public List<AfisQualityCk> queryZljcPageList(Map<String, Object> map);
}
package com.founder.dao;
import com.founder.model.AutoTbStRy;
import com.founder.util.MyMapper;
public interface AutoTbStRyMapper extends MyMapper<AutoTbStRy> {
}
\ No newline at end of file
package com.founder.dao;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
/**
* Created by libin on 2018/4/11.
*/
@Component
@Mapper
public interface DemoDao {
public String testDao();
public String testDao2();
}
package com.founder.dao;
import com.founder.model.User;
import com.founder.model.ZTreeNode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component
@Mapper
public interface IDictitemDao {
List<ZTreeNode> findAjxzCountSql(@Param(value = "sqlStr") String sqlStr);
List<ZTreeNode> findAjxzSql(String value);
List<ZTreeNode> findXalbdmbcmsCountSql(String value);
List<ZTreeNode> findCodeAllByType(String value);
List<User> selectAllUser();
List<ZTreeNode> findCodes(ZTreeNode node);
int updateNode(ZTreeNode node);
public String getDicName(Map map);
}
package com.founder.dao;
import com.founder.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import com.founder.model.Sequence;
import java.util.List;
import java.util.Map;
@Component
@Mapper
public interface SequenceDao extends MyMapper<Sequence> {
public List<Sequence> findMaxSeqById(Map<String,Object> map);
public boolean insertSequenceSql(Map<String,Object> map);
public boolean updateMaxSeqById(Map<String,Object> map);
}
package com.founder.dao;
import com.founder.model.AutoTbRyZp;
import com.founder.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component
@Mapper
public interface TbRyZpDao extends MyMapper<AutoTbRyZp> {
public List<AutoTbRyZp> getRyzpById(Map<String, Object> map);
public boolean updateRyzp(Map<String, Object> map);
public boolean insertRyzp(Map<String, Object> map);
}
package com.founder.dao;
import com.founder.model.AutoTbStRy;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
//demo
@Component
@Mapper
public interface TbXwRycjDao {
public Integer queryPageCount(Map<String, Object> map);
public List<AutoTbStRy> queryPageList(Map<String, Object> map);
public List<AutoTbStRy> getRyxxByRybh(Map<String, Object> map);
public List<AutoTbStRy> getRyxxBySzzwbh(Map<String, Object> map);
public boolean deleteRyxx(Map<String, Object> map);
public boolean insertRyxx(Map<String, Object> map);
public boolean updateRyxx(Map<String, Object> map);
public void getAjaxGettoAfisStr(Map<String, Object> map);
}
package com.founder.login.controller;
import com.founder.login.service.LoginService;
import com.founder.model.AutoTbStRy;
import com.founder.model.User;
import com.founder.service.AutoTbXwRycjService;
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.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import sun.misc.BASE64Encoder;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;
/**
* Created by libin on 2018/4/12.
* 登录控制类
*/
@Controller
public class LoginController {
private Logger log= LoggerFactory.getLogger(this.getClass());
@Autowired
private AutoTbXwRycjService rycjService;
@Autowired
private LoginService loginService;
@RequestMapping(value="/toHome",method = {RequestMethod.POST,RequestMethod.GET})
public String toHome(HttpServletRequest request, HttpServletResponse response,Model model,String asjxgrybh,String username){
String userId=request.getParameter("userId");
String rybh="";
String returnStr="";
User user=null;
user=(User)request.getSession().getAttribute("User");
if(asjxgrybh!=null&&!"".equals(asjxgrybh)) {
String[] rst = asjxgrybh.split(",");
//System.out.println(rst);
if (rst.length >= 2) {
rybh = rst[0];
userId = rst[1];
}
}
if(user==null){
if(asjxgrybh!=null&&!"".equals(asjxgrybh)){
user=loginService.getUserByUsername(userId);
}else{
user=loginService.getUserById(userId);
}
}
if(user!=null){
if(userId==null||"".equals(userId)){
returnStr = "home.html";
log.info("登陆成功");
}else{
if(rybh==null||"".equals(rybh)){
AutoTbStRy xyrC = new AutoTbStRy();
model.addAttribute("ryxx",xyrC);
model.addAttribute("saveflag","0");
}else{
AutoTbStRy xyrC = rycjService.getRyxxByRybh(rybh);
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
if(xyrC.getLrsj()!=null&&!"".equals(xyrC.getLrsj())){
xyrC.setLrsjStr(df.format(xyrC.getLrsj()));
}
if(xyrC.getCsrqQsrq()!=null&&!"".equals(xyrC.getCsrqQsrq())) {
xyrC.setCsrqQsrqStr(df.format(xyrC.getCsrqQsrq()));
}
if(xyrC.getZhsj()!=null&&!"".equals(xyrC.getZhsj())){
xyrC.setZhsjStr(df.format(xyrC.getZhsj()));
}
String rybhstr = xyrC.getRybh();
String savePath = "/personphoto/"+ rybhstr.substring(rybhstr.length() - 10, rybhstr.length() - 4)+ "/" + rybhstr.substring(rybhstr.length() - 3, rybhstr.length());
ServletContext context = request.getSession() .getServletContext();
String filePath = context.getRealPath(savePath);
filePath = filePath.substring(0,filePath.indexOf("\\"))+savePath;
File filejia1 = new File(filePath+"/"+rybhstr+"1.jpg");
if (filejia1.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"1.jpg");
xyrC.setEdzzpStr64(zpBase64);
xyrC.setEDZZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia2 = new File(filePath+"/"+rybhstr+"2.jpg");
if (filejia2.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"2.jpg");
xyrC.setZmzpStr64(zpBase64);
xyrC.setZMZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia3 = new File(filePath+"/"+rybhstr+"3.jpg");
if (filejia3.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"3.jpg");
xyrC.setCmzpStr64(zpBase64);
xyrC.setCMZPL64(String.valueOf(zpBase64.getBytes().length));
}
File filejia4 = new File(filePath+"/"+rybhstr+"4.jpg");
if (filejia4.exists()) {
String zpBase64 = GetImageStrs(filePath+"/"+rybhstr+"4.jpg");
xyrC.setYcmzpStr64(zpBase64);
xyrC.setYCMZPL64(String.valueOf(zpBase64.getBytes().length));
}
model.addAttribute("ryxx",xyrC);
model.addAttribute("saveflag","0");
}
returnStr = "rygl/addryxx.html";
log.info("人员采集单点登陆成功");
}
request.getSession().setAttribute("User",user);
}else{
returnStr="login/login_hnxt.html";
log.info("没有登录");
}
return returnStr;
}
@RequestMapping("/doLogin")
@ResponseBody
public Map<String,Object> doLogin(HttpServletRequest request){
String userName=request.getParameter("userId");
String psw=request.getParameter("psw");
Map<String,Object> returnMap=new HashMap<>();
User user=null;
try{
user=loginService.getUserByName(userName,psw);
}catch (Exception e){
e.printStackTrace();
returnMap.put("state","error");
returnMap.put("msg","登录异常!");
return returnMap;
}
if(user!=null){
request.getSession().setAttribute("User",user);//登录成功生成session
returnMap.put("state","success");
returnMap.put("msg","登陆成功!");
}else{
returnMap.put("state","failed");
returnMap.put("msg","用户名或密码错误!");
}
return returnMap;
}
@PostMapping("/getLoginUser")
@ResponseBody
public User getLoginUser(HttpServletRequest request){
User user=(User)request.getSession().getAttribute("User");
return user;
}
public static String GetImageStrs(String imgFilePath) {// 将图片文件转化为字节数组字符串,并对其进行Base64编码处理
byte[] data = null;
// 读取图片字节数组
try {
InputStream in = new FileInputStream(imgFilePath);
data = new byte[in.available()];
in.read(data);
in.close();
} catch (IOException e) {
e.printStackTrace();
}
// 对字节数组Base64编码
BASE64Encoder encoder = new BASE64Encoder();
return encoder.encode(data);// 返回Base64编码过的字节数组字符串
}
}
package com.founder.login.dao;
import com.founder.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
* Created by libin on 2018/4/12.
*/
@Component
@Mapper
public interface LoginDao {
public User queryUserById(String id);
public User queryUserByUsername(Map<String,Object> param);
public User queryUserByName(Map<String,Object> param);
}
package com.founder.login.service;
import com.founder.model.User;
/**
* Created by libin on 2018/4/12.
*/
public interface LoginService {
public User getUserById(String id);
public User getUserByUsername(String id);
public User getUserByName(String userName,String psw);
}
package com.founder.login.service.impl;
import com.founder.login.dao.LoginDao;
import com.founder.login.service.LoginService;
import com.founder.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
/**
* Created by libin on 2018/4/12.
*/
@Service
public class LoginServiceImpl implements LoginService {
@Autowired
private LoginDao loginDao;
@Override
public User getUserById(String id) {
User user=null;
user=loginDao.queryUserById(id);
return user;
}
@Override
public User getUserByUsername(String id) {
User user=null;
Map<String,Object> param=new HashMap<>();
param.put("userName",id);
user=loginDao.queryUserByUsername(param);
return user;
}
@Override
public User getUserByName(String userName, String psw) {
User user=null;
Map<String,Object> param=new HashMap<>();
if(userName==null||"".equals(userName)||psw==null||"".equals(psw)){
return user;
}
psw= Base64.getEncoder().encodeToString(psw.getBytes());
param.put("userName",userName);
param.put("password",psw);
user=loginDao.queryUserByName(param);
return user;
}
}
package com.founder.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Title: AfisQualityCk.java</p>
* <p>Description: 部门实体类</p>
* <p>Copyright: HIGHLAND'S Copyright (c) 2013</p>
* <p>Company: HIGHLAND</p>
* @author highland_team_Zhouwei
* @date 2013-10-31
* @version 1.0
*/
public class AfisQualityCk implements Serializable {
private String RRybh; //人员编号
private String RXm; //人员姓名
private Date RCsrq; //出生日期
private String RCsrqStr; //出生日期
private String RCjr; //采集人
private String RCjdw; //采集单位
private Date RCjsj; //采集时间
private String RCjsjStr; //采集时间
private String RSfzljc; //是否质量检查,0未检查、1检查
private String RWzxx; //文字信息检查结果
private String RPmzw; //平面指纹检查结果
private String RGdzw; //滚动指纹检查结果
private String RZw; //掌纹检查结果
private String RRx; //人像检查结果
private String RZj; //足迹质量检查结果
private String RDna; //DNA质量检查结果
private String RZwbh; //指纹编号
private String RDnabh; //DNA编号
private String RZjbh; //足迹编号
private String RCjcs; //采集次数
private String jcjg; //检查结果,空 未检查、0合格、1不合格 2无文档 3无指纹
private Date rksj; //入库时间
private String rksjStr; //入库时间
private String scbz; //删除标志,1代表删除
private String jcr; //检查人
private String jcdw; //检查单位
private Date jcsj; //检查时间
private String jcsjStr; //检查时间
private String qdzljcjs;//确定质量检查结束,1代表结束
private String zwbjFpddw;//指纹编辑分配到单位
private String zwbjFpdr;//指纹编辑分配到人
private Date zwbjFpsj; //指纹编辑分配时间
private String zwzt; //指纹编辑状态 31待分配32已分配 待编辑34已编辑
private String zwbjFpdw;//分配单位
private String zwbjFpr; //分配人
private String zwbjdw; //编辑单位
private String zwbjr; //编辑人
private Date zwbjsj; //编辑时间
private String bz; //备注
private String zwsx; //指纹时限 by fujh
private String zwfkxx; //指纹反馈信息 by fujh
private String spsjrqsj;//比中信息表审批时间
private String r_sjlxdh;//指纹比中状态
private String djssj; //倒计时时间 by fujh
private String zjhm; //证件号码
private String eRCjsjStr; //采集时间
private String fRCjsjStr; //采集时间
private String fjcsjStr; //采集时间
private String ejcsjStr; //采集时间
public String getRRybh() {
return this.RRybh;
}
public void setRRybh(String RRybh) {
this.RRybh = RRybh;
}
public String getRXm() {
return this.RXm;
}
public void setRXm(String RXm) {
this.RXm = RXm;
}
public Date getRCsrq() {
return this.RCsrq;
}
public void setRCsrq(Date RCsrq) {
this.RCsrq = RCsrq;
}
public String getRCjr() {
return this.RCjr;
}
public void setRCjr(String RCjr) {
this.RCjr = RCjr;
}
public String getRCjdw() {
return this.RCjdw;
}
public void setRCjdw(String RCjdw) {
this.RCjdw = RCjdw;
}
public Date getRCjsj() {
return this.RCjsj;
}
public void setRCjsj(Date RCjsj) {
this.RCjsj = RCjsj;
}
public String getRSfzljc() {
return this.RSfzljc;
}
public void setRSfzljc(String RSfzljc) {
this.RSfzljc = RSfzljc;
}
public String getRWzxx() {
return this.RWzxx;
}
public void setRWzxx(String RWzxx) {
this.RWzxx = RWzxx;
}
public String getRPmzw() {
return this.RPmzw;
}
public void setRPmzw(String RPmzw) {
this.RPmzw = RPmzw;
}
public String getRGdzw() {
return this.RGdzw;
}
public void setRGdzw(String RGdzw) {
this.RGdzw = RGdzw;
}
public String getRZw() {
return this.RZw;
}
public void setRZw(String RZw) {
this.RZw = RZw;
}
public String getRRx() {
return this.RRx;
}
public void setRRx(String RRx) {
this.RRx = RRx;
}
public String getRZj() {
return this.RZj;
}
public void setRZj(String RZj) {
this.RZj = RZj;
}
public String getRDna() {
return this.RDna;
}
public void setRDna(String RDna) {
this.RDna = RDna;
}
public String getRZwbh() {
return this.RZwbh;
}
public void setRZwbh(String RZwbh) {
this.RZwbh = RZwbh;
}
public String getRDnabh() {
return this.RDnabh;
}
public void setRDnabh(String RDnabh) {
this.RDnabh = RDnabh;
}
public String getRZjbh() {
return this.RZjbh;
}
public void setRZjbh(String RZjbh) {
this.RZjbh = RZjbh;
}
public String getRCjcs() {
return this.RCjcs;
}
public void setRCjcs(String RCjcs) {
this.RCjcs = RCjcs;
}
public String getJcjg() {
return this.jcjg;
}
public void setJcjg(String jcjg) {
this.jcjg = jcjg;
}
public Date getRksj() {
return this.rksj;
}
public void setRksj(Date rksj) {
this.rksj = rksj;
}
public String getScbz() {
return this.scbz;
}
public void setScbz(String scbz) {
this.scbz = scbz;
}
public String getJcr() {
return this.jcr;
}
public void setJcr(String jcr) {
this.jcr = jcr;
}
public String getJcdw() {
return this.jcdw;
}
public void setJcdw(String jcdw) {
this.jcdw = jcdw;
}
public Date getJcsj() {
return this.jcsj;
}
public void setJcsj(Date jcsj) {
this.jcsj = jcsj;
}
public String getQdzljcjs() {
return this.qdzljcjs;
}
public void setQdzljcjs(String qdzljcjs) {
this.qdzljcjs = qdzljcjs;
}
public String getZwbjFpddw() {
return this.zwbjFpddw;
}
public void setZwbjFpddw(String zwbjFpddw) {
this.zwbjFpddw = zwbjFpddw;
}
public String getZwbjFpdr() {
return this.zwbjFpdr;
}
public void setZwbjFpdr(String zwbjFpdr) {
this.zwbjFpdr = zwbjFpdr;
}
public Date getZwbjFpsj() {
return this.zwbjFpsj;
}
public void setZwbjFpsj(Date zwbjFpsj) {
this.zwbjFpsj = zwbjFpsj;
}
public String getZwzt() {
return this.zwzt;
}
public void setZwzt(String zwzt) {
this.zwzt = zwzt;
}
public String getZwbjFpdw() {
return this.zwbjFpdw;
}
public void setZwbjFpdw(String zwbjFpdw) {
this.zwbjFpdw = zwbjFpdw;
}
public String getZwbjFpr() {
return this.zwbjFpr;
}
public void setZwbjFpr(String zwbjFpr) {
this.zwbjFpr = zwbjFpr;
}
public String getZwbjdw() {
return this.zwbjdw;
}
public void setZwbjdw(String zwbjdw) {
this.zwbjdw = zwbjdw;
}
public String getZwbjr() {
return this.zwbjr;
}
public void setZwbjr(String zwbjr) {
this.zwbjr = zwbjr;
}
public Date getZwbjsj() {
return this.zwbjsj;
}
public void setZwbjsj(Date zwbjsj) {
this.zwbjsj = zwbjsj;
}
public String getBz() {
return this.bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getZwsx() {
return zwsx;
}
public void setZwsx(String zwsx) {
this.zwsx = zwsx;
}
public String getZwfkxx() {
return zwfkxx;
}
public void setZwfkxx(String zwfkxx) {
this.zwfkxx = zwfkxx;
}
public String getSpsjrqsj() {
return spsjrqsj;
}
public void setSpsjrqsj(String spsjrqsj) {
this.spsjrqsj = spsjrqsj;
}
public String getR_sjlxdh() {
return r_sjlxdh;
}
public void setR_sjlxdh(String r_sjlxdh) {
this.r_sjlxdh = r_sjlxdh;
}
public String getDjssj() {
return djssj;
}
public void setDjssj(String djssj) {
this.djssj = djssj;
}
public String getZjhm() {
return zjhm;
}
public void setZjhm(String zjhm) {
this.zjhm = zjhm;
}
public String getRCsrqStr() {
return RCsrqStr;
}
public void setRCsrqStr(String RCsrqStr) {
this.RCsrqStr = RCsrqStr;
}
public String getRCjsjStr() {
return RCjsjStr;
}
public void setRCjsjStr(String RCjsjStr) {
this.RCjsjStr = RCjsjStr;
}
public String getRksjStr() {
return rksjStr;
}
public void setRksjStr(String rksjStr) {
this.rksjStr = rksjStr;
}
public String getJcsjStr() {
return jcsjStr;
}
public void setJcsjStr(String jcsjStr) {
this.jcsjStr = jcsjStr;
}
public String geteRCjsjStr() {
return eRCjsjStr;
}
public void seteRCjsjStr(String eRCjsjStr) {
this.eRCjsjStr = eRCjsjStr;
}
public String getfRCjsjStr() {
return fRCjsjStr;
}
public void setfRCjsjStr(String fRCjsjStr) {
this.fRCjsjStr = fRCjsjStr;
}
public String getFjcsjStr() {
return fjcsjStr;
}
public void setFjcsjStr(String fjcsjStr) {
this.fjcsjStr = fjcsjStr;
}
public String getEjcsjStr() {
return ejcsjStr;
}
public void setEjcsjStr(String ejcsjStr) {
this.ejcsjStr = ejcsjStr;
}
}
\ No newline at end of file
package com.founder.model;
import java.io.Serializable;
import java.util.Date;
/**
* <p>Title: AfisQualityCk.java</p>
* <p>Description: 部门实体类</p>
* <p>Copyright: HIGHLAND'S Copyright (c) 2013</p>
* <p>Company: HIGHLAND</p>
* @author highland_team_Zhouwei
* @date 2013-10-31
* @version 1.0
*/
public class AmsisRollImgs implements Serializable {
private String RRybh; //人员编号
private String RXm; //人员姓名
private Date RCsrq; //出生日期
private String RCjr; //采集人
private String RCjdw; //采集单位
private Date RCjsj; //采集时间
private String RSfzljc; //是否质量检查,0未检查、1检查
private String RWzxx; //文字信息检查结果
private String RPmzw; //平面指纹检查结果
private String RGdzw; //滚动指纹检查结果
private String RZw; //掌纹检查结果
private String RRx; //人像检查结果
private String RZj; //足迹质量检查结果
private String RDna; //DNA质量检查结果
private String RZwbh; //指纹编号
private String RDnabh; //DNA编号
private String RZjbh; //足迹编号
private String RCjcs; //采集次数
private String jcjg; //检查结果,空 未检查、0合格、1不合格 2无文档 3无指纹
private Date rksj; //入库时间
private String scbz; //删除标志,1代表删除
private String jcr; //检查人
private String jcdw; //检查单位
private Date jcsj; //检查时间
private String qdzljcjs;//确定质量检查结束,1代表结束
private String zwbjFpddw;//指纹编辑分配到单位
private String zwbjFpdr;//指纹编辑分配到人
private Date zwbjFpsj; //指纹编辑分配时间
private String zwzt; //指纹编辑状态 31待分配32已分配 待编辑34已编辑
private String zwbjFpdw;//分配单位
private String zwbjFpr; //分配人
private String zwbjdw; //编辑单位
private String zwbjr; //编辑人
private Date zwbjsj; //编辑时间
private String bz; //备注
private String zwsx; //指纹时限 by fujh
private String zwfkxx; //指纹反馈信息 by fujh
public String getRRybh() {
return this.RRybh;
}
public void setRRybh(String RRybh) {
this.RRybh = RRybh;
}
public String getRXm() {
return this.RXm;
}
public void setRXm(String RXm) {
this.RXm = RXm;
}
public Date getRCsrq() {
return this.RCsrq;
}
public void setRCsrq(Date RCsrq) {
this.RCsrq = RCsrq;
}
public String getRCjr() {
return this.RCjr;
}
public void setRCjr(String RCjr) {
this.RCjr = RCjr;
}
public String getRCjdw() {
return this.RCjdw;
}
public void setRCjdw(String RCjdw) {
this.RCjdw = RCjdw;
}
public Date getRCjsj() {
return this.RCjsj;
}
public void setRCjsj(Date RCjsj) {
this.RCjsj = RCjsj;
}
public String getRSfzljc() {
return this.RSfzljc;
}
public void setRSfzljc(String RSfzljc) {
this.RSfzljc = RSfzljc;
}
public String getRWzxx() {
return this.RWzxx;
}
public void setRWzxx(String RWzxx) {
this.RWzxx = RWzxx;
}
public String getRPmzw() {
return this.RPmzw;
}
public void setRPmzw(String RPmzw) {
this.RPmzw = RPmzw;
}
public String getRGdzw() {
return this.RGdzw;
}
public void setRGdzw(String RGdzw) {
this.RGdzw = RGdzw;
}
public String getRZw() {
return this.RZw;
}
public void setRZw(String RZw) {
this.RZw = RZw;
}
public String getRRx() {
return this.RRx;
}
public void setRRx(String RRx) {
this.RRx = RRx;
}
public String getRZj() {
return this.RZj;
}
public void setRZj(String RZj) {
this.RZj = RZj;
}
public String getRDna() {
return this.RDna;
}
public void setRDna(String RDna) {
this.RDna = RDna;
}
public String getRZwbh() {
return this.RZwbh;
}
public void setRZwbh(String RZwbh) {
this.RZwbh = RZwbh;
}
public String getRDnabh() {
return this.RDnabh;
}
public void setRDnabh(String RDnabh) {
this.RDnabh = RDnabh;
}
public String getRZjbh() {
return this.RZjbh;
}
public void setRZjbh(String RZjbh) {
this.RZjbh = RZjbh;
}
public String getRCjcs() {
return this.RCjcs;
}
public void setRCjcs(String RCjcs) {
this.RCjcs = RCjcs;
}
public String getJcjg() {
return this.jcjg;
}
public void setJcjg(String jcjg) {
this.jcjg = jcjg;
}
public Date getRksj() {
return this.rksj;
}
public void setRksj(Date rksj) {
this.rksj = rksj;
}
public String getScbz() {
return this.scbz;
}
public void setScbz(String scbz) {
this.scbz = scbz;
}
public String getJcr() {
return this.jcr;
}
public void setJcr(String jcr) {
this.jcr = jcr;
}
public String getJcdw() {
return this.jcdw;
}
public void setJcdw(String jcdw) {
this.jcdw = jcdw;
}
public Date getJcsj() {
return this.jcsj;
}
public void setJcsj(Date jcsj) {
this.jcsj = jcsj;
}
public String getQdzljcjs() {
return this.qdzljcjs;
}
public void setQdzljcjs(String qdzljcjs) {
this.qdzljcjs = qdzljcjs;
}
public String getZwbjFpddw() {
return this.zwbjFpddw;
}
public void setZwbjFpddw(String zwbjFpddw) {
this.zwbjFpddw = zwbjFpddw;
}
public String getZwbjFpdr() {
return this.zwbjFpdr;
}
public void setZwbjFpdr(String zwbjFpdr) {
this.zwbjFpdr = zwbjFpdr;
}
public Date getZwbjFpsj() {
return this.zwbjFpsj;
}
public void setZwbjFpsj(Date zwbjFpsj) {
this.zwbjFpsj = zwbjFpsj;
}
public String getZwzt() {
return this.zwzt;
}
public void setZwzt(String zwzt) {
this.zwzt = zwzt;
}
public String getZwbjFpdw() {
return this.zwbjFpdw;
}
public void setZwbjFpdw(String zwbjFpdw) {
this.zwbjFpdw = zwbjFpdw;
}
public String getZwbjFpr() {
return this.zwbjFpr;
}
public void setZwbjFpr(String zwbjFpr) {
this.zwbjFpr = zwbjFpr;
}
public String getZwbjdw() {
return this.zwbjdw;
}
public void setZwbjdw(String zwbjdw) {
this.zwbjdw = zwbjdw;
}
public String getZwbjr() {
return this.zwbjr;
}
public void setZwbjr(String zwbjr) {
this.zwbjr = zwbjr;
}
public Date getZwbjsj() {
return this.zwbjsj;
}
public void setZwbjsj(Date zwbjsj) {
this.zwbjsj = zwbjsj;
}
public String getBz() {
return this.bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getZwsx() {
return zwsx;
}
public void setZwsx(String zwsx) {
this.zwsx = zwsx;
}
public String getZwfkxx() {
return zwfkxx;
}
public void setZwfkxx(String zwfkxx) {
this.zwfkxx = zwfkxx;
}
}
\ No newline at end of file
package com.founder.model;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
@Table(name = "TB_ST_RY_ZP")
public class AutoTbRyZp implements Serializable {
private static final long serialVersionUID = 1L;
//信息编号
private String xxbh = null;
//人员编号
private String rybh = null;
//电子文件名称
private String dzwjmc = null;
//电子文件摘要
private String dzwjzy = null;
//电子文件格式
private String dzwjgs = null;
//电子文件内容
private byte[] dzwjnr = null;
//电子文件大小
private String dzwjdx = null;
//电子文件位置
private String dzwjwz = null;
//电子文件创建时间_日期时间
private Date dzwjcjsjRqsj = null;
//照片部位,1:二代证;2:正面照片;3:左侧面照片;4:右侧面照片
private String zpbw = null;
private String lrr = null;
private String lrdwdm = null;
private String lrdwmc = null;
private Date lrsj = null;
private String gxr = null;
private Date gxsj = null;
private String gxdwdm = null;
private String gxdwmc = null;
public static long getSerialVersionUID() {
return serialVersionUID;
}
public String getXxbh() {
return xxbh;
}
public void setXxbh(String xxbh) {
this.xxbh = xxbh;
}
public String getRybh() {
return rybh;
}
public void setRybh(String rybh) {
this.rybh = rybh;
}
public String getDzwjmc() {
return dzwjmc;
}
public void setDzwjmc(String dzwjmc) {
this.dzwjmc = dzwjmc;
}
public String getDzwjzy() {
return dzwjzy;
}
public void setDzwjzy(String dzwjzy) {
this.dzwjzy = dzwjzy;
}
public String getDzwjgs() {
return dzwjgs;
}
public void setDzwjgs(String dzwjgs) {
this.dzwjgs = dzwjgs;
}
public byte[] getDzwjnr() {
return dzwjnr;
}
public void setDzwjnr(byte[] dzwjnr) {
this.dzwjnr = dzwjnr;
}
public String getDzwjdx() {
return dzwjdx;
}
public void setDzwjdx(String dzwjdx) {
this.dzwjdx = dzwjdx;
}
public String getDzwjwz() {
return dzwjwz;
}
public void setDzwjwz(String dzwjwz) {
this.dzwjwz = dzwjwz;
}
public Date getDzwjcjsjRqsj() {
return dzwjcjsjRqsj;
}
public void setDzwjcjsjRqsj(Date dzwjcjsjRqsj) {
this.dzwjcjsjRqsj = dzwjcjsjRqsj;
}
public String getZpbw() {
return zpbw;
}
public void setZpbw(String zpbw) {
this.zpbw = zpbw;
}
public String getLrr() {
return lrr;
}
public void setLrr(String lrr) {
this.lrr = lrr;
}
public String getLrdwdm() {
return lrdwdm;
}
public void setLrdwdm(String lrdwdm) {
this.lrdwdm = lrdwdm;
}
public String getLrdwmc() {
return lrdwmc;
}
public void setLrdwmc(String lrdwmc) {
this.lrdwmc = lrdwmc;
}
public Date getLrsj() {
return lrsj;
}
public void setLrsj(Date lrsj) {
this.lrsj = lrsj;
}
public String getGxr() {
return gxr;
}
public void setGxr(String gxr) {
this.gxr = gxr;
}
public Date getGxsj() {
return gxsj;
}
public void setGxsj(Date gxsj) {
this.gxsj = gxsj;
}
public String getGxdwdm() {
return gxdwdm;
}
public void setGxdwdm(String gxdwdm) {
this.gxdwdm = gxdwdm;
}
public String getGxdwmc() {
return gxdwmc;
}
public void setGxdwmc(String gxdwmc) {
this.gxdwmc = gxdwmc;
}
@Override
public String toString() {
return "AutoTbRyZp{" +
"xxbh='" + xxbh + '\'' +
", rybh='" + rybh + '\'' +
", dzwjmc='" + dzwjmc + '\'' +
", dzwjzy='" + dzwjzy + '\'' +
", dzwjgs='" + dzwjgs + '\'' +
", dzwjnr=" + Arrays.toString(dzwjnr) +
", dzwjdx='" + dzwjdx + '\'' +
", dzwjwz='" + dzwjwz + '\'' +
", dzwjcjsjRqsj=" + dzwjcjsjRqsj +
", zpbw='" + zpbw + '\'' +
", lrr='" + lrr + '\'' +
", lrdwdm='" + lrdwdm + '\'' +
", lrdwmc='" + lrdwmc + '\'' +
", lrsj=" + lrsj +
", gxr='" + gxr + '\'' +
", gxsj=" + gxsj +
", gxdwdm='" + gxdwdm + '\'' +
", gxdwmc='" + gxdwmc + '\'' +
'}';
}
}
\ No newline at end of file
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 abel533@gmail.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.founder.model;
import javax.persistence.*;
/**
* 基础信息
*
* @author liuzh
* @since 2016-01-31 21:42
*/
public class BaseEntity {
@Id
@Column(name = "Id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Transient
private Integer page = 1;
@Transient
private Integer rows = 10;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getPage() {
return page;
}
public void setPage(Integer page) {
this.page = page;
}
public Integer getRows() {
return rows;
}
public void setRows(Integer rows) {
this.rows = rows;
}
}
package com.founder.model;
import java.io.Serializable;
public class Param implements Serializable {
private String paramid;
private String paramvalue;
public String getParamid() {
return paramid;
}
public void setParamid(String paramid) {
this.paramid = paramid;
}
public String getParamvalue() {
return paramvalue;
}
public void setParamvalue(String paramvalue) {
this.paramvalue = paramvalue;
}
}
package com.founder.model;
import com.alibaba.fastjson.annotation.JSONField;
import com.founder.utils.Utils;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;
import java.util.Date;
/**
* Created by libin on 2018/4/12.
* 系统用户
*/
public class Sequence {
private String id;
private String maxSeq;
private String tableName;
private String orgCode;
private String curDate;
private String remark;
private boolean hasUnitCode = true;
private String prefix = null;
private String loopDateMask = "yyyy";
private String dateMask = "yyyyMM";
private int seqLength = 5;
private String startCode;
private String type;
private String lrr;
private Date lrsj;
private String gxr;
private Date gxsj;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getMaxSeq() {
return maxSeq;
}
public void setMaxSeq(String maxSeq) {
this.maxSeq = maxSeq;
}
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getOrgCode() {
return orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
public String getCurDate() {
return curDate;
}
public void setCurDate(String curDate) {
this.curDate = curDate;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public boolean isHasUnitCode() {
return hasUnitCode;
}
public void setHasUnitCode(boolean hasUnitCode) {
this.hasUnitCode = hasUnitCode;
}
public String getPrefix() {
return prefix;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
public String getLoopDateMask() {
return loopDateMask;
}
public void setLoopDateMask(String loopDateMask) {
this.loopDateMask = loopDateMask;
}
public String getDateMask() {
return dateMask;
}
public void setDateMask(String dateMask) {
this.dateMask = dateMask;
}
public int getSeqLength() {
return seqLength;
}
public void setSeqLength(int seqLength) {
this.seqLength = seqLength;
}
public String getStartCode() {
return startCode;
}
public void setStartCode(String startCode) {
this.startCode = startCode;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getLrr() {
return lrr;
}
public void setLrr(String lrr) {
this.lrr = lrr;
}
public Date getLrsj() {
return lrsj;
}
public void setLrsj(Date lrsj) {
this.lrsj = lrsj;
}
public String getGxr() {
return gxr;
}
public void setGxr(String gxr) {
this.gxr = gxr;
}
public Date getGxsj() {
return gxsj;
}
public void setGxsj(Date gxsj) {
this.gxsj = gxsj;
}
@Override
public String toString() {
return "Sequence{" +
"id='" + id + '\'' +
", maxSeq='" + maxSeq + '\'' +
", tableName='" + tableName + '\'' +
", orgCode='" + orgCode + '\'' +
", curDate='" + curDate + '\'' +
", remark='" + remark + '\'' +
", hasUnitCode=" + hasUnitCode +
", prefix='" + prefix + '\'' +
", loopDateMask='" + loopDateMask + '\'' +
", dateMask='" + dateMask + '\'' +
", seqLength=" + seqLength +
", startCode='" + startCode + '\'' +
", type='" + type + '\'' +
", lrr='" + lrr + '\'' +
", lrsj=" + lrsj +
", gxr='" + gxr + '\'' +
", gxsj=" + gxsj +
'}';
}
}
package com.founder.model;
public class ZTreeNode {
private Object ids;
private String name;
private String codeType;
private String text;
private String pId;
private String id;
private String yycj1;
private String yycj2;
private String yycj3;
private String yycj4;
private String yycj5;
private String yycj6;
private String yycj7;
private String yycj8;
private String yycj9;
private Boolean isParent=false;
private Boolean open=false;
private String parentFlag = "";
private String startcode;
private String endcode;
private String description;
private String state;
public ZTreeNode(Object ids, String text, String pId, String description){
this.ids=ids;
this.text=text;
this.pId=pId;
this.description=description;
}
public ZTreeNode(Object ids, String text, String pId, boolean open, boolean isParent, String yycj1, String yycj2, String yycj3, String yycj4, String yycj5, String yycj6, String yycj7, String yycj8, String yycj9, String description){
this.ids=ids;
this.text=text;
this.pId=pId;
this.open=open;
this.isParent=isParent;
this.yycj1=yycj1;
this.yycj2=yycj2;
this.yycj3=yycj3;
this.yycj4=yycj4;
this.yycj5=yycj5;
this.yycj6=yycj6;
this.yycj7=yycj7;
this.yycj8=yycj8;
this.yycj9=yycj9;
this.description=description;
}
public ZTreeNode(){}
public Object getIds() {
return ids;
}
public void setIds(Object ids) {
this.ids = ids;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getpId() {
return pId;
}
public void setpId(String pId) {
this.pId = pId;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public boolean isIsParent() {
if("true".equals(this.getParentFlag())){
this.isParent = true;
}
return isParent;
}
public void setIsParent(boolean isParent) {
if(this.getParentFlag().equals("true")){
this.isParent = true;
}
}
public boolean isOpen() {
return open;
}
public void setOpen(boolean open) {
this.open = open;
}
public String getParentFlag() {
return parentFlag;
}
public void setParentFlag(String parentFlag) {
this.parentFlag = parentFlag;
}
public String getYycj1() {
return yycj1;
}
public void setYycj1(String yycj1) {
this.yycj1 = yycj1;
}
public String getYycj2() {
return yycj2;
}
public void setYycj2(String yycj2) {
this.yycj2 = yycj2;
}
public String getYycj3() {
return yycj3;
}
public void setYycj3(String yycj3) {
this.yycj3 = yycj3;
}
public String getYycj4() {
return yycj4;
}
public void setYycj4(String yycj4) {
this.yycj4 = yycj4;
}
public String getStartcode() {
return startcode;
}
public void setStartcode(String startcode) {
this.startcode = startcode;
}
public String getEndcode() {
return endcode;
}
public void setEndcode(String endcode) {
this.endcode = endcode;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getYycj5() {
return yycj5;
}
public void setYycj5(String yycj5) {
this.yycj5 = yycj5;
}
public String getYycj6() {
return yycj6;
}
public void setYycj6(String yycj6) {
this.yycj6 = yycj6;
}
public String getYycj7() {
return yycj7;
}
public void setYycj7(String yycj7) {
this.yycj7 = yycj7;
}
public String getYycj8() {
return yycj8;
}
public void setYycj8(String yycj8) {
this.yycj8 = yycj8;
}
public String getYycj9() {
return yycj9;
}
public void setYycj9(String yycj9) {
this.yycj9 = yycj9;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getCodeType() {
return codeType;
}
public void setCodeType(String codeType) {
this.codeType = codeType;
}
@Override
public String toString() {
return "ZTreeNode{" +
"ids=" + ids +
", name='" + name + '\'' +
", codeType='" + codeType + '\'' +
", text='" + text + '\'' +
", pId='" + pId + '\'' +
", id='" + id + '\'' +
", yycj1='" + yycj1 + '\'' +
", yycj2='" + yycj2 + '\'' +
", yycj3='" + yycj3 + '\'' +
", yycj4='" + yycj4 + '\'' +
", yycj5='" + yycj5 + '\'' +
", yycj6='" + yycj6 + '\'' +
", yycj7='" + yycj7 + '\'' +
", yycj8='" + yycj8 + '\'' +
", yycj9='" + yycj9 + '\'' +
", isParent=" + isParent +
", open=" + open +
", parentFlag='" + parentFlag + '\'' +
", startcode='" + startcode + '\'' +
", endcode='" + endcode + '\'' +
", description='" + description + '\'' +
", state='" + state + '\'' +
'}';
}
}
package com.founder.model.amsis;
import java.io.Serializable;
public class Person implements Serializable {
private String pid;
private String barcode;
private String fingerbarcode;
private String pfingerbarcode;
private String palmbarcode;
private String dbid;
private String portbarcode;
private String pctbarcode;
private String state; //��TPQUEUE
private String datatype;//��TPQUEUE
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getFingerbarcode() {
return fingerbarcode;
}
public void setFingerbarcode(String fingerbarcode) {
this.fingerbarcode = fingerbarcode;
}
public String getPfingerbarcode() {
return pfingerbarcode;
}
public void setPfingerbarcode(String pfingerbarcode) {
this.pfingerbarcode = pfingerbarcode;
}
public String getPalmbarcode() {
return palmbarcode;
}
public void setPalmbarcode(String palmbarcode) {
this.palmbarcode = palmbarcode;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getDatatype() {
return datatype;
}
public void setDatatype(String datatype) {
this.datatype = datatype;
}
public String getDbid() {
return dbid;
}
public void setDbid(String dbid) {
this.dbid = dbid;
}
public String getPortbarcode() {
return portbarcode;
}
public void setPortbarcode(String portbarcode) {
this.portbarcode = portbarcode;
}
public String getPctbarcode() {
return pctbarcode;
}
public void setPctbarcode(String pctbarcode) {
this.pctbarcode = pctbarcode;
}
}
package com.founder.model.amsis;
import java.io.Serializable;
public class Plainimg implements Serializable {
private String dbid;//分库号
private String pid;
private String barcode;//条码号
private String pfpid;
private String imgtype;
private String imgdenstr;
private String pfpwidth;
private String pfpheight;
private String pfpsize;
private byte[] pfp1;//右拇指
private byte[] pfp2;//右食指
private byte[] pfp3;//右中指
private byte[] pfp4;//右无名指
private byte[] pfp5;//右小指
private byte[] pfp6;//左拇指
private byte[] pfp7;//左食指
private byte[] pfp8;//左中指
private byte[] pfp9;//左无名指
private byte[] pfp10;//左小指
private String inputunitname;//录入单位名称
private String inputunitcode;//录入单位代码
private String inputtime;//录入时间
private String inputpsn;//录入人
private String edittime;//修改时间
private String ifdel;//是否删除
private String piccount;//原始图片个数
public String getDbid() {
return dbid;
}
public void setDbid(String dbid) {
this.dbid = dbid;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getPfpid() {
return pfpid;
}
public void setPfpid(String pfpid) {
this.pfpid = pfpid;
}
public String getImgtype() {
return imgtype;
}
public void setImgtype(String imgtype) {
this.imgtype = imgtype;
}
public String getImgdenstr() {
return imgdenstr;
}
public void setImgdenstr(String imgdenstr) {
this.imgdenstr = imgdenstr;
}
public String getPfpwidth() {
return pfpwidth;
}
public void setPfpwidth(String pfpwidth) {
this.pfpwidth = pfpwidth;
}
public String getPfpheight() {
return pfpheight;
}
public void setPfpheight(String pfpheight) {
this.pfpheight = pfpheight;
}
public String getPfpsize() {
return pfpsize;
}
public void setPfpsize(String pfpsize) {
this.pfpsize = pfpsize;
}
public byte[] getPfp1() {
return pfp1;
}
public void setPfp1(byte[] pfp1) {
this.pfp1 = pfp1;
}
public byte[] getPfp2() {
return pfp2;
}
public void setPfp2(byte[] pfp2) {
this.pfp2 = pfp2;
}
public byte[] getPfp3() {
return pfp3;
}
public void setPfp3(byte[] pfp3) {
this.pfp3 = pfp3;
}
public byte[] getPfp4() {
return pfp4;
}
public void setPfp4(byte[] pfp4) {
this.pfp4 = pfp4;
}
public byte[] getPfp5() {
return pfp5;
}
public void setPfp5(byte[] pfp5) {
this.pfp5 = pfp5;
}
public byte[] getPfp6() {
return pfp6;
}
public void setPfp6(byte[] pfp6) {
this.pfp6 = pfp6;
}
public byte[] getPfp7() {
return pfp7;
}
public void setPfp7(byte[] pfp7) {
this.pfp7 = pfp7;
}
public byte[] getPfp8() {
return pfp8;
}
public void setPfp8(byte[] pfp8) {
this.pfp8 = pfp8;
}
public byte[] getPfp9() {
return pfp9;
}
public void setPfp9(byte[] pfp9) {
this.pfp9 = pfp9;
}
public byte[] getPfp10() {
return pfp10;
}
public void setPfp10(byte[] pfp10) {
this.pfp10 = pfp10;
}
public String getInputunitname() {
return inputunitname;
}
public void setInputunitname(String inputunitname) {
this.inputunitname = inputunitname;
}
public String getInputunitcode() {
return inputunitcode;
}
public void setInputunitcode(String inputunitcode) {
this.inputunitcode = inputunitcode;
}
public String getInputtime() {
return inputtime;
}
public void setInputtime(String inputtime) {
this.inputtime = inputtime;
}
public String getInputpsn() {
return inputpsn;
}
public void setInputpsn(String inputpsn) {
this.inputpsn = inputpsn;
}
public String getEdittime() {
return edittime;
}
public void setEdittime(String edittime) {
this.edittime = edittime;
}
public String getIfdel() {
return ifdel;
}
public void setIfdel(String ifdel) {
this.ifdel = ifdel;
}
public String getPiccount() {
return piccount;
}
public void setPiccount(String piccount) {
this.piccount = piccount;
}
}
package com.founder.model.amsis;
import java.io.Serializable;
public class Rollimg implements Serializable {
private String dbid;//分库号
private String pid;
private String barcode;//条码号
private String rfpid;
private String imgtype;
private String imgdenstr;
private String rfpwidth;
private String rfpheight;
private String rfpsize;
private byte[] rfp1;//右拇指
private byte[] rfp2;//右食指
private byte[] rfp3;//右中指
private byte[] rfp4;//右无名指
private byte[] rfp5;//右小指
private byte[] rfp6;//左拇指
private byte[] rfp7;//左食指
private byte[] rfp8;//左中指
private byte[] rfp9;//左无名指
private byte[] rfp10;//左小指
private String inputunitname;//录入单位名称
private String inputunitcode;//录入单位代码
private String inputtime;//录入时间
private String inputpsn;//录入人
private String edittime;//修改时间
private String ifdel;//是否删除
private String piccount;//原始图片个数
public String getDbid() {
return dbid;
}
public void setDbid(String dbid) {
this.dbid = dbid;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getRfpid() {
return rfpid;
}
public void setRfpid(String rfpid) {
this.rfpid = rfpid;
}
public String getImgtype() {
return imgtype;
}
public void setImgtype(String imgtype) {
this.imgtype = imgtype;
}
public String getImgdenstr() {
return imgdenstr;
}
public void setImgdenstr(String imgdenstr) {
this.imgdenstr = imgdenstr;
}
public String getRfpwidth() {
return rfpwidth;
}
public void setRfpwidth(String rfpwidth) {
this.rfpwidth = rfpwidth;
}
public String getRfpheight() {
return rfpheight;
}
public void setRfpheight(String rfpheight) {
this.rfpheight = rfpheight;
}
public String getRfpsize() {
return rfpsize;
}
public void setRfpsize(String rfpsize) {
this.rfpsize = rfpsize;
}
public byte[] getRfp1() {
return rfp1;
}
public void setRfp1(byte[] rfp1) {
this.rfp1 = rfp1;
}
public byte[] getRfp2() {
return rfp2;
}
public void setRfp2(byte[] rfp2) {
this.rfp2 = rfp2;
}
public byte[] getRfp3() {
return rfp3;
}
public void setRfp3(byte[] rfp3) {
this.rfp3 = rfp3;
}
public byte[] getRfp4() {
return rfp4;
}
public void setRfp4(byte[] rfp4) {
this.rfp4 = rfp4;
}
public byte[] getRfp5() {
return rfp5;
}
public void setRfp5(byte[] rfp5) {
this.rfp5 = rfp5;
}
public byte[] getRfp6() {
return rfp6;
}
public void setRfp6(byte[] rfp6) {
this.rfp6 = rfp6;
}
public byte[] getRfp7() {
return rfp7;
}
public void setRfp7(byte[] rfp7) {
this.rfp7 = rfp7;
}
public byte[] getRfp8() {
return rfp8;
}
public void setRfp8(byte[] rfp8) {
this.rfp8 = rfp8;
}
public byte[] getRfp9() {
return rfp9;
}
public void setRfp9(byte[] rfp9) {
this.rfp9 = rfp9;
}
public byte[] getRfp10() {
return rfp10;
}
public void setRfp10(byte[] rfp10) {
this.rfp10 = rfp10;
}
public String getInputunitname() {
return inputunitname;
}
public void setInputunitname(String inputunitname) {
this.inputunitname = inputunitname;
}
public String getInputunitcode() {
return inputunitcode;
}
public void setInputunitcode(String inputunitcode) {
this.inputunitcode = inputunitcode;
}
public String getInputtime() {
return inputtime;
}
public void setInputtime(String inputtime) {
this.inputtime = inputtime;
}
public String getInputpsn() {
return inputpsn;
}
public void setInputpsn(String inputpsn) {
this.inputpsn = inputpsn;
}
public String getEdittime() {
return edittime;
}
public void setEdittime(String edittime) {
this.edittime = edittime;
}
public String getIfdel() {
return ifdel;
}
public void setIfdel(String ifdel) {
this.ifdel = ifdel;
}
public String getPiccount() {
return piccount;
}
public void setPiccount(String piccount) {
this.piccount = piccount;
}
}
package com.founder.model.amsis;
import java.io.Serializable;
public class Tppcrp implements Serializable {
private static final long serialVersionUID = 1L;
private String dbid;
private String barcode;
private String fingernum;
private String pid;
private String col;
private String line;
private String resolution;
private String type;
private String imgsize;
private String compressmethod;
private byte[] cprbuf;
public String getDbid() {
return dbid;
}
public void setDbid(String dbid) {
this.dbid = dbid;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getFingernum() {
return fingernum;
}
public void setFingernum(String fingernum) {
this.fingernum = fingernum;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getCol() {
return col;
}
public void setCol(String col) {
this.col = col;
}
public String getLine() {
return line;
}
public void setLine(String line) {
this.line = line;
}
public String getResolution() {
return resolution;
}
public void setResolution(String resolution) {
this.resolution = resolution;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getImgsize() {
return imgsize;
}
public void setImgsize(String imgsize) {
this.imgsize = imgsize;
}
public String getCompressmethod() {
return compressmethod;
}
public void setCompressmethod(String compressmethod) {
this.compressmethod = compressmethod;
}
public byte[] getCprbuf() {
return cprbuf;
}
public void setCprbuf(byte[] cprbuf) {
this.cprbuf = cprbuf;
}
}
package com.founder.model.amsis;
import java.io.Serializable;
public class Tpportcpr implements Serializable {
private static final long serialVersionUID = 1L;
private String dbid;
private String barcode;
private String portnum;
private String type;
private String pid;
private String col;
private String line;
private String resolution;
private String imgsize;
private String compressmethod;
private String bitperpixel;
private String imgele;
private byte[] cprbuf;
public String getDbid() {
return dbid;
}
public void setDbid(String dbid) {
this.dbid = dbid;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getPortnum() {
return portnum;
}
public void setPortnum(String portnum) {
this.portnum = portnum;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getCol() {
return col;
}
public void setCol(String col) {
this.col = col;
}
public String getLine() {
return line;
}
public void setLine(String line) {
this.line = line;
}
public String getResolution() {
return resolution;
}
public void setResolution(String resolution) {
this.resolution = resolution;
}
public String getImgsize() {
return imgsize;
}
public void setImgsize(String imgsize) {
this.imgsize = imgsize;
}
public String getCompressmethod() {
return compressmethod;
}
public void setCompressmethod(String compressmethod) {
this.compressmethod = compressmethod;
}
public String getBitperpixel() {
return bitperpixel;
}
public void setBitperpixel(String bitperpixel) {
this.bitperpixel = bitperpixel;
}
public String getImgele() {
return imgele;
}
public void setImgele(String imgele) {
this.imgele = imgele;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
public byte[] getCprbuf() {
return cprbuf;
}
public void setCprbuf(byte[] cprbuf) {
this.cprbuf = cprbuf;
}
}
package com.founder.module.redis.service;
import com.founder.model.ZTreeNode;
import java.util.List;
import java.util.Map;
public interface IDicItemService {
/**
* 根据条件查询代码
* @param code_type
* @param id
* @param yycj
* @param unitcode
* @return
*/
public List<ZTreeNode> getZtreeNode(String code_type, String id, String yycj, String unitcode);
public List<ZTreeNode> getZtreeUnitNode(String code_type, String id, String yycj, String unitcode);
public List<ZTreeNode> queryTypeCode(String code_type, String id, String yycj, String name);
/**
* 根据条件查询代码
* @param code_type
* @param id 父级id
* @param yycj 应用场景
* @param unitcode 单位
* @param name 搜索条件
* @return
*/
public List<ZTreeNode> getZtreeNodeByName(String code_type, String id, String yycj, String unitcode, String name);
/**
* 根据选择的案件类别代码查询案件性质代码
* @param sql
* @return
*/
public List<ZTreeNode> getAjxzJson(String sql);
/**
* 根据选择的主案类别代码查询类案类别代码
* @param pid6
* @return
*/
public List<ZTreeNode> getAjxzlbJson(String pid6);
/**
* 根据选择的类案类别代码查询次案类别代码
* @param codeVal
* @return
*/
public List<ZTreeNode> getXalbdmbcmsJson(String codeVal);
public String queryNameByCode(String codeId, String codeType);
public String getDicName(String groupid, String code);
}
package com.founder.module.redis.service.impl;
import com.alibaba.fastjson.JSON;
import com.founder.model.User;
import com.founder.model.ZTreeNode;
import com.founder.dao.IDictitemDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import redis.clients.jedis.exceptions.JedisConnectionException;
import java.util.List;
import java.util.Set;
/**
* Created by Administrator on 2018/4/18.
*/
@Service
public class ImportCode {
@Autowired
private IDictitemDao iDictitemDao;
@Value("${ssdw}")
private String ssdw; //所属单位
@Autowired
private StringRedisTemplate redisTemplate;
public void insertIntoRedis(String type){
try{
if (null != ssdw && !"".equals(ssdw) && ssdw.length() >= 2) {
ssdw = ssdw.substring(0, 2);
}
//先删除指定key缓存,再加入缓存
String keys=ssdw+":*";
if(null!=type && "null"!=type){
keys=ssdw+":"+type+"*";
}
Set<String> dictitemKeys = redisTemplate.keys(keys);
redisTemplate.delete(dictitemKeys);
List<ZTreeNode> zTreeNodeList = iDictitemDao.findCodeAllByType(type);
for(ZTreeNode node:zTreeNodeList){
String nodeStr= JSON.toJSONString(node);
String key = ssdw+":"+node.getCodeType()+":"+node.getpId()+":"+node.getId()+":"+node.getName();
redisTemplate.opsForValue().set(key,nodeStr);
}
type = (null==type || "null"==type)?"":type;
System.out.println("字典"+type+"成功加入缓存---------------------------------------------");
}catch(JedisConnectionException jce){
System.out.println("redis连接报错");
}catch (Exception e) {
e.printStackTrace();
}
}
public void insertUserIntoRedis(){
try{
if (null != ssdw && !"".equals(ssdw) && ssdw.length() >= 2) {
ssdw = ssdw.substring(0, 2);
}
//先删除指定key缓存,再加入缓存
Set<String> dictitemKeys = redisTemplate.keys("user_"+ssdw+":*");
redisTemplate.delete(dictitemKeys);
List<User> userList = iDictitemDao.selectAllUser();
for(User user:userList){
String nodeStr= JSON.toJSONString(user);
String key = "user_"+ssdw+":"+user.getUnitcode()+":"+user.getTrueName()+":"+user.getPolicemanid();
redisTemplate.opsForValue().set(key,nodeStr);
}
System.out.println("用户信息成功加入缓存---------------------------------------------");
}catch(JedisConnectionException jce){
System.out.println("redis连接报错");
}catch (Exception e) {
e.printStackTrace();
}
}
}
package com.founder.module.redis.utils;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.exceptions.JedisConnectionException;
public final class RedisUtil {
private static RedisUtil instance;
private RedisUtil(){}
public Jedis jedis;
public synchronized static RedisUtil getInstance() {
if (instance == null) {
synchronized (RedisUtil.class) {
if (instance == null) {
instance = new RedisUtil();
}
}
}
return instance;
}
public Jedis getConnection(String host,String port,String pass) {
try{
int port1 = Integer.parseInt(port);
jedis = new Jedis(host, port1);
if(null!=pass&&!"".equals(pass)){
jedis.auth(pass);
}
}catch(JedisConnectionException jce){
System.out.println("redis连接报错");
}catch (Exception e) {
e.printStackTrace();
}
return jedis;
}
}
\ No newline at end of file
package com.founder.service;
import com.founder.model.AfisQualityCk;
import com.founder.utils.EasyUIPage;
public interface AfisQualityService extends IService<AfisQualityCk> {
public AfisQualityCk getAfisQuality(String szzwbh);
public EasyUIPage queryZljcPage(EasyUIPage page, AfisQualityCk entity);
/**
* 指纹质量检查保存函数
* @param afisQualityCk
* @return
*/
public boolean updateAfisQualityCk(AfisQualityCk afisQualityCk);
/**
* 撤销结果
* @param zwbh
* @return
*/
public boolean chexiao(String zwbh);
/**
* 高科一体化采集获取人员参数
* @param map
* @return
public String getXmlPersonInfo(Map<String,Object> map);
*/
/**
* 指纹采集完成后,更新指纹相关信息
* @param afisQualityCk
* @return
public boolean updateAfisQualityCkZwxx(AfisQualityCk afisQualityCk);
*/
}
package com.founder.service;
import com.founder.model.AutoTbStRy;
import com.founder.model.amsis.Plainimg;
public interface AmsisPlainImgService extends IService<AutoTbStRy> {
public Plainimg getAmsisPlainImgService(String szzwbh);
}
package com.founder.service;
import com.founder.model.AutoTbStRy;
import com.founder.model.amsis.Rollimg;
import com.founder.service.impl.BaseService;
public interface AmsisRollImgService extends IService<AutoTbStRy> {
public Rollimg getAmsisImgService(String szzwbh);
}
package com.founder.service;
import com.founder.model.AutoTbStRy;
import com.founder.utils.EasyUIPage;
import java.util.List;
import java.util.Map;
public interface AutoTbXwRycjService extends IService<AutoTbStRy> {
public EasyUIPage queryRyxxPage(EasyUIPage page, AutoTbStRy entity);
public Object fzth(String asjxgrybh);
public boolean editRyxx(AutoTbStRy entity);
public boolean deleteRyxx(String asjxgrybh);
public AutoTbStRy getRyxxByRybh(String asjxgrybh);
public AutoTbStRy getRyxxBySzzwbh(String szzwbh);
public List<AutoTbStRy> getRyxxByRyxx(AutoTbStRy entity);
public boolean insertRyxx(AutoTbStRy entity);
public boolean updateRyxx(AutoTbStRy entity);
public String getAjaxGettoAfisStr( Map<String, Object> map);
public String upzw(String rybh,String zwbh,String results,String cjfs,String zwcjr,String zwcjdwdm);
}
package com.founder.service;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public interface IService<T> {
/*Long getSequence(@Param("seqName") String seqName);*/
List<T> selectAll();
T selectByKey(Object key);
int save(T entity);
int delete(Object key);
int batchDelete(List<String> list, String property, Class<T> clazz);
int updateAll(T entity);
int updateNotNull(T entity);
List<T> selectByExample(Object example);
}
\ No newline at end of file
package com.founder.service;
import com.founder.model.AutoTbRyZp;
import com.founder.model.Sequence;
import com.founder.model.User;
import org.springframework.stereotype.Service;
/**
* Created by yangliang on 2018/7/9
*/
public interface ITbRyZpService extends IService<AutoTbRyZp>{
public AutoTbRyZp getRyzpById(String zpxxbh);
public boolean updateRyzp(AutoTbRyZp ryzp);
public boolean insertRyzp(AutoTbRyZp ryzp);
}
package com.founder.service;
import com.founder.model.Sequence;
import com.founder.model.User;
import org.springframework.stereotype.Service;
/**
* Created by yangliang on 2018/7/9
*/
@Service
public interface SequenceService extends IService<Sequence>{
public String getNextSerialNo(String tableName, String orgCode, User optUser);
}
package com.founder.service;
import com.founder.model.AutoTbStRy;
import org.springframework.stereotype.Service;
/**
* Created by libin on 2018/4/13.
*/
@Service
public interface TbStRyService extends IService<AutoTbStRy>{
}
package com.founder.service.impl;
import com.founder.dao.AfisQualityCkDao;
import com.founder.model.AfisQualityCk;
import com.founder.service.AfisQualityService;
import com.founder.utils.EasyUIPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class AfisQualityServiceImpl extends BaseService<AfisQualityCk> implements AfisQualityService {
@Autowired
private AfisQualityCkDao mapper;
@Override
public EasyUIPage queryZljcPage(EasyUIPage page, AfisQualityCk entity) {
Map<String, Object> map = new HashMap<>();
map.put("begin", page.getBegin());
map.put("end", page.getEnd());
String sort = page.getSort();
String order = page.getOrder();
if (StringUtils.isEmpty(sort)) { // 默认排序
sort = "RCjsj";
order = "desc";
}
map.put("sort", sort);
map.put("order", order);
map.put("entity", entity);
page.setTotal(mapper.queryZljcPageCount(map));
if (page.getTotal() == 0) {
page.setRows(new ArrayList<>());
} else {
List<AfisQualityCk> afisQualityCks = mapper.queryZljcPageList(map);
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
for (int i=0;i<afisQualityCks.size();i++) {
if(afisQualityCks.get(i).getRCjsj()!=null&&!"".equals(afisQualityCks.get(i).getRCjsj())){
afisQualityCks.get(i).setRCjsjStr(df.format(afisQualityCks.get(i).getRCjsj()));
}else{
afisQualityCks.get(i).setRCjsjStr("");
}
if(afisQualityCks.get(i).getJcsj()!=null&&!"".equals(afisQualityCks.get(i).getJcsj())){
afisQualityCks.get(i).setJcsjStr(df.format(afisQualityCks.get(i).getJcsj()));
}else{
afisQualityCks.get(i).setJcsjStr("");
}
}
page.setRows(mapper.queryZljcPageList(map));
}
return page;
}
@Override
public AfisQualityCk getAfisQuality(String szzwbh) {
AfisQualityCk xyrC=new AfisQualityCk();
Map<String, Object> map = new HashMap<>();
map.put("szzwbh", szzwbh);
List<AfisQualityCk> xyrCs = mapper.getAfisQuality(map);
if(xyrCs!=null&&xyrCs.size()>0){
xyrC = xyrCs.get(0);
}
return xyrC;
}
@Override
public boolean updateAfisQualityCk(AfisQualityCk afisQualityCk) {
Map<String, Object> map = new HashMap<>();
map.put("entity", afisQualityCk);
boolean bool = mapper.updateAfisQualityCk(map);
return bool;
}
@Override
public boolean chexiao(String zwbh) {
Map<String, Object> map = new HashMap<>();
map.put("zwbh", zwbh);
boolean bool = mapper.updateChexiao(map);
return bool;
}
}
package com.founder.service.impl;
import com.founder.model.AutoTbStRy;
import com.founder.model.amsis.Plainimg;
import com.founder.service.AmsisPlainImgService;
import com.founder.amsisDao.amsisDao;
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 AmsisPlainImgServiceImpl extends BaseService<AutoTbStRy> implements AmsisPlainImgService {
@Autowired
private amsisDao mapper;
@Override
public Plainimg getAmsisPlainImgService(String szzwbh) {
Plainimg xyrC=new Plainimg();
Map<String, Object> map = new HashMap<>();
map.put("szzwbh", szzwbh);
List<Plainimg> xyrCs = mapper.getPlainimgByBarcode(map);
if(xyrCs!=null&&xyrCs.size()>0){
xyrC = xyrCs.get(0);
}
return xyrC;
}
}
package com.founder.service.impl;
import com.founder.model.AutoTbStRy;
import com.founder.model.amsis.Rollimg;
import com.founder.service.AmsisRollImgService;
import com.founder.amsisDao.amsisDao;
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 AmsisRollImgServiceImpl extends BaseService<AutoTbStRy> implements AmsisRollImgService {
@Autowired
private amsisDao mapper;
@Override
public Rollimg getAmsisImgService(String szzwbh) {
Rollimg xyrC=new Rollimg();
Map<String, Object> map = new HashMap<>();
map.put("szzwbh", szzwbh);
List<Rollimg> xyrCs = mapper.getRollimgByBarcode(map);
if(xyrCs!=null&&xyrCs.size()>0){
xyrC = xyrCs.get(0);
}
return xyrC;
}
}
package com.founder.service.impl;
import com.founder.dao.TbXwRycjDao;
import com.founder.model.AutoTbStRy;
import com.founder.service.AutoTbXwRycjService;
import com.founder.utils.EasyUIPage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.util.*;
import static jdk.nashorn.internal.runtime.regexp.joni.Config.log;
@Service
public class AutoTbXwRycjServiceImpl extends BaseService<AutoTbStRy> implements AutoTbXwRycjService {
private Logger log= LoggerFactory.getLogger(this.getClass());
@Autowired
private TbXwRycjDao mapper;
@Override
public EasyUIPage queryRyxxPage(EasyUIPage page, AutoTbStRy entity) {
Map<String, Object> map = new HashMap<>();
String djdw = entity.getLrdwdm();
if(djdw!=null&&djdw!=""){
if (djdw.substring(2, 12).equals("0000000000")) {//省
entity.setLrdwdm(djdw.substring(0,2));
} else if (djdw.substring(4, 12).equals("00000000")) {//市
entity.setLrdwdm(djdw.substring(0,4));
}else if(djdw.substring(6, 12).equals("000000")){ //县
entity.setLrdwdm(djdw.substring(0,6));
}else if(djdw.substring(8, 12).equals("0000")){ //所
entity.setLrdwdm(djdw.substring(0,8));
}
}
map.put("begin", page.getBegin());
map.put("end", page.getEnd());
String sort = page.getSort();
String order = page.getOrder();
if (StringUtils.isEmpty(sort)) { // 默认排序
sort = "LRSJ";
order = "desc";
}
map.put("sort", sort);
map.put("order", order);
map.put("entity", entity);
page.setTotal(mapper.queryPageCount(map));
if (page.getTotal() == 0) {
page.setRows(new ArrayList<>());
} else {
page.setRows(mapper.queryPageList(map));
}
return page;
}
@Override
public Object fzth(String asjxgrybh) {
//先找出嫌疑人的同案人员
List<String> asjbhs=new ArrayList<>();
List<AutoTbStRy> xyrB=new ArrayList<AutoTbStRy>();
//xyrB=queryTaryByAsjbhs(asjbhs);
//嫌疑人B的同案人员嫌疑人C(排除A)
List<AutoTbStRy> xyrCs=new ArrayList<AutoTbStRy>();
List<AutoTbStRy> xyrBs=new ArrayList<AutoTbStRy>();
List<String> asjbhsB=new ArrayList<>();
for(int i=0;i<xyrB.size();i++){
AutoTbStRy xyrC=new AutoTbStRy();
String asjbhB=xyrB.get(i).getAsjbh();
// String asjrybhB=xyrB.get(i).getAsjxgrybh();
//xyrC=queryXyrByAsjbh(asjbhB,asjrybhB,asjxgrybh);
if(xyrC!=null){
xyrCs.add(xyrC);
xyrBs.add(xyrB.get(i));
}
}
for(int i=0;i<xyrB.size();i++){
//xyrC=queryTaryByAsjbhs(asjbhsB,asjxgrybh);
}
if(xyrCs!=null&&xyrCs.size()>0){
//嫌疑人A/B/C是团伙。
}
return null;
}
@Override
public boolean editRyxx(AutoTbStRy entity){
return true;
}
@Override
public boolean deleteRyxx(String asjxgrybh){
Map<String, Object> map = new HashMap<>();
map.put("rybh", asjxgrybh);
boolean bool = mapper.deleteRyxx(map);
return bool;
}
@Override
public AutoTbStRy getRyxxByRybh(String asjxgrybh){
AutoTbStRy xyrC=new AutoTbStRy();
Map<String, Object> map = new HashMap<>();
map.put("rybh", asjxgrybh);
List<AutoTbStRy> xyrCs = mapper.getRyxxByRybh(map);
if(xyrCs!=null&&xyrCs.size()>0){
xyrC = xyrCs.get(0);
}
return xyrC;
}
@Override
public AutoTbStRy getRyxxBySzzwbh(String szzwbh){
AutoTbStRy xyrC=new AutoTbStRy();
Map<String, Object> map = new HashMap<>();
map.put("szzwbh", szzwbh);
List<AutoTbStRy> xyrCs = mapper.getRyxxBySzzwbh(map);
if(xyrCs!=null&&xyrCs.size()>0){
xyrC = xyrCs.get(0);
}
return xyrC;
}
@Override
public List<AutoTbStRy> getRyxxByRyxx(AutoTbStRy entity){
Map<String, Object> map = new HashMap<>();
String djdw = entity.getLrdwdm();
if(djdw!=null&&djdw!=""){
if (djdw.substring(2, 12).equals("0000000000")) {//省
entity.setLrdwdm(djdw.substring(0,2));
} else if (djdw.substring(4, 12).equals("00000000")) {//市
entity.setLrdwdm(djdw.substring(0,4));
}else if(djdw.substring(6, 12).equals("000000")){ //县
entity.setLrdwdm(djdw.substring(0,6));
}else if(djdw.substring(8, 12).equals("0000")){ //所
entity.setLrdwdm(djdw.substring(0,8));
}
}
String lrr = entity.getLrr();
if(lrr!=null&&lrr!=""){
if (lrr.substring(2, 12).equals("0000000000")) {//省
entity.setLrr(lrr.substring(0,2));
} else if (lrr.substring(4, 12).equals("00000000")) {//市
entity.setLrr(lrr.substring(0,4));
}else if(lrr.substring(6, 12).equals("000000")){ //县
entity.setLrr(lrr.substring(0,6));
}else if(lrr.substring(8, 12).equals("0000")){ //所
entity.setLrr(lrr.substring(0,8));
}
}
map.put("entity", entity);
map.put("begin",0);
map.put("sort", "DJSJ");
map.put("order", "desc");
map.put("end",mapper.queryPageCount(map));
List<AutoTbStRy> xyrCs = mapper.queryPageList(map);
return xyrCs;
}
@Override
public boolean insertRyxx(AutoTbStRy entity){
AutoTbStRy xyrC=new AutoTbStRy();
Map<String, Object> map = new HashMap<>();
map.put("entity", entity);
boolean bool = mapper.insertRyxx(map);
return bool;
}
@Override
public boolean updateRyxx(AutoTbStRy entity){
Map<String, Object> map = new HashMap<>();
map.put("entity", entity);
boolean bool = mapper.updateRyxx(map);
return bool;
}
@Override
public String getAjaxGettoAfisStr( Map<String, Object> map){
mapper.getAjaxGettoAfisStr(map);
return map.get("RRENSTR").toString();
}
@Override
public String upzw(String rybh,String zwbh,String results,String cjfs,String zwcjr,String zwcjdwdm){
boolean bool = false;
String rzwbh="";
String zwfkxx="";
try {
AutoTbStRy ryxx = new AutoTbStRy();
if(!"".equals(results) && results.length()>76){
rzwbh = rybh.substring(1);
if(zwbh!=null&&!zwbh.equals("")){
if(!rzwbh.equals(zwbh)){
rzwbh = zwbh;
}
}
zwfkxx = results.substring(results.indexOf("A"));
} else {
rzwbh = "";
zwfkxx = "";
System.out.println("TbXwRycjController.java->指纹采集完成后指纹系统返回值为空或长度不够77->result="+results);
}
if((results.substring(23,25).equals("A1")||results.substring(23,25).equals(":A")) && results.length()>79){
String RFP = zwfkxx.substring(zwfkxx.indexOf("B"),zwfkxx.indexOf("C"));//滚动
String PFP = zwfkxx.substring(zwfkxx.indexOf("C"),zwfkxx.indexOf("D"));//平面
String PLP = zwfkxx.substring(zwfkxx.indexOf("D"),zwfkxx.indexOf("F"));//掌纹
if(RFP.indexOf("1") != -1)
RFP = rzwbh;
else
RFP = "";
if(PFP.indexOf("1") != -1)
PFP = rzwbh;
else
PFP = "";
if(PLP.indexOf("1") != -1)
PLP = rzwbh;
else
PLP = "";
ryxx.setZwfkxx(zwfkxx);
ryxx.setZwcjfs(cjfs);
ryxx.setRfp(RFP);
ryxx.setPfp(PFP);
ryxx.setPlp(PLP);
ryxx.setRybh(rybh);
ryxx.setSzzwbh(rzwbh);
ryxx.setZwcjdwdm(zwcjdwdm);
ryxx.setZwcjr(zwcjr);
ryxx.setZwcjsj(new Date());
Map<String, Object> map = new HashMap<>();
map.put("entity", ryxx);
//end update
bool = mapper.updateRyxx(map);
}
} catch (Exception e) {
log.info("人员指纹采集【保存指纹编号出错】:", e);
}
return rzwbh;
}
}
package com.founder.service.impl;
import com.founder.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;
import java.util.List;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public abstract class BaseService<T> implements IService<T> {
@Autowired
protected Mapper<T> mapper;
/*@Autowired
protected SeqenceMapper seqenceMapper;*/
public Mapper<T> getMapper() {
return mapper;
}
/*@Override
public Long getSequence(@Param("seqName") String seqName) {
return seqenceMapper.getSequence(seqName);
}
*/
@Override
public List<T> selectAll() {
return mapper.selectAll();
}
@Override
public T selectByKey(Object key) {
return mapper.selectByPrimaryKey(key);
}
@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public int save(T entity) {
return mapper.insert(entity);
}
@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public int delete(Object key) {
return mapper.deleteByPrimaryKey(key);
}
@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public int batchDelete(List<String> list, String property, Class<T> clazz) {
Example example = new Example(clazz);
example.createCriteria().andIn(property, list);
return this.mapper.deleteByExample(example);
}
@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public int updateAll(T entity) {
return mapper.updateByPrimaryKey(entity);
}
@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public int updateNotNull(T entity) {
return mapper.updateByPrimaryKeySelective(entity);
}
@Override
public List<T> selectByExample(Object example) {
return mapper.selectByExample(example);
}
}
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.
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.
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.
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.
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.
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.
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