Commit 0a7bf38d by mayunfei

判断相关编号指令是否重复下达

parent ae711986
spring.datasource.url=jdbc:oracle:thin:@192.168.0.105:1521:XZXT spring.datasource.url=jdbc:oracle:thin:@192.168.0.108:1521:XZXT
spring.datasource.username=XZXT spring.datasource.username=XZXT
spring.datasource.password=XZXT spring.datasource.password=XZXT
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
...@@ -9,7 +9,7 @@ logging.level.org.spring.springboot.dao=debug ...@@ -9,7 +9,7 @@ logging.level.org.spring.springboot.dao=debug
#redis config #redis config
#\u65B0\u7586 #\u65B0\u7586
spring.redis.host=192.168.0.105 spring.redis.host=192.168.0.108
#\u5185\u8499 #\u5185\u8499
#redis.host=10.100.17.124 #redis.host=10.100.17.124
spring.redis.port=6379 spring.redis.port=6379
......
...@@ -1985,12 +1985,11 @@ ...@@ -1985,12 +1985,11 @@
and u.scbz=0 and u.open_flag='1' and spqx.USERID = u.id and u.scbz=0 and u.open_flag='1' and spqx.USERID = u.id
</select> </select>
<!-- 审批权限查询与设置end -->
<select id="doQueryZt" parameterType="java.lang.String" resultType="java.lang.Integer"> <select id="doQueryZt" parameterType="java.lang.String" resultType="java.lang.Integer">
SELECT count(*) from TB_YW_ZCZL SELECT count(*) from TB_YW_ZCZL
where XGXX_XXZJBH = #{xxjzbh} where XGXX_XXZJBH = #{xxjzbh}
</select> </select>
<!-- 审批权限查询与设置end -->
</mapper> </mapper>
\ No newline at end of file
...@@ -651,6 +651,7 @@ ...@@ -651,6 +651,7 @@
return; return;
} }
} }
var zljsdwdm= $("#zljsdwdm").combotree("getValue"); var zljsdwdm= $("#zljsdwdm").combotree("getValue");
if(zljsdwdm==''){ if(zljsdwdm==''){
layer.alert("接受单位必填!","提示"); layer.alert("接受单位必填!","提示");
...@@ -675,39 +676,89 @@ ...@@ -675,39 +676,89 @@
layer.alert("工作要求必填!","提示"); layer.alert("工作要求必填!","提示");
return; return;
} }
//判断单位是否存在联络员 //判断指令是否重复下达
$.ajax({ if($("#xgxxXxzjbh").val() != "" && $("#xgxxXxzjbh").val() != null){
url:'/queryLlys?unitcodes='+zljsdwdm, $.ajax({
type:"post", url:"/doQueryZt",
success:function (data) { data:{"xxzjbh":$("#xgxxXxzjbh").val()},
layer.close(index); type:"POST",
debugger success:function(data){
if(data=='1'){ if(data == "1"){
//存在联络员 layer.alert("该编号("+$("#xgxxXxzjbh").val()+")已经下达过侦查指令,请勿重复下达!","提示");
var index = layer.load(1, { return;
content: '数据加载中...', }else{
shade: [0.35,'#fff'], //判断单位是否存在联络员
success: function(layero) { $.ajax({
/*layero.css('padding-left', '30px');*/ url:'/queryLlys?unitcodes='+zljsdwdm,
layero.find('.layui-layer-content').css({ type:"post",
'padding-top': '40px', success:function (data) {
'width': '70px', layer.close(index);
'background-position-x': '16px' debugger
}); if(data=='1'){
} //存在联络员
}); var index = layer.load(1, {
document.zczlForm.action = "/doAddZczlxx?flag="+flag; content: '数据加载中...',
document.zczlForm.submit(); shade: [0.35,'#fff'],
}else{ success: function(layero) {
//操作失败-存在单位没有联络员 /*layero.css('padding-left', '30px');*/
layer.alert(data+"不存在联络员,不能进行指令下发!","提示",function(res){ layero.find('.layui-layer-content').css({
if(res){ 'padding-top': '40px',
layer.closeAll(); 'width': '70px',
} 'background-position-x': '16px'
}); });
}
});
document.zczlForm.action = "/doAddZczlxx?flag="+flag;
document.zczlForm.submit();
}else{
//操作失败-存在单位没有联络员
layer.alert(data+"不存在联络员,不能进行指令下发!","提示",function(res){
if(res){
layer.closeAll();
}
});
}
}
});
}
} }
} })
}); }else{
//判断单位是否存在联络员
$.ajax({
url:'/queryLlys?unitcodes='+zljsdwdm,
type:"post",
success:function (data) {
layer.close(index);
debugger
if(data=='1'){
//存在联络员
var index = layer.load(1, {
content: '数据加载中...',
shade: [0.35,'#fff'],
success: function(layero) {
/*layero.css('padding-left', '30px');*/
layero.find('.layui-layer-content').css({
'padding-top': '40px',
'width': '70px',
'background-position-x': '16px'
});
}
});
document.zczlForm.action = "/doAddZczlxx?flag="+flag;
document.zczlForm.submit();
}else{
//操作失败-存在单位没有联络员
layer.alert(data+"不存在联络员,不能进行指令下发!","提示",function(res){
if(res){
layer.closeAll();
}
});
}
}
});
}
......
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