Commit 5f641881 by e

添加指纹比中信息管理功能

parent 8d001d39
package com.founder.ajswtz.amsisAjzwDao;
import com.founder.model.amsis.TbXsjszyZwZwbzCase;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
*
* @author yangliang
* @date 2019/6/23
*/
@Component
@Mapper
public interface AmsisAjzwDao {
List<TbXsjszyZwZwbzCase> getXsjsbdxqAjzw(Map<String, Object> map);
}
package com.founder.amsisDao;
package com.founder.ajswtz.amsisDao;
import com.founder.model.amsis.Rollimg;
import com.founder.model.amsis.Plainimg;
import com.founder.model.amsis.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
//demo
/**
*
* @author yangliang
* @date 2019/6/19
*/
@Component
@Mapper
public interface amsisDao {
public interface AmsisDao {
List<TbXsjszyZwZwbzPerson> getXsjsbdxqPerson(Map<String, Object> map);
List<TbXsjszyZwZwbzCase> getXsjsbdxqCase(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> getXsjsbdxqJbxx(Map<String, Object> map);
public List<Rollimg> getRollimgByBarcode(Map<String, Object> map);
......
package com.founder.ajswtz.amsisRyzwDao;
import com.founder.model.amsis.TbXsjszyZwZwbzPerson;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
*
* @author yangliang
* @date 2019/6/23
*/
@Component
@Mapper
public interface AmsisRyzwDao {
List<TbXsjszyZwZwbzPerson> getXsjsbdxqRyzw(Map<String, Object> map);
}
package com.founder.ajswtz.service;
import com.founder.model.amsis.*;
import com.founder.service.IService;
import java.util.List;
public interface IAjswtzService {
/**
* 根据指纹比中的指纹编号查询详情信息(人员)
* @param nyzwbh
* @return
*/
List<TbXsjszyZwZwbzPerson> getXsjsbdxqPerson(String nyzwbh);
/**
* 根据指纹比中的指纹编号查询详情信息(案件)
* @param xczwbh
* @return
*/
List<TbXsjszyZwZwbzCase> getXsjsbdxqCase(String xczwbh);
/**
* 根据指纹比中的指纹编号查询详情信息
* @param nyzwbh,xczwbh
* @return
*/
List<TbXsjszyZwZwbzJbxx> getXsjsbdxqJbxx(String nyzwbh, String xczwbh);
/**
* 根据指纹比中的指纹编号查询详情信息(人员)
* @param nyzwbh,nyzw
* @return
*/
List<TbXsjszyZwZwbzPerson> getXsjsbdxqPersonZw(String nyzwbh,String nyzw);
/**
* 根据指纹比中的指纹编号查询详情信息(案件)
* @param xczwbh,zwxh
* @return
*/
List<TbXsjszyZwZwbzCase> getXsjsbdxqCaseZw(String xczwbh,String zwxh);
/**
* 根据主键编号查询指纹比中信息-
* @param xxzjbh
* @return
*/
TbXsjszyZwZwbzJbxx getZwBzxx(String xxzjbh);
}
package com.founder.ajswtz.service.impl;
import com.founder.ajswtz.amsisAjzwDao.AmsisAjzwDao;
import com.founder.ajswtz.amsisDao.AmsisDao;
import com.founder.ajswtz.amsisRyzwDao.AmsisRyzwDao;
import com.founder.ajswtz.service.IAjswtzService;
import com.founder.ajswtz.stamsisAjzwDao.StAmsisAjzwDao;
import com.founder.ajswtz.stamsisDao.StAmsisDao;
import com.founder.ajswtz.stamsisRyzwDao.StAmsisRyzwDao;
import com.founder.model.AutoTbStRy;
import com.founder.model.amsis.*;
import com.founder.service.impl.BaseService;
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 AjswtzServiceImpl implements IAjswtzService {
@Autowired
private AmsisDao amsisDao;
@Autowired
private StAmsisDao stamsisDao;
@Autowired
private AmsisRyzwDao amsisRyzwDao;
@Autowired
private AmsisAjzwDao amsisAjzwDao;
@Autowired
private StAmsisRyzwDao stamsisRyzwDao;
@Autowired
private StAmsisAjzwDao stamsisAjzwDao;
@Override
public List<TbXsjszyZwZwbzPerson> getXsjsbdxqPerson(String nyzwbh){
Map<String, Object> map = new HashMap<String, Object>();
map.put("nyzwbh", nyzwbh);
List<TbXsjszyZwZwbzPerson> list = null;
try {
list = amsisDao.getXsjsbdxqPerson(map);
if(list == null||list.size()<=0){
list = stamsisDao.getXsjsbdxqPerson(map);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询人员详情信息异常"+e);
}
return list;
}
@Override
public List<TbXsjszyZwZwbzCase> getXsjsbdxqCase(String xczwbh){
Map<String, Object> map = new HashMap<String, Object>();
map.put("xczwbh", xczwbh);
List<TbXsjszyZwZwbzCase> list = null;
try {
list = amsisDao.getXsjsbdxqCase(map);
if(list == null||list.size()<=0){
list = stamsisDao.getXsjsbdxqCase(map);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询案件详情信息异常"+e);
}
return list;
}
@Override
public List<TbXsjszyZwZwbzJbxx> getXsjsbdxqJbxx(String nyzwbh, String xczwbh){
Map<String, Object> map = new HashMap<String, Object>();
map.put("nyzwbh", nyzwbh);
map.put("xczwbh", xczwbh);
List<TbXsjszyZwZwbzJbxx> list = null;
try {
list = amsisDao.getXsjsbdxqJbxx(map);
if(list == null||list.size()<=0){
list = stamsisDao.getXsjsbdxqJbxx(map);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询基本详情信息异常"+e);
}
return list;
}
@Override
public List<TbXsjszyZwZwbzPerson> getXsjsbdxqPersonZw(String nyzwbh,String nyzw){
Map<String, Object> map = new HashMap<String, Object>();
map.put("nyzwbh", nyzwbh);
map.put("colname", "PFP"+nyzw);
List<TbXsjszyZwZwbzPerson> list = null;
try {
list = amsisRyzwDao.getXsjsbdxqRyzw(map);
if(list == null||list.size()<=0){
list = stamsisRyzwDao.getXsjsbdxqRyzw(map);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询指纹图片异常"+e);
}
return list;
}
@Override
public List<TbXsjszyZwZwbzCase> getXsjsbdxqCaseZw(String xczwbh, String zwxh){
Map<String, Object> map = new HashMap<String, Object>();
map.put("xczwbh", xczwbh);
map.put("xczwxh", zwxh);
List<TbXsjszyZwZwbzCase> list = null;
try {
list = amsisAjzwDao.getXsjsbdxqAjzw(map);
if(list == null||list.size()<=0){
list = stamsisAjzwDao.getXsjsbdxqAjzw(map);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询指纹图片异常"+e);
}
return list;
}
@Override
public TbXsjszyZwZwbzJbxx getZwBzxx(String xxzjbh){
Map<String, Object> map = new HashMap<String, Object>();
map.put("xxzjbh", xxzjbh);
TbXsjszyZwZwbzJbxx tbXsjszyZwZwbz = new TbXsjszyZwZwbzJbxx();
List<TbXsjszyZwZwbzJbxx> list = null;
try {
list = amsisDao.getXsjsbdxqJbxx(map);
if(list != null&&list.size()>=0){
tbXsjszyZwZwbz = list.get(0);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询指纹图片异常"+e);
}
return tbXsjszyZwZwbz;
}
}
package com.founder.ajswtz.stamsisAjzwDao;
import com.founder.model.amsis.TbXsjszyZwZwbzCase;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
*
* @author yangliang
* @date 2019/6/23
*/
@Component
@Mapper
public interface StAmsisAjzwDao {
List<TbXsjszyZwZwbzCase> getXsjsbdxqAjzw(Map<String, Object> map);
}
package com.founder.ajswtz.stamsisDao;
import com.founder.model.amsis.TbXsjszyZwZwbzCase;
import com.founder.model.amsis.TbXsjszyZwZwbzJbxx;
import com.founder.model.amsis.TbXsjszyZwZwbzPerson;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
*
* @author yangliang
* @date 2019/6/20
*/
@Component
@Mapper
public interface StAmsisDao {
List<TbXsjszyZwZwbzPerson> getXsjsbdxqPerson(Map<String, Object> map);
List<TbXsjszyZwZwbzCase> getXsjsbdxqCase(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> getXsjsbdxqJbxx(Map<String, Object> map);
}
package com.founder.ajswtz.stamsisRyzwDao;
import com.founder.model.amsis.TbXsjszyZwZwbzPerson;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
*
* @author yangliang
* @date 2019/6/23
*/
@Component
@Mapper
public interface StAmsisRyzwDao {
List<TbXsjszyZwZwbzPerson> getXsjsbdxqRyzw(Map<String, Object> map);
}
......@@ -55,4 +55,74 @@ public class DataSourceConfig {
public DataSource thirdDataSource(){
return thirdDbProperties().initializeDataSourceBuilder().build();
}
@Bean(name="amsisryzwdbProperties")
@Qualifier("amsisryzwdb")
@ConfigurationProperties(prefix = "spring.datasource.amsisryzwdb")
public DataSourceProperties fourthDbProperties(){
return new DataSourceProperties();
}
@Bean(name="amsisryzwdb")
@Qualifier("amsisryzwdb")
@ConfigurationProperties(prefix = "spring.datasource.amsisryzwdb")
public DataSource fourthDataSource(){
return fourthDbProperties().initializeDataSourceBuilder().build();
}
@Bean(name="amsisajzwdbProperties")
@Qualifier("amsisajzwdb")
@ConfigurationProperties(prefix = "spring.datasource.amsisajzwdb")
public DataSourceProperties fifthDbProperties(){
return new DataSourceProperties();
}
@Bean(name="amsisajzwdb")
@Qualifier("amsisajzwdb")
@ConfigurationProperties(prefix = "spring.datasource.amsisajzwdb")
public DataSource fifDataSource(){
return fifthDbProperties().initializeDataSourceBuilder().build();
}
@Bean(name="stamsisryzwdbProperties")
@Qualifier("stamsisryzwdb")
@ConfigurationProperties(prefix = "spring.datasource.stamsisryzwdb")
public DataSourceProperties sixthDbProperties(){
return new DataSourceProperties();
}
@Bean(name="stamsisryzwdb")
@Qualifier("stamsisryzwdb")
@ConfigurationProperties(prefix = "spring.datasource.stamsisryzwdb")
public DataSource sixthDataSource(){
return sixthDbProperties().initializeDataSourceBuilder().build();
}
@Bean(name="stamsisajzwdbProperties")
@Qualifier("stamsisajzwdb")
@ConfigurationProperties(prefix = "spring.datasource.stamsisajzwdb")
public DataSourceProperties seventhDbProperties(){
return new DataSourceProperties();
}
@Bean(name="stamsisajzwdb")
@Qualifier("stamsisajzwdb")
@ConfigurationProperties(prefix = "spring.datasource.stamsisajzwdb")
public DataSource sevenDataSource(){
return seventhDbProperties().initializeDataSourceBuilder().build();
}
@Bean(name="stamsisdbProperties")
@Qualifier("stamsisdb")
@ConfigurationProperties(prefix = "spring.datasource.stamsisdb")
public DataSourceProperties eigthDbProperties(){
return new DataSourceProperties();
}
@Bean(name="stamsisdb")
@Qualifier("stamsisdb")
@ConfigurationProperties(prefix = "spring.datasource.stamsisdb")
public DataSource eigthDataSource(){
return thirdDbProperties().initializeDataSourceBuilder().build();
}
}
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.**.amsisAjzwDao"},sqlSessionFactoryRef = "ajzwamsisSqlSessionFactory")
public class MybatisAmsisAjzwDbConfig {
//mapper扫描路径
static final String MAPPER_LOCATION = "classpath:mapper/*.xml";
@Autowired
@Qualifier("amsisajzwdb")
private DataSource amsisdb;
@Bean(name="ajzwamsisSqlSessionFactory")
public SqlSessionFactory ajzwamsisSqlSessionFactory() throws Exception {
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
factoryBean.setDataSource(amsisdb);
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisAmsisAjzwDbConfig.MAPPER_LOCATION));
return factoryBean.getObject();
}
@Bean(name="ajzwamsisSqlSessionTemplate")
public SqlSessionTemplate jwzhSqlSessionTemplate() throws Exception {
return new SqlSessionTemplate(ajzwamsisSqlSessionFactory());
}
}
......@@ -13,9 +13,10 @@ import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import javax.sql.DataSource;
@Configuration
@MapperScan(basePackages = {"com.founder.amsisDao"},sqlSessionFactoryRef = "amsisSqlSessionFactory")
public class MybatisDb2Config {
@MapperScan(basePackages = {"com.founder.**.amsisDao"},sqlSessionFactoryRef = "amsisSqlSessionFactory")
public class MybatisAmsisDbConfig {
//mapper扫描路径
static final String MAPPER_LOCATION = "classpath:mapper/*.xml";
@Autowired
@Qualifier("amsisdb")
private DataSource amsisdb;
......@@ -24,7 +25,7 @@ public class MybatisDb2Config {
public SqlSessionFactory amsisSqlSessionFactory() throws Exception {
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
factoryBean.setDataSource(amsisdb);
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisBaseDbConfig.MAPPER_LOCATION));
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisAmsisDbConfig.MAPPER_LOCATION));
return factoryBean.getObject();
}
......
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.**.amsisRyzwDao"},sqlSessionFactoryRef = "amsisRyzwSqlSessionFactory")
public class MybatisAmsisRyzwDbConfig {
//mapper扫描路径
static final String MAPPER_LOCATION = "classpath:mapper/*.xml";
@Autowired
@Qualifier("amsisryzwdb")
private DataSource amsisRyzwdb;
@Bean(name="amsisRyzwSqlSessionFactory")
public SqlSessionFactory amsisRyzwSqlSessionFactory() throws Exception {
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
factoryBean.setDataSource(amsisRyzwdb);
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisAmsisRyzwDbConfig.MAPPER_LOCATION));
return factoryBean.getObject();
}
@Bean(name="amsisRyzwSqlSessionTemplate")
public SqlSessionTemplate jwzhSqlSessionTemplate() throws Exception {
return new SqlSessionTemplate(amsisRyzwSqlSessionFactory());
}
}
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.**.stamsisAjzwDao"},sqlSessionFactoryRef = "stajzwamsisSqlSessionFactory")
public class MybatisStAmsisAjzwDbConfig {
//mapper扫描路径
static final String MAPPER_LOCATION = "classpath:mapper/*.xml";
@Autowired
@Qualifier("stamsisajzwdb")
private DataSource amsisdb;
@Bean(name="stajzwamsisSqlSessionFactory")
public SqlSessionFactory stajzwamsisSqlSessionFactory() throws Exception {
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
factoryBean.setDataSource(amsisdb);
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisStAmsisAjzwDbConfig.MAPPER_LOCATION));
return factoryBean.getObject();
}
@Bean(name="stajzwamsisSqlSessionTemplate")
public SqlSessionTemplate jwzhSqlSessionTemplate() throws Exception {
return new SqlSessionTemplate(stajzwamsisSqlSessionFactory());
}
}
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.**.stamsisDao"},sqlSessionFactoryRef = "stamsisSqlSessionFactory")
public class MybatisStAmsisDbConfig {
//mapper扫描路径
static final String MAPPER_LOCATION = "classpath:mapper/*.xml";
@Autowired
@Qualifier("stamsisdb")
private DataSource amsisdb;
@Bean(name="stamsisSqlSessionFactory")
public SqlSessionFactory stamsisSqlSessionFactory() throws Exception {
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
factoryBean.setDataSource(amsisdb);
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisStAmsisDbConfig.MAPPER_LOCATION));
return factoryBean.getObject();
}
@Bean(name="stamsisSqlSessionTemplate")
public SqlSessionTemplate jwzhSqlSessionTemplate() throws Exception {
return new SqlSessionTemplate(stamsisSqlSessionFactory());
}
}
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.**.stamsisRyzwDao"},sqlSessionFactoryRef = "stryzwamsisSqlSessionFactory")
public class MybatisStAmsisRyzwDbConfig {
//mapper扫描路径
static final String MAPPER_LOCATION = "classpath:mapper/*.xml";
@Autowired
@Qualifier("stamsisryzwdb")
private DataSource amsisdb;
@Bean(name="stryzwamsisSqlSessionFactory")
public SqlSessionFactory stryzwamsisSqlSessionFactory() throws Exception {
SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();
factoryBean.setDataSource(amsisdb);
factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(MybatisStAmsisRyzwDbConfig.MAPPER_LOCATION));
return factoryBean.getObject();
}
@Bean(name="stryzwamsisSqlSessionTemplate")
public SqlSessionTemplate jwzhSqlSessionTemplate() throws Exception {
return new SqlSessionTemplate(stryzwamsisSqlSessionFactory());
}
}
......@@ -399,8 +399,11 @@ public class HmCjController {
res.put("ywfssj","20191031110528");
res.put("user_id",user.getIdentitycard());
res.put("user_dept",user.getUnitcode());
//res.put("user_deptname",dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT"));
res.put("user_deptname","内蒙古公安厅");
String unitname = dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT");
if(unitname==null||"".equals(unitname)){
unitname = "内蒙古公安厅";
}
res.put("user_deptname",unitname);
res.put("sbcsdm",hmxxs.get(0).getSbcsdm());
res.put("hmcjsbxhdm","01");
res.put("sbbh",hmxxs.get(0).getSbxh());
......@@ -443,7 +446,7 @@ public class HmCjController {
res.put("bcjr_sjhm1",xyrC.getLxdm());
res.put("bcjr_sjhm2",xyrC.getLxdm2());
res.put("zjzp",xyrC.getEdzzpStr64());
JSONObject jsonResult= FileUtils.requestByPost("http://122.49.35.37:43980/api/xingzhuan/v1/regIris",res);
JSONObject jsonResult= FileUtils.requestByPost("http://10.2.89.141/api/xingzhuan/v1/regIris",res);
System.out.println(jsonResult.toJSONString());
boolean bool = true;
return bool;
......@@ -460,11 +463,14 @@ public class HmCjController {
res.put("client_secret", "neimengxingzhuan");
res.put("version","1.0");
res.put("request_id",hmxxs.get(0).getRequest_id());
res.put("ywfssj","20191031110528");
res.put("ywfssj","20191121100528");
res.put("user_id",user.getIdentitycard());
res.put("user_dept",user.getUnitcode());
//res.put("user_deptname",dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT"));
res.put("user_deptname","内蒙古公安厅");
String unitname = dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT");
if(unitname==null||"".equals(unitname)){
unitname = "内蒙古公安厅";
}
res.put("user_deptname",unitname);
res.put("sbcsdm",hmxxs.get(0).getSbcsdm());
res.put("hmcjsbxhdm","01");
res.put("sbbh",hmxxs.get(0).getSbxh());
......@@ -487,7 +493,7 @@ public class HmCjController {
}
}
res.put("cjtphs","1.825");
JSONObject jsonResult= FileUtils.requestByPost("http://122.49.35.37:43980/iris/irisInspection",res);
JSONObject jsonResult= FileUtils.requestByPost("http://10.2.89.141/iris/irisInspection",res);
System.out.println(jsonResult.toJSONString());
boolean bool = true;
return bool;
......@@ -504,11 +510,14 @@ public class HmCjController {
res.put("client_secret", "neimengxingzhuan");
res.put("version","1.0");
res.put("request_id",hmxxs.get(0).getRequest_id());
res.put("ywfssj","20191031110528");
res.put("ywfssj","20191121100528");
res.put("user_id",user.getIdentitycard());
res.put("user_dept",user.getUnitcode());
//res.put("user_deptname",dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT"));
res.put("user_deptname","内蒙古公安厅");
String unitname = dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT");
if(unitname==null||"".equals(unitname)){
unitname = "内蒙古公安厅";
}
res.put("user_deptname",unitname);
res.put("sbcsdm",hmxxs.get(0).getSbcsdm());
res.put("hmcjsbxhdm","01");
res.put("sbbh",hmxxs.get(0).getSbxh());
......@@ -549,7 +558,7 @@ public class HmCjController {
res.put("bcjr_sjhm1",xyrC.getLxdm());
res.put("bcjr_sjhm2",xyrC.getLxdm2());
res.put("zjzp",xyrC.getEdzzpStr64());
JSONObject jsonResult= FileUtils.requestByPost("http://122.49.35.37:43980/iris/irisCheck",res);
JSONObject jsonResult= FileUtils.requestByPost("http://10.2.89.141/iris/irisCheck",res);
System.out.println(jsonResult.toJSONString());
boolean bool = true;
return bool;
......
......@@ -219,10 +219,16 @@ public class SwCjController {
return map;
}
User user = (User) request.getSession().getAttribute("User");
String unitcode = "140000000000";
if(user==null){
unitcode = xyrC.getLrdwdm();
}else{
unitcode = user.getUnitcode();
}
//生成信息主键编号
String uuid = UUID.randomUUID().toString().replaceAll("-", "");
tbStSw.setXxzjbh(uuid);
Boolean b = swCjService.saveSwSjXx(tbStSw,user.getUnitcode());
Boolean b = swCjService.saveSwSjXx(tbStSw,unitcode);
if (b) {
//成功
map.put("code", "0");
......
......@@ -13,6 +13,7 @@ import java.util.Map;
@Component
@Mapper
public interface JwzhDao {
public boolean updateRyxx(Map<String, Object> map);
public boolean insertRxxx(Map<String, Object> map);
public boolean updateRxxx(Map<String, Object> map);
public boolean insertSwxx(TbStSw tbStSw);
......
package com.founder.model.amsis;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
/**
*刑事技术资源指纹比中信息
* @author yangliang
* @date 2019/10/10
*/
public class TbXsjszyZwZwbz implements Serializable {
private static final long serialVersionUID = 1L;
//("信息主键编号")
private String xxzjbh;
//案事件编号
private String asjbh;
private String ajmc;
//案事件相关人员编号
private String asjxgrybh;
//(现场)指掌纹卡编号
private String zzhwkbh;
//("比中时间")
private Date bzsj;
private String bzsjStr;
//("比中单位_公安机关机构代码")
private String bzdw_gajgjgdm;
//("比中单位_公安机关名称")
private String bzdw_gajgmc;
//比中结果_指掌纹卡编号
private String bzjg_zzhwkbh;
//("比中人_姓名")
private String bzr_xm;
//("比中人_公民身份号码")
private String bzr_gmsfhm;
//("比中人_联系电话")
private String bzr_lxdh;
//("复核单位_公安机关机构代码")
private String fhdw_gajgjgdm;
//("复核单位_公安机关名称")
private String fhdw_gajgmc;
//("复核时间")
private Date fhsj;
//("复核人_姓名")
private String fhr_xm;
//("复核人_公民身份号码")
private String fhr_gmsfhm;
//("复核人_联系电话")
private String fhr_lxdh;
//("信息删除_判断标识/1-是,0-否/CODE_IF")
private String xxsc_pdbz;
//备注
private String bz;
//数据来源表(ZZHWLLBZJGXX串查比中,ZZHWLTBZJGXX正倒查比中,ZZHWTTBZJGXX查重比中)
private String sjly;
//侦查指令编号
private String zczlbh;
//指令反馈状态
private String zlfkzt;
//提取单位_公安机关名称
private String tqdw_gajgmc;
//提取单位_公安机关机构代码
private String tqdw_gajgjgdm;
//
private String type;
private String bdy_jyqk;
private String xkbh;
private String ladwmc;
private String xyrXm;
private String xyrZjhm;
private String ajlb;
//发案时间
private String fasj;
//案发地详址
private String ajfsdd;
public String getAjfsdd() {
return ajfsdd;
}
public void setAjfsdd(String ajfsdd) {
this.ajfsdd = ajfsdd;
}
public String getFasj() {
return fasj;
}
public void setFasj(String fasj) {
this.fasj = fasj;
}
public String getXxzjbh() {
return xxzjbh;
}
public void setXxzjbh(String xxzjbh) {
this.xxzjbh = xxzjbh;
}
public String getAsjbh() {
return asjbh;
}
public void setAsjbh(String asjbh) {
this.asjbh = asjbh;
}
public String getAsjxgrybh() {
return asjxgrybh;
}
public void setAsjxgrybh(String asjxgrybh) {
this.asjxgrybh = asjxgrybh;
}
public String getZzhwkbh() {
return zzhwkbh;
}
public void setZzhwkbh(String zzhwkbh) {
this.zzhwkbh = zzhwkbh;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
public Date getBzsj() {
return bzsj;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
public void setBzsj(Date bzsj) {
this.bzsj = bzsj;
}
public String getBzsjStr() {
return bzsjStr;
}
public void setBzsjStr(String bzsjStr) {
this.bzsjStr = bzsjStr;
}
public String getBzdw_gajgjgdm() {
return bzdw_gajgjgdm;
}
public void setBzdw_gajgjgdm(String bzdw_gajgjgdm) {
this.bzdw_gajgjgdm = bzdw_gajgjgdm;
}
public String getBzdw_gajgmc() {
return bzdw_gajgmc;
}
public void setBzdw_gajgmc(String bzdw_gajgmc) {
this.bzdw_gajgmc = bzdw_gajgmc;
}
public String getBzjg_zzhwkbh() {
return bzjg_zzhwkbh;
}
public void setBzjg_zzhwkbh(String bzjg_zzhwkbh) {
this.bzjg_zzhwkbh = bzjg_zzhwkbh;
}
public String getBzr_xm() {
return bzr_xm;
}
public void setBzr_xm(String bzr_xm) {
this.bzr_xm = bzr_xm;
}
public String getBzr_gmsfhm() {
return bzr_gmsfhm;
}
public void setBzr_gmsfhm(String bzr_gmsfhm) {
this.bzr_gmsfhm = bzr_gmsfhm;
}
public String getBzr_lxdh() {
return bzr_lxdh;
}
public void setBzr_lxdh(String bzr_lxdh) {
this.bzr_lxdh = bzr_lxdh;
}
public String getFhdw_gajgjgdm() {
return fhdw_gajgjgdm;
}
public void setFhdw_gajgjgdm(String fhdw_gajgjgdm) {
this.fhdw_gajgjgdm = fhdw_gajgjgdm;
}
public String getFhdw_gajgmc() {
return fhdw_gajgmc;
}
public void setFhdw_gajgmc(String fhdw_gajgmc) {
this.fhdw_gajgmc = fhdw_gajgmc;
}
public Date getFhsj() {
return fhsj;
}
public void setFhsj(Date fhsj) {
this.fhsj = fhsj;
}
public String getFhr_xm() {
return fhr_xm;
}
public void setFhr_xm(String fhr_xm) {
this.fhr_xm = fhr_xm;
}
public String getFhr_gmsfhm() {
return fhr_gmsfhm;
}
public void setFhr_gmsfhm(String fhr_gmsfhm) {
this.fhr_gmsfhm = fhr_gmsfhm;
}
public String getFhr_lxdh() {
return fhr_lxdh;
}
public void setFhr_lxdh(String fhr_lxdh) {
this.fhr_lxdh = fhr_lxdh;
}
public String getXxsc_pdbz() {
return xxsc_pdbz;
}
public void setXxsc_pdbz(String xxsc_pdbz) {
this.xxsc_pdbz = xxsc_pdbz;
}
public String getBz() {
return bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getSjly() {
return sjly;
}
public void setSjly(String sjly) {
this.sjly = sjly;
}
public String getZczlbh() {
return zczlbh;
}
public void setZczlbh(String zczlbh) {
this.zczlbh = zczlbh;
}
public String getZlfkzt() {
return zlfkzt;
}
public void setZlfkzt(String zlfkzt) {
this.zlfkzt = zlfkzt;
}
public String getTqdw_gajgmc() {
return tqdw_gajgmc;
}
public void setTqdw_gajgmc(String tqdw_gajgmc) {
this.tqdw_gajgmc = tqdw_gajgmc;
}
public String getTqdw_gajgjgdm() {
return tqdw_gajgjgdm;
}
public void setTqdw_gajgjgdm(String tqdw_gajgjgdm) {
this.tqdw_gajgjgdm = tqdw_gajgjgdm;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getXkbh() {
return xkbh;
}
public void setXkbh(String xkbh) {
this.xkbh = xkbh;
}
public String getLadwmc() {
return ladwmc;
}
public void setLadwmc(String ladwmc) {
this.ladwmc = ladwmc;
}
public String getXyrXm() {
return xyrXm;
}
public void setXyrXm(String xyrXm) {
this.xyrXm = xyrXm;
}
public String getXyrZjhm() {
return xyrZjhm;
}
public void setXyrZjhm(String xyrZjhm) {
this.xyrZjhm = xyrZjhm;
}
public String getBdy_jyqk() {
return bdy_jyqk;
}
public void setBdy_jyqk(String bdy_jyqk) {
this.bdy_jyqk = bdy_jyqk;
}
public String getAjmc() {
return ajmc;
}
public void setAjmc(String ajmc) {
this.ajmc = ajmc;
}
public String getAjlb() {
return ajlb;
}
public void setAjlb(String ajlb) {
this.ajlb = ajlb;
}
@Override
public String toString() {
return "TbXsjszyZwZwbz{" +
"xxzjbh='" + xxzjbh + '\'' +
", asjbh='" + asjbh + '\'' +
", asjxgrybh='" + asjxgrybh + '\'' +
", zzhwkbh='" + zzhwkbh + '\'' +
", bzsj=" + bzsj +
", bzdw_gajgjgdm='" + bzdw_gajgjgdm + '\'' +
", bzdw_gajgmc='" + bzdw_gajgmc + '\'' +
", bzjg_zzhwkbh='" + bzjg_zzhwkbh + '\'' +
", bzr_xm='" + bzr_xm + '\'' +
", bzr_gmsfhm='" + bzr_gmsfhm + '\'' +
", bzr_lxdh='" + bzr_lxdh + '\'' +
", fhdw_gajgjgdm='" + fhdw_gajgjgdm + '\'' +
", fhdw_gajgmc='" + fhdw_gajgmc + '\'' +
", fhsj=" + fhsj +
", fhr_xm='" + fhr_xm + '\'' +
", fhr_gmsfhm='" + fhr_gmsfhm + '\'' +
", fhr_lxdh='" + fhr_lxdh + '\'' +
", xxsc_pdbz='" + xxsc_pdbz + '\'' +
", bz='" + bz + '\'' +
", sjly='" + sjly + '\'' +
", zczlbh='" + zczlbh + '\'' +
", zlfkzt='" + zlfkzt + '\'' +
", tqdw_gajgmc='" + tqdw_gajgmc + '\'' +
", tqdw_gajgjgdm='" + tqdw_gajgjgdm + '\'' +
", type='" + type + '\'' +
", bdy_jyqk='" + bdy_jyqk + '\'' +
", xkbh='" + xkbh + '\'' +
", ladwmc='" + ladwmc + '\'' +
", xyrXm='" + xyrXm + '\'' +
", xyrZjhm='" + xyrZjhm + '\'' +
'}';
}
}
package com.founder.service.impl;
import com.founder.ajswtz.amsisDao.AmsisDao;
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;
......@@ -15,7 +15,7 @@ import java.util.Map;
public class AmsisPlainImgServiceImpl extends BaseService<AutoTbStRy> implements AmsisPlainImgService {
@Autowired
private amsisDao mapper;
private AmsisDao mapper;
@Override
public Plainimg getAmsisPlainImgService(String szzwbh) {
......
package com.founder.service.impl;
import com.founder.ajswtz.amsisDao.AmsisDao;
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;
......@@ -15,7 +15,7 @@ import java.util.Map;
public class AmsisRollImgServiceImpl extends BaseService<AutoTbStRy> implements AmsisRollImgService {
@Autowired
private amsisDao mapper;
private AmsisDao mapper;
@Override
public Rollimg getAmsisImgService(String szzwbh) {
......
package com.founder.service.impl;
import com.founder.dao.TbXwRycjDao;
import com.founder.jwzhDao.JwzhDao;
import com.founder.model.AutoTbStRy;
import com.founder.service.AutoTbXwRycjService;
import com.founder.utils.EasyUIPage;
......@@ -19,6 +20,8 @@ public class AutoTbXwRycjServiceImpl extends BaseService<AutoTbStRy> implements
private Logger log= LoggerFactory.getLogger(this.getClass());
@Autowired
private TbXwRycjDao mapper;
@Autowired
private JwzhDao jwzhDao;
@Override
public EasyUIPage queryRyxxPage(EasyUIPage page, AutoTbStRy entity) {
......@@ -276,6 +279,9 @@ public class AutoTbXwRycjServiceImpl extends BaseService<AutoTbStRy> implements
map.put("entity", ryxx);
//end update
bool = mapper.updateRyxx(map);
if(bool&&"14".equals(rybh.substring(1,3))){
jwzhDao.updateRyxx(map);
}
}
} catch (Exception e) {
log.info("人员指纹采集【保存指纹编号出错】:", e);
......
......@@ -28,6 +28,37 @@ spring.datasource.amsisdb.username=WSZZPT
spring.datasource.amsisdb.password=WSZZPT
spring.datasource.amsisdb.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.amsisdb.type: com.alibaba.druid.pool.DruidDataSource
spring.datasource.amsisryzwdb.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL
spring.datasource.amsisryzwdb.username=WSZZPT
spring.datasource.amsisryzwdb.password=WSZZPT
spring.datasource.amsisryzwdb.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.amsisryzwdb.type: com.alibaba.druid.pool.DruidDataSource
spring.datasource.amsisAjzwdb.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL
spring.datasource.amsisAjzwdb.username=WSZZPT
spring.datasource.amsisAjzwdb.password=WSZZPT
spring.datasource.amsisAjzwdb.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.amsisAjzwdb.type: com.alibaba.druid.pool.DruidDataSource
#省厅指纹数据源配置
spring.datasource.stamsisdb.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL
spring.datasource.stamsisdb.username=WSZZPT
spring.datasource.stamsisdb.password=WSZZPT
spring.datasource.stamsisdb.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.stamsisdb.type: com.alibaba.druid.pool.DruidDataSource
spring.datasource.stamsisryzwdb.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL
spring.datasource.stamsisryzwdb.username=WSZZPT
spring.datasource.stamsisryzwdb.password=WSZZPT
spring.datasource.stamsisryzwdb.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.stamsisryzwdb.type: com.alibaba.druid.pool.DruidDataSource
spring.datasource.stamsisajzwdb.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL
spring.datasource.stamsisajzwdb.username=WSZZPT
spring.datasource.stamsisajzwdb.password=WSZZPT
spring.datasource.stamsisajzwdb.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.stamsisajzwdb.type: com.alibaba.druid.pool.DruidDataSource
#警综数据源配置(山西使用)
spring.datasource.jwzhdb.url=jdbc:oracle:thin:@47.93.118.224:1521:ORCL
spring.datasource.jwzhdb.username=jcjc
......
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.founder.amsisDao.amsisDao">
<mapper namespace="com.founder.ajswtz.amsisDao.AmsisDao">
<select id="getRollimgByBarcode" resultType="com.founder.model.amsis.Rollimg" parameterType="map">
select
......
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.founder.jwzhDao.JwzhDao">
<update id="updateRyxx" parameterType="map">
UPDATE badperson_m_detail SET
<if test="entity.szzwbh != null and entity.szzwbh != ''">zwbh = #{entity.szzwbh , jdbcType=VARCHAR },</if>
XT_ZHXGSJ=to_char(sysdate,'yyyy-mm-dd HH24:MI:ss')
where RYBH = #{entity.rybh , jdbcType=VARCHAR }
</update>
<insert id="insertRxxx" parameterType="map">
insert into TB_ST_RY_ZP(
ZJ,
......@@ -333,7 +340,7 @@
<if test="wptzms != null and wptzms != ''"> WPTZMS = #{wptzms , jdbcType=VARCHAR }, </if>
<if test="wpjzrmby != null and wpjzrmby != ''"> WPJZRMBY = #{wpjzrmby , jdbcType=VARCHAR } ,</if>
<if test="xdwp_zp != null and xdwp_zp != ''"> XDWP_ZP = #{xdwp_zp , jdbcType=VARCHAR } ,</if>
XT_ZHXGSJ=SYSDATE
XT_ZHXGSJ=to_char(sysdate,'yyyy-mm-dd HH24:MI:ss')
where ZJ = #{xxzjbh, jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.founder.ajswtz.amsisAjzwDao.AmsisAjzwDao">
<!--查询指纹比中信息人员详情-->
<select id="getXsjsbdxqAjzw" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzCase">
select hdc as ajbzzwtp from lathp_org t where t.barcode = #{xczwbh} and t.hpseqno= #{xczwxh}
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.founder.ajswtz.amsisDao.AmsisDao">
<!--查询指纹比中信息人员详情-->
<select id="getXsjsbdxqPerson" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzPerson">
select t.*,f.idcard as edzzp,f.fcp1 as zmzp,f.fcp2 as zcmzp,f.fcp3 as ycmzp from person t,face f where t.barcode=f.barcode(+) and t.barcode = #{nyzwbh}
</select>
<!--查询指纹比中信息案件详情-->
<select id="getXsjsbdxqCase" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzCase">
select t.* from case t where t.barcode= #{xczwbh}
</select>
<!--查询指纹比中信息详情-->
<select id="getXsjsbdxqJbxx" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzJbxx">
select t.* from LA_MATCHCAND t where (t.SRCBARCODE= #{xczwbh} and t.DESTBARCODE= #{nyzwbh} and t.LA_TYPE ='LA') or (t.SRCBARCODE= #{nyzwbh} and t.DESTBARCODE= #{xczwbh} and t.LA_TYPE ='AL')
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.founder.ajswtz.amsisRyzwDao.AmsisRyzwDao">
<!--查询指纹比中信息人员详情-->
<select id="getXsjsbdxqRyzw" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzPerson">
select ${colname} as rybzzwtp from plain_org t where t.barcode = #{nyzwbh}
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.founder.ajswtz.stamsisDao.StAmsisDao">
<!--查询指纹比中信息人员详情-->
<select id="getXsjsbdxqPerson" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzPerson">
select t.*,f.idcard as edzzp,f.fcp1 as zmzp,f.fcp2 as zcmzp,f.fcp3 as ycmzp from person t,face f where t.barcode=f.barcode(+) and t.barcode = #{nyzwbh}
</select>
<!--查询指纹比中信息案件详情-->
<select id="getXsjsbdxqCase" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzCase">
select t.* from case t where t.barcode= #{xczwbh}
</select>
<!--查询指纹比中信息详情-->
<select id="getXsjsbdxqJbxx" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzJbxx">
select t.* from LA_MATCHCAND t where (t.SRCBARCODE= #{xczwbh} and t.DESTBARCODE= #{nyzwbh} and t.LA_TYPE ='LA') or (t.SRCBARCODE= #{nyzwbh} and t.DESTBARCODE= #{xczwbh} and t.LA_TYPE ='AL')
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.founder.ajswtz.stamsisAjzwDao.StAmsisAjzwDao">
<!--查询指纹比中信息人员详情-->
<select id="getXsjsbdxqAjzw" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzCase">
select hdc as ajbzzwtp from lathp_org t where t.barcode = #{xczwbh} and t.hpseqno= #{xczwxh}
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.founder.ajswtz.stamsisRyzwDao.StAmsisRyzwDao">
<!--查询指纹比中信息人员详情-->
<select id="getXsjsbdxqRyzw" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzPerson">
select ${colname} as rybzzwtp from plain_org t where t.barcode = #{nyzwbh}
</select>
</mapper>
\ No newline at end of file
$(() => {
var $sendBtn = $('.send-button'),
$iWrapper = $('.icon-wrapper'),
$i1 = $('.icon-1'),
$i2 = $('.icon-2');
function animationEvent() {
var t,
el = document.createElement('fakeelement');
var animations = {
animation: 'animationend',
OAnimation: 'oAnimationEnd',
MozAnimation: 'animationend',
WebkitAnimation: 'webkitAnimationEnd'
};
for (t in animations) {
if (el.style[t] !== undefined) {
return animations[t];
}
}
}
$sendBtn.on('click', e => {
//$iWrapper.css('color', '#66bb6a');
$iWrapper.addClass('icon-wrapper-animation');
$sendBtn.addClass('clicked');
$i1.delay(900);
$i1.fadeTo(300, 0);
$i2.delay(900);
$i2.fadeTo(300, 1);
});
$sendBtn.on(animationEvent(), e => {
if (e.originalEvent.animationName == 'input-shadow') {
$sendBtn.removeClass('clicked');
}
});
$iWrapper.on(animationEvent(), e => {
if (e.originalEvent.animationName == 'icon-animation') {
$iWrapper.removeClass('icon-wrapper-animation');
setTimeout(reset, 2200);
}
});
function reset() {
$i1.fadeTo(250, 1);
$i2.fadeTo(250, 0);
//$iWrapper.css('color', '#f8bbd0');
}
}); // end of document ready
\ No newline at end of file
......@@ -89,7 +89,7 @@
<div class="ypgj_con">
<ul>
<li id="H10B01">
<a onclick="">案事件信息管理</a>
<a onclick="ajxxgl()">案事件信息管理</a>
</li>
</ul>
</div>
......@@ -323,6 +323,10 @@
window.open("/toRyxxList?isfirst=1",'_blank');
}
function ajxxgl(){
window.open("/toAjJbxxDetail?asjxgrybh=1&zjhm=111",'_blank');
}
function swtzbdfk(){
window.open("/toRyswtzfkxq",'_blank');
}
......
......@@ -912,6 +912,7 @@
var RFP = ri.substring(ri.indexOf("B"),ri.indexOf("C"));//滚动
var PFP = ri.substring(ri.indexOf("C"),ri.indexOf("D"));//平面
if(RFP=="B0000000000"&&PFP=="C0000000000"){
//$.post("upzw",{rrybh:rybh,rzwbh:zwbh,cjfs:cjfs,results:ri},getZwRs);
}else{
$.post("upzw",{rrybh:rybh,rzwbh:zwbh,cjfs:cjfs,results:ri},getZwRs);
}
......@@ -924,8 +925,12 @@
}
function getZwRs(result){
if(result.message != "-1"){
if(result.message==null||result.message==""){
$("#szzwbh").val($('#rybh').val().substr(1));
}else{
$("#szzwbh").val(result.message);
}
$.messager.alert( '提示',"指纹采集成功!");
$("#szzwbh").val(result.message);
}else{
$.messager.alert( '提示',"指纹采集失败!");
}
......@@ -1286,7 +1291,7 @@
o["type"] = "fz";
o["id"] = $("#rybh").val();
o["name"] = $("#xm").val();
o["uploadUrl"] = "http://127.0.0.1:9200/getSwSjXx";
o["uploadUrl"] = "http://10.94.61.174:9100/getSwSjXx";
var val = "audio-capture:"+JSON.stringify(o).replace(/\"/g,"\\\"")
window.location.href = val;
console.log(Object.keys(obj));
......@@ -1408,23 +1413,6 @@
}
function tozjcj(){
if (kg == 1) {
var zmzpStr64 = $("#zmzpStr64").val();
if(zmzpStr64!=null&&zmzpStr64!=""){
$("#imghead11").attr("src","data:image/jpg;base64,"+zmzpStr64);
$("#r_zjLeftBase64").val(zmzpStr64);
$("#zjleftflag").val("0");
}
} else if (kg == 2) {
var cmzpStr64 = $("#cmzpStr64").val();
if(cmzpStr64!=null&&cmzpStr64!=""){
$("#imghead12").attr("src","data:image/jpg;base64,"+cmzpStr64);
$("#r_zjRightBase64").val(cmzpStr64);
$("#zjrightflag").val("0");
}
}
return;
ws = new WebSocket("ws://127.0.0.1:8980/FC4");
ws.onopen = function(e) {
if (kg == 1) {
......@@ -1436,21 +1424,13 @@
ws.onclose = function(e) {
//意外中断,再连接
if (e.code == '1006' || e.code == '1002') {
initWS();
tozjcj();
}
}
ws.onmessage = function(e) {
var data = JSON.parse(e.data);
//正常结束,data.Context 可获取最后一张图原图base64
if (data.Code == 10) {
ws.close();
}
//采集发生错误
else if (data.Code < 0) {
ws.close();
}
//显示采集过程的压缩图
else {
var context = "data:img/jpg;base64," + data.Context;
if(kg==1){
$("#imghead11").attr('src', context);
......@@ -1461,6 +1441,22 @@
$("#r_zjRightBase64").val(data.Context);
$("#zjrightflag").val("0");
}
ws.close();
return;
}else if (data.Code < 0) {//采集发生错误
ws.close();
return;
}else {//显示采集过程的压缩图
var context = "data:img/jpg;base64," + data.Context;
if(kg==1){
$("#imghead11").attr('src', context);
$("#r_zjLeftBase64").val(data.Context);
//$("#zjleftflag").val("0");
}else if(kg==2){
$("#imghead12").attr('src', context);
$("#r_zjRightBase64").val(data.Context);
//$("#zjrightflag").val("0");
}
}
}
}
......@@ -1506,7 +1502,7 @@
<input type="hidden" id="flag" name="flag" th:value="1"/>
<input type="hidden" id="username" th:value="${username}"/>
<input type="hidden" id="unitcode" th:value="${unitcode}"/>
<input type="hidden" id="cjsb" th:value="${cjsb}"/>
<input type="hidden" id="cjsb" name="cjsb" th:value="${cjsb}"/>
<input type="hidden" id="saveflag" name="saveflag" th:value="${saveflag}"/>
<input type="hidden" id="rysxstr" name="rysxstr" th:value="${ryxx.rysx}"/>
<input type="hidden" id="edzzpflag" name="edzzpflag" th:value="1"/>
......@@ -1996,7 +1992,7 @@
</div>
<div class="input-group l1 br" style="width: 288px;">
<span class="input-group-addon">指纹编号</span>
<input name="szzwbh" id="szzwbh" class="form-control" th:value="${ryxx.szzwbh}" />
<input readonly="readonly" name="szzwbh" id="szzwbh" class="form-control" th:value="${ryxx.szzwbh}" style="padding :0px !important;"/>
</div>
<div class="input-group l1" style="width: 288px;margin-left: 27px;">
<span class="input-group-addon">DNA编号</span>
......@@ -2148,7 +2144,7 @@
<li id="sgtz"><a onclick="scanWH(document.frminput)" href="#"><i class="fa fa-street-view"></i> 身高体重信息采集</a></li>
<li id="zw"><a onclick="getStatus()" href="#"><i class="fa fa-hand-paper-o"></i> 捺印指纹信息采集</a></li>
<li id="hm"><a onclick="hmcj()" href="#"><i class="fa fa-barcode"></i> 虹膜信息采集</a></li>
<li id="zj"><a onclick="zjcj(0)" href="#"><i class="fa fa-barcode"></i> 足迹信息采集</a></li>
<!--<li id="zj"><a onclick="zjcj(0)" href="#"><i class="fa fa-barcode"></i> 足迹信息采集</a></li>-->
<li id="sw"><a onclick="swcj()" href="#"><i class="fa fa-address-card-o"></i> 声纹信息采集</a></li>
<li id="wp"><a onclick="sswpcj()" href="#"><i class="fa fa-barcode"></i> 随身物品信息采集</a></li>
<li id="sj"><a href="javascript:sjcj()"><i class="fa fa-print"></i> 随身手机信息采集</a></li>
......@@ -2156,9 +2152,9 @@
<li><a href="#"><i class="fa fa-barcode"></i> 笔迹信息采集(建设中)</a></li>
<li><a href="#"><i class="fa fa-barcode"></i> 社会信息导入(建设中)</a></li>
<li><a href="#"><i class="fa fa-barcode"></i> 关系人信息采集(建设中)</a></li>
<li id="hmts"><a onclick="hmts()" href="#"><i class="fa fa-barcode"></i> 虹膜推送</a></li>
<li id="hmcy"><a onclick="hmcy()" href="#"><i class="fa fa-barcode"></i> 虹膜查验</a></li>
<li id="hmhy"><a onclick="hmhy()" href="#"><i class="fa fa-barcode"></i> 虹膜核验</a></li>
<li id="hmts"><a onclick="hmts()" href="#"><i class="fa fa-barcode"></i> 虹膜推送(建设测试中)</a></li>
<li id="hmcy"><a onclick="hmcy()" href="#"><i class="fa fa-barcode"></i> 虹膜查验(建设测试中)</a></li>
<li id="hmhy"><a onclick="hmhy()" href="#"><i class="fa fa-barcode"></i> 虹膜核验(建设测试中)</a></li>
<!-- <li><a href="javascript:prtzw()"><i class="fa fa-print"></i> 打印指纹卡</a></li>
<li name="qxsbflag"><a onclick="showScan()"><i class="fa fa-barcode"></i> 指纹卡扫描</a></li>
<li><a href="javascript:saveBiCj()"><i class="fa fa-address-card-o"></i> 采集笔迹</a></li>
......
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