40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
<%@ page contentType="text/html; charset=UTF-8" %>
|
|
<%@ page import="weaver.general.Util" %>
|
|
<%@ page import="java.util.*" %>
|
|
<%@ page import="com.alibaba.fastjson.JSONObject" %>
|
|
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
|
|
<jsp:useBean id="bb" class="weaver.general.BaseBean" />
|
|
<%
|
|
JSONObject jsonObject = new JSONObject();
|
|
boolean flag = false;
|
|
|
|
String htbhcs = Util.null2String(request.getParameter("htbh"));
|
|
Set<String> htSet = new HashSet<>();
|
|
rs.executeQuery("select htbh from uf_yrsg_yyxx");
|
|
while(rs.next()){
|
|
String htbhs = Util.null2String(rs.getString("htbh"));
|
|
if(htbhs != null && !"".equals(htbhs)){
|
|
for(String htbh : htbhs.split(",")){
|
|
htSet.add(htbh);
|
|
}
|
|
}
|
|
}
|
|
if(htbhcs.contains(",")){
|
|
String[] hhh = htbhcs.split(",");
|
|
for(int i=0;i<hhh.length;i++){
|
|
String htbhnew = hhh[i];
|
|
//存在
|
|
if(htSet.contains(htbhnew)){
|
|
flag = true;
|
|
break;
|
|
}
|
|
}
|
|
}else{
|
|
//存在
|
|
if(htSet.contains(htbhcs)){
|
|
flag = true;
|
|
}
|
|
}
|
|
jsonObject.put("flag",flag);
|
|
out.print(jsonObject.toString());
|
|
%> |