Commit 00873e79 by wuchengwu

添加万里红足迹URl,眼神科技推送修改

parent 1b7e240c
package com.founder.controller; package com.founder.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONException; import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.founder.model.*; import com.founder.model.*;
...@@ -10,8 +9,6 @@ import com.founder.service.IHmCjService; ...@@ -10,8 +9,6 @@ import com.founder.service.IHmCjService;
import com.founder.service.IParamService; import com.founder.service.IParamService;
import com.founder.utils.FileUtils; import com.founder.utils.FileUtils;
import org.apache.commons.codec.binary.Base64; import org.apache.commons.codec.binary.Base64;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
...@@ -36,8 +33,6 @@ import java.net.URLDecoder; ...@@ -36,8 +33,6 @@ import java.net.URLDecoder;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
/** /**
* 虹膜采集Controller * 虹膜采集Controller
...@@ -57,8 +52,8 @@ public class HmCjController { ...@@ -57,8 +52,8 @@ public class HmCjController {
@Autowired @Autowired
private AutoTbXwRycjService rycjService; private AutoTbXwRycjService rycjService;
@Value("${wlhUrl}") @Value("${hmUrl}")
private String wlhUrl; private String hmUrl;
/** /**
* 保存虹膜采集数据 * 保存虹膜采集数据
* *
...@@ -178,7 +173,7 @@ public class HmCjController { ...@@ -178,7 +173,7 @@ public class HmCjController {
model.addObject("xm",request.getParameter("xm")); model.addObject("xm",request.getParameter("xm"));
model.addObject("gmsfhm",request.getParameter("gmsfhm")); model.addObject("gmsfhm",request.getParameter("gmsfhm"));
model.addObject("username",request.getParameter("username")); model.addObject("username",request.getParameter("username"));
model.addObject("wlhUrl",wlhUrl); model.addObject("hmUrl",hmUrl);
String sbcs = request.getParameter("sbcs"); String sbcs = request.getParameter("sbcs");
if("2".equals(sbcs)){ if("2".equals(sbcs)){
model.setViewName("hmcj/wlh"); model.setViewName("hmcj/wlh");
......
...@@ -15,4 +15,4 @@ sjcjEsUrl=http://localhost:8030 ...@@ -15,4 +15,4 @@ sjcjEsUrl=http://localhost:8030
#sjcjEsUrl=http://65.65.66.22:8030 #sjcjEsUrl=http://65.65.66.22:8030
zjtsUrl=http://127.0.0.1:9102/zjtsByRybh zjtsUrl=http://127.0.0.1:9102/zjtsByRybh
wlhUrl=http://127.0.0.1:9102/sendHmxxToWlh hmUrl=http://127.0.0.1:9102
\ No newline at end of file \ No newline at end of file
...@@ -143,6 +143,12 @@ function wlhbaocun(){ ...@@ -143,6 +143,12 @@ function wlhbaocun(){
$("#hmqsqkRight").val($("#rightSelect option:selected").val()); $("#hmqsqkRight").val($("#rightSelect option:selected").val());
$("#hmqsqkLeft").val($("#leftSelect option:selected").val()); $("#hmqsqkLeft").val($("#leftSelect option:selected").val());
$("#sbxh").val($("#device_type option:selected").val()); $("#sbxh").val($("#device_type option:selected").val());
if($("#rightSelect option:selected").val()=='1' && $("#leftSelect option:selected").val() =='1'
&&($("#hmsjLeft").val() == '' || $("#hmsjLeft").val() == null)&&($("#hmsjRight").val() == '' || $("#hmsjRight").val() == null)){
layer.alert('如两眼均残缺不可采集,请到人员信息无法采集说明备注!',{icon:2});
return;
}
if(($("#hmsjLeft").val() == '' || $("#hmsjLeft").val() == null) && $("#hmqsqkLeft").val()=='0'){ if(($("#hmsjLeft").val() == '' || $("#hmsjLeft").val() == null) && $("#hmqsqkLeft").val()=='0'){
layer.alert('请选择左眼缺失情况!'); layer.alert('请选择左眼缺失情况!');
return; return;
...@@ -151,10 +157,6 @@ function wlhbaocun(){ ...@@ -151,10 +157,6 @@ function wlhbaocun(){
layer.alert('请选择右眼缺失情况!'); layer.alert('请选择右眼缺失情况!');
return; return;
} }
if($("#hmsjRight").val() != '0' && $("#hmsjLeft").val()!='0'){
layer.alert('如两眼均残缺不可采集,请到人员信息无法采集说明备注!',{icon:2});
return;
}
$.ajax({ $.ajax({
url:"/saveHmSjXxHb", url:"/saveHmSjXxHb",
...@@ -164,7 +166,7 @@ function wlhbaocun(){ ...@@ -164,7 +166,7 @@ function wlhbaocun(){
dataType:"json", dataType:"json",
success:function(data){ success:function(data){
layer.closeAll(); layer.closeAll();
var code = data.code var code = data.code;
if(code == "0"){ if(code == "0"){
wlhhmts(); wlhhmts();
} else { } else {
...@@ -184,12 +186,14 @@ function wlhhmts(){ ...@@ -184,12 +186,14 @@ function wlhhmts(){
var rybh = window.opener.document.getElementById("rybh").value; var rybh = window.opener.document.getElementById("rybh").value;
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: $('#wlhUrl').val(), url: $('#wlhUrl').val()+'/sendHmxxToWlh',
data: {"asjxgrybh":rybh,"username":$('#username').val()}, data: {"asjxgrybh":rybh,"username":$('#username').val()},
dataType: "json", dataType: "json",
success:function(data){ success:function(data){
if (data.result !=null &&(data.result.cjjg =='1' || data.result.cjjg =='2')){ if (data.result !=null &&(data.result.cjjg =='1' || data.result.cjjg =='2')){
layer.msg('虹膜推送成功!',{icon:1}) layer.msg('虹膜推送成功!',{icon:1})
}else if (data.status_code =='8888' ){
layer.confirm('<span style="color: red">'+data.message+'</span>',{icon: 7, title:'警告提示'});
}else { }else {
if (data.message == null || data.message == ""){ if (data.message == null || data.message == ""){
layer.confirm('<span style="color: red">'+data.result.xxms+'</span>',{icon: 2, title:'推送错误提示'}); layer.confirm('<span style="color: red">'+data.result.xxms+'</span>',{icon: 2, title:'推送错误提示'});
...@@ -201,7 +205,7 @@ function wlhhmts(){ ...@@ -201,7 +205,7 @@ function wlhhmts(){
}, },
error:function(e){ error:function(e){
console.log("error="+JSON.stringify(e)); console.log("error="+JSON.stringify(e));
layer.confirm('<span style="color: red">发生未知错误,请联系工程师!</span>',{icon: 2, title:'错误提示'}); layer.confirm('<span style="color: red">推送路径已更新,请刷新页面或清除缓存后重试!</span>',{icon: 2, title:'错误提示'});
// window.close(); // window.close();
} }
}); });
......
...@@ -211,19 +211,24 @@ function EyeFlagChange(selObj) ...@@ -211,19 +211,24 @@ function EyeFlagChange(selObj)
} }
function ysbaocun(){ function ysbaocun(){debugger
$("#hmqsqkRight").val($("#rightSelect option:selected").val()); $("#hmqsqkRight").val($("#rightSelect option:selected").val());
$("#hmqsqkLeft").val($("#leftSelect option:selected").val()); $("#hmqsqkLeft").val($("#leftSelect option:selected").val());
$("#sbxh").val($("#device_type option:selected").val()); $("#sbxh").val($("#device_type option:selected").val());
if(($("#hmsjLeft").val() == '' || $("#hmsjLeft").val() == null) && ("#hmqsqkLeft").val()=='0'){ $("#hmsjRight").val("sda")
if($("#rightSelect option:selected").val()=='1' && $("#leftSelect option:selected").val() =='1'
&&($("#hmsjLeft").val() == '' || $("#hmsjLeft").val() == null)&&($("#hmsjRight").val() == '' || $("#hmsjRight").val() == null)){
layer.alert('如两眼均残缺不可采集,请到人员信息无法采集说明备注!',{icon:2});
return;
}
if(($("#hmsjLeft").val() == '' || $("#hmsjLeft").val() == null) && $("#hmqsqkLeft").val()=='0'){
layer.alert('请选择左眼缺失情况!'); layer.alert('请选择左眼缺失情况!');
return; return;
} }
if(($("#hmsjRight").val() == '' || $("#hmsjRight").val() == null)&& ("#hmqsqkRight").val()=='0'){ if(($("#hmsjRight").val() == '' || $("#hmsjRight").val() == null)&& $("#hmqsqkRight").val()=='0'){
layer.alert('请选择右眼缺失情况!'); layer.alert('请选择右眼缺失情况!');
return; return;
} }
layer.msg('保存中...');
$.ajax({ $.ajax({
url:"/saveHmSjXxHb", url:"/saveHmSjXxHb",
data:$('#hmForm').serialize(), data:$('#hmForm').serialize(),
...@@ -232,15 +237,9 @@ function ysbaocun(){ ...@@ -232,15 +237,9 @@ function ysbaocun(){
dataType:"json", dataType:"json",
success:function(data){ success:function(data){
layer.closeAll(); layer.closeAll();
var code = data.code var code = data.code;
if(code == "0"){ if(code == "0"){
layer.alert(data.msg, {
skin: 'layui-layer-molv' //样式类名
,closeBtn: 0
}, function(){
yshmts(); yshmts();
});
} else { } else {
layer.alert(data.msg); layer.alert(data.msg);
} }
...@@ -252,20 +251,32 @@ function ysbaocun(){ ...@@ -252,20 +251,32 @@ function ysbaocun(){
} }
function yshmts(){ function yshmts(){
layer.msg('正在推送中!',{icon: 16,shade: [0.5, '#f5f5f5'],scrollbar: false,offset: 'auto', time:10000});
//equipID(); //equipID();
//window.open("/testImages?zwbh="+$("#rybh").val()+"&xm="+$("#xm").val()+"&gmsfhm="+$("#zjhm").val()); //window.open("/testImages?zwbh="+$("#rybh").val()+"&xm="+$("#xm").val()+"&gmsfhm="+$("#zjhm").val());
var rybh = window.opener.document.getElementById("rybh").value; var rybh = window.opener.document.getElementById("rybh").value;
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "/sendHmxxToYanShen", url: $('#yskjUrl').val()+'/sendHmxxToYanShen',
data: {"asjxgrybh":rybh}, data: {"asjxgrybh":rybh,"username":$('#username').val()},
dataType: "json", dataType: "json",
success:function(data){ success:function(data){
window.close(); if (data.result !=null &&(data.result.cjjg =='1' || data.result.cjjg =='2')){
layer.msg('虹膜推送成功!',{icon:1})
}else if (data.status_code =='8888' ){
layer.confirm('<span style="color: red">'+data.message+'</span>',{icon: 7, title:'警告提示'});
}else {
if (data.message == null || data.message == ""){
layer.confirm('<span style="color: red">'+data.result.xxms+'</span>',{icon: 2, title:'推送错误提示'});
}else {
layer.confirm('<span style="color: red">'+data.message+'</span>',{icon: 2, title:'推送错误提示'});
}
}
}, },
error:function(e){ error:function(e){
console.log("error="+JSON.stringify(e)); console.log("error="+JSON.stringify(e));
window.close(); layer.confirm('<span style="color: red">发生未知错误,请联系工程师!</span>',{icon: 2, title:'错误提示'});
// window.close();
} }
}); });
} }
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<input type="hidden" id="xm" name="xm" th:value="${xm}"/> <input type="hidden" id="xm" name="xm" th:value="${xm}"/>
<input type="hidden" id="gmsfhm" name="gmsfhm" th:value="${gmsfhm}"/> <input type="hidden" id="gmsfhm" name="gmsfhm" th:value="${gmsfhm}"/>
<input type="hidden" id="username" name="username" th:value="${username}"/> <input type="hidden" id="username" name="username" th:value="${username}"/>
<input type="hidden" id="wlhUrl" name="wlhUrl" th:value="${wlhUrl}"/> <input type="hidden" id="wlhUrl" name="wlhUrl" th:value="${hmUrl}"/>
<input type="hidden" id="hmywdm" name="hmywdm" value=""> <input type="hidden" id="hmywdm" name="hmywdm" value="">
<input type="hidden" id="hmsjLeft" name="hmsjLeft" value=""> <input type="hidden" id="hmsjLeft" name="hmsjLeft" value="">
<input type="hidden" id="hmsjRight" name="hmsjRight" value=""> <input type="hidden" id="hmsjRight" name="hmsjRight" value="">
......
...@@ -167,6 +167,8 @@ ...@@ -167,6 +167,8 @@
<input type="hidden" id="rybh" name="rybh" th:value="${rybh}"/> <input type="hidden" id="rybh" name="rybh" th:value="${rybh}"/>
<input type="hidden" id="xm" name="xm" th:value="${xm}"/> <input type="hidden" id="xm" name="xm" th:value="${xm}"/>
<input type="hidden" id="gmsfhm" name="gmsfhm" th:value="${gmsfhm}"/> <input type="hidden" id="gmsfhm" name="gmsfhm" th:value="${gmsfhm}"/>
<input type="hidden" id="username" name="username" th:value="${username}"/>
<input type="hidden" id="yskjUrl" name="yskjUrl" th:value="${hmUrl}"/>
<input type="hidden" id="hmywdm" name="hmywdm" value=""> <input type="hidden" id="hmywdm" name="hmywdm" value="">
<input type="hidden" id="hmsjLeft" name="hmsjLeft" value=""> <input type="hidden" id="hmsjLeft" name="hmsjLeft" value="">
<input type="hidden" id="hmsjRight" name="hmsjRight" value=""> <input type="hidden" id="hmsjRight" name="hmsjRight" value="">
......
...@@ -17,7 +17,8 @@ public class FilterConfig extends WebMvcConfigurerAdapter { ...@@ -17,7 +17,8 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
// //
registry.addInterceptor(InterceptorConfig). registry.addInterceptor(InterceptorConfig).
addPathPatterns("/**"). addPathPatterns("/**").
excludePathPatterns("/Tsjgtest","/sendHmxxToHongba","/irisking/collect/result","/zjtsByRybh","/sendHmxxToWlh"); excludePathPatterns("/Tsjgtest","/sendHmxxToHongba","/irisking/collect/result","/zjtsByRybh"
,"/sendHmxxToWlh","/sendHmxxToYanShen");
} }
......
...@@ -100,6 +100,7 @@ ...@@ -100,6 +100,7 @@
CLIENT_ID, CLIENT_ID,
REQUEST_ID, REQUEST_ID,
SBCSDM, SBCSDM,
SFTS,
XXSC_PDBZ from TB_XW_YTHCJ_HM where (XXSC_PDBZ='0' or XXSC_PDBZ is null) and RYBH = #{rybh , jdbcType=VARCHAR } XXSC_PDBZ from TB_XW_YTHCJ_HM where (XXSC_PDBZ='0' or XXSC_PDBZ is null) and RYBH = #{rybh , jdbcType=VARCHAR }
</select> </select>
......
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