Commit f5c702d6 by yangliang

修改

parent d0178444
......@@ -119,6 +119,21 @@
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.jaxrpc</groupId>
<artifactId>jaxrpc</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>commons-discovery</groupId>
<artifactId>commons-discovery</artifactId>
<version>0.2</version>
</dependency>
<dependency>
<groupId>com.founder.commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>1.0</version>
......
......@@ -98,8 +98,18 @@ public class LoginController {
}else{
if(rybh==null||"".equals(rybh)){
AutoTbStRy xyrC = new AutoTbStRy();
model.addAttribute("username",user.getUsername());
model.addAttribute("unitcode",user.getUnitcode());
model.addAttribute("user",user);
model.addAttribute("ryxx",xyrC);
model.addAttribute("saveflag","0");
model.addAttribute("perurl",perurl);
model.addAttribute("hmzt","0");
model.addAttribute("zjzt","0");
model.addAttribute("swzt","0");
model.addAttribute("sjzt","0");
model.addAttribute("yhkzt","0");
model.addAttribute("sswpzt","0");
}else{
AutoTbStRy xyrC = rycjService.getRyxxByRybh(rybh);
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
......
package com.founder.model;
/**
* <P>Copyright: Founder Copyright (c) 2021</P>
* <P>Description:定义警综人员实体</P>
* <P>Company: Founder</P>
* <P>Author yangliang</P>
* <P>E-mail:yangliang.hl@founder.com.com</P>
* <P>Careate: 2021-01-20 下午16:01:32</P>
* <P>Version 1.0</P>
* TODO :
*/
public class Jzryxx {
// 嫌疑人编号
private String xyrbh;
// 二代证base64
private String edzbase64;
// 正面照片base64
private String zmzpbASE64;
// 左侧面照片base64
private String zcmzpbase64;
// 右侧面照片base64
private String ycmzmbase64;
// 指纹编号
private String zwbh;
// DNA编号
private String dnabh;
// 足迹编号
private String zjbh;
// 声纹编号
private String swbh;
// SIS手机号码
private String sissjhm;
// 身高
private String sg;
// 足长
private String zc;
// 体重
private String tz;
//单位代码
private String unitcode;
//设置标志
private String flag;
public String getXyrbh() {
return xyrbh;
}
public void setXyrbh(String xyrbh) {
this.xyrbh = xyrbh;
}
public String getEdzbase64() {
return edzbase64;
}
public void setEdzbase64(String edzbase64) {
this.edzbase64 = edzbase64;
}
public String getZmzpbASE64() {
return zmzpbASE64;
}
public void setZmzpbASE64(String zmzpbASE64) {
this.zmzpbASE64 = zmzpbASE64;
}
public String getZcmzpbase64() {
return zcmzpbase64;
}
public void setZcmzpbase64(String zcmzpbase64) {
this.zcmzpbase64 = zcmzpbase64;
}
public String getYcmzmbase64() {
return ycmzmbase64;
}
public void setYcmzmbase64(String ycmzmbase64) {
this.ycmzmbase64 = ycmzmbase64;
}
public String getZwbh() {
return zwbh;
}
public void setZwbh(String zwbh) {
this.zwbh = zwbh;
}
public String getDnabh() {
return dnabh;
}
public void setDnabh(String dnabh) {
this.dnabh = dnabh;
}
public String getZjbh() {
return zjbh;
}
public void setZjbh(String zjbh) {
this.zjbh = zjbh;
}
public String getSwbh() {
return swbh;
}
public void setSwbh(String swbh) {
this.swbh = swbh;
}
public String getSissjhm() {
return sissjhm;
}
public void setSissjhm(String sissjhm) {
this.sissjhm = sissjhm;
}
public String getSg() {
return sg;
}
public void setSg(String sg) {
this.sg = sg;
}
public String getZc() {
return zc;
}
public void setZc(String zc) {
this.zc = zc;
}
public String getTz() {
return tz;
}
public void setTz(String tz) {
this.tz = tz;
}
public String getUnitcode() {
return unitcode;
}
public void setUnitcode(String unitcode) {
this.unitcode = unitcode;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
}
package com.founder.utils;
import com.founder.model.Jzryxx;
import com.founder.util.ServiceUtil;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.encoding.XMLType;
import java.rmi.RemoteException;
/**
* <P>Copyright: Founder Copyright (c) 2020</P>
* <P>Description:Axis调用内蒙古新警综人员查询服务</P>
* <P>Company: Founder</P>
* <P>Author yangliang</P>
* <P>E-mail:yangliang.hl@founder.com.com</P>
* <P>Careate: 2021-01-04 上午11:36:25</P>
* <P>Version 1.0</P>
* TODO :
*/
public class QueryService {
PropertiesUtil propertiesUtil=new PropertiesUtil("application.properties");
//定义请求方已授权ID
static String senderID="C410000-BZCJ0001";
//定义授权对象
static String dataObjectCode="R-BZCJ-XYRXX-001";
//警综接口URL
String url = propertiesUtil.getValue("nmjz_interfaceurl");
/**
*
* <P>Title: callService </P>
* <P>Description:调用警综webservice接口</P>
* <P>param 参数类型@param xml
* <P>param 参数类型@param interfaceMethod
* <P>param 参数类型@return </P>
* <P>return 返回类型String</P>
* <P>throws抛出异常</P>
*/
public String callService(String xml,String interfaceMethod){
//定义接口
Service service = null;
Call call = null;
service=new Service();
String result="";
//创建调用接口的XML
try {
call = (Call) service.createCall();
//设置WebService接口路径
call.setTargetEndpointAddress(url);
//设置WebService接口调用方法
call.setOperationName(new QName(interfaceMethod));
//设置WebService接口调用方法对应参数类型
call.addParameter("arg0", XMLType.XSD_STRING, ParameterMode.IN);
call.setUseSOAPAction(true);
//设置WebService接口方法的返回值类型
call.setReturnType(XMLType.XSD_STRING);
result=(String) call.invoke(new Object[]{xml});
System.out.println("打印结果警综返回:"+result);
} catch (ServiceException e) {
e.printStackTrace();
}catch (RemoteException e) {
e.printStackTrace();
}
return result;
}
public String QueryPersonByRybh(String rybh) {
//定义查询条件condition
String condition="XYRBH='"+rybh+"'";
//定义接口对应方法
String interfaceMethod="QueryService";
String dataObjectCode="R-BZCJ-XYRXX-001";
//定义接口查询参数xml
String paraXml= ServiceUtil.createXmlQureyPerson(condition, dataObjectCode);
String result=callService(paraXml,interfaceMethod);
return result;
}
public String createKey(String unitCode) {
//定义接口对应方法
String interfaceMethod="CreateGiapPrimaryKey";
//定义接口查询参数xml
String paraXml= ServiceUtil.createKeyXml(unitCode);
String result=callService(paraXml,interfaceMethod);
return result;
}
public String ReportSrevice(Jzryxx ryxx){
String returnxml="";
if("".equals(ryxx.getXyrbh())||ryxx.getXyrbh()==null){
return"";
}
//returnxml =ZipUtils.compress(ServiceUtil.createXmlReport(ryxx));
returnxml =ServiceUtil.createXmlReport(ryxx);
returnxml=callService(returnxml,"ReportService");
return"";
}
public static void main( String ss[]){
QueryService qs=new QueryService();
qs.QueryPersonByRybh("50515050202201204000002");
//CommonFunc comm=new CommonFunc();
//System.out.println(comm.getMainSeq());
}
}
......@@ -17,3 +17,5 @@ zwbzurl4602=http://172.18.117.11:8081/szxc/result/ltHit
zwccurl=http://172.18.117.11:8081/szxc/result/ttHit
qganurl=http://zhyy.xzxt.nm/getGabZyInfoByJyaqMatj.action
#qgzturl=http://localhost:7001/getZtryDetailByZjhm.action?zjhm=
#内蒙古新警综WebService接口地址
nmjz_interfaceurl=http://26.169.99.50:9086/tcwebservice/services/ServiceImpl?wsdl
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