日志修改动作参数为service,流量统计client改为由连接池工具clientUtil中获取

This commit is contained in:
zhanghongqing
2018-11-22 19:25:25 +08:00
parent 6a9f2025a2
commit 73d4bfee8b
32 changed files with 99 additions and 132 deletions

View File

@@ -16,7 +16,6 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.Set;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.client.WebTarget; import javax.ws.rs.client.WebTarget;
@@ -25,21 +24,16 @@ import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import org.apache.http.HttpStatus; import org.apache.http.HttpStatus;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException; import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.config.RequestConfig; import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPatch; import org.apache.http.client.methods.HttpPatch;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.utils.URIBuilder; import org.apache.http.client.utils.URIBuilder;
import org.apache.http.entity.StringEntity; import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.DefaultHttpRequestRetryHandler; import org.apache.http.impl.client.DefaultHttpRequestRetryHandler;
import org.apache.http.impl.client.HttpClients; import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils; import org.apache.http.util.EntityUtils;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
@@ -64,34 +58,30 @@ public class HttpClientUtil {
* @throws IOException * @throws IOException
* @throws ClientProtocolException * @throws ClientProtocolException
*/ */
public static String get(String url) throws Exception{ public static String get(String destUrl) throws Exception{
CloseableHttpClient httpclient =null;
//请求结果
CloseableHttpResponse response = null;
String content ="";
logger.info("流量统计数据请求路径:"+url);
//执行get方法 //执行get方法
String result = null;
Response response=null;
String url = "";
try { try {
//实例化get方法 URIBuilder uriBuilder = new URIBuilder(destUrl);
HttpGet httpget = new HttpGet(url); System.err.println(uriBuilder);
//实例化httpclient url=uriBuilder.toString();
httpclient = HttpClients.createDefault(); logger.info("流量统计数据请求路径:"+url);
requestConfig = RequestConfig.custom() //创建连接
.setSocketTimeout( Constants.HTTP_SOCKET_TIMEOUT) WebTarget wt = ClientUtil.getWebTarger(url);
.setConnectTimeout( Constants.HTTP_CONNECT_TIMEOUT) logger.info("getMsg url:"+url);
.setConnectionRequestTimeout( Constants.HTTP_CONNECT_REQUEST_TIMEOUT) //获取响应结果
.build(); Builder header = wt.request(MediaType.APPLICATION_JSON).header("Content-Type", MediaType.APPLICATION_JSON);
httpclient = HttpClients.custom().setDefaultRequestConfig(requestConfig) response= header.get();
.setRetryHandler(new DefaultHttpRequestRetryHandler( Constants.HTTP_CONNECT_RETRY_TIMES, false)) int status = response.getStatus();
.build(); if (status == HttpStatus.SC_OK) {
response = httpclient.execute(httpget); result= response.readEntity(String.class);
if(response.getStatusLine().getStatusCode()==HttpStatus.SC_OK){ //调用处理数据方法
content = EntityUtils.toString(response.getEntity(),"utf-8"); logger.info("获取消息成功,相应内容如下: " + result);
logger.info("获取流量统计数据成功,相应内容如下: " + content); } else {
}else { logger.error("获取消息失败,相应内容如下: " + result);
logger.error("获取消息失败,相应内容如下: " + content); throw new ConnectException("流量统计服务接口连接错误"+result);
throw new ConnectException("流量统计服务接口连接错误"+content);
} }
} catch (Exception e) { } catch (Exception e) {
throw e; throw e;
@@ -99,17 +89,12 @@ public class HttpClientUtil {
if (response != null) { if (response != null) {
try { try {
response.close(); response.close();
} catch (IOException e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
try {
httpclient.close();
} catch (IOException e) {
e.printStackTrace();
} }
} return result;
return content;
} }
/** /**
@@ -120,7 +105,7 @@ public class HttpClientUtil {
* @throws IOException * @throws IOException
* @throws ClientProtocolException * @throws ClientProtocolException
*/ */
public String post(String url,Map<String, String> params) throws ClientProtocolException, IOException{ /* public String post(String url,Map<String, String> params) throws ClientProtocolException, IOException{
//实例化httpClient //实例化httpClient
CloseableHttpClient httpclient =null; CloseableHttpClient httpclient =null;
//结果 //结果
@@ -173,7 +158,7 @@ public class HttpClientUtil {
} }
} }
return content; return content;
} } */
/** /**
* 处理patch请求. * 处理patch请求.
* @param url 请求路径 * @param url 请求路径
@@ -199,13 +184,9 @@ public class HttpClientUtil {
httpclient = HttpClients.createDefault(); httpclient = HttpClients.createDefault();
//实例化patch方法 //实例化patch方法
HttpPatch httpPatch = new HttpPatch(url); HttpPatch httpPatch = new HttpPatch(url);
httpPatch.setHeader("Content-type", "application/json"); httpPatch.setHeader("Content-type", "application/json");
httpPatch.setHeader("Charset", "utf-8"); httpPatch.setHeader("Charset", "utf-8");
httpPatch.setHeader("Accept", "application/json"); httpPatch.setHeader("Accept", "application/json");
httpPatch.setHeader("Accept-Charset", "utf-8"); httpPatch.setHeader("Accept-Charset", "utf-8");
//提交的参数 //提交的参数
// UrlEncodedFormEntity uefEntity = new UrlEncodedFormEntity(nvps, "UTF-8"); // UrlEncodedFormEntity uefEntity = new UrlEncodedFormEntity(nvps, "UTF-8");
@@ -236,12 +217,14 @@ public class HttpClientUtil {
e.printStackTrace(); e.printStackTrace();
} }
} }
if (httpclient != null) {
try { try {
httpclient.close(); httpclient.close();
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
}
return content; return content;
} }

View File

@@ -845,7 +845,7 @@ public class BaseController {
if (entry.getCfgId() != null) { if (entry.getCfgId() != null) {
params.put("searchCfgId", entry.getCfgId()); params.put("searchCfgId", entry.getCfgId());
} }
if (entry.getOrderBy() != null&&entry.getOrderBy()!="") { if (StringUtils.isNotBlank(entry.getOrderBy())) {
params.put("orderBy", entry.getOrderBy()); params.put("orderBy", entry.getOrderBy());
} }
} }

View File

@@ -60,13 +60,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<%-- <form:option value=""><spring:message code="action"/></form:option> --%> <%-- <form:option value=""><spring:message code="action"/></form:option> --%>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,7 +52,7 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
@@ -119,7 +119,7 @@ $(document).ready(function(){
<form:select path="direction" class="selectpicker select2 form-control"> <form:select path="direction" class="selectpicker select2 form-control">
<form:option value=""><spring:message code="select"/></form:option> <form:option value=""><spring:message code="select"/></form:option>
<c:forEach items="${fns:getDictList('LOG_DIRECTION')}" var="dict"> <c:forEach items="${fns:getDictList('LOG_DIRECTION')}" var="dict">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:forEach> </c:forEach>
</form:select> </form:select>
</div> </div>

View File

@@ -50,13 +50,13 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -70,13 +70,13 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -49,13 +49,13 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -51,13 +51,13 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -48,13 +48,13 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -51,13 +51,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -51,13 +51,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,11 +52,11 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${fns:getDictList('SERVICE_ACTION')}" var="action"> <c:forEach items="${fns:getDictList('SERVICE_ACTION')}" var="action">
<c:if test="${(action.itemValue eq 'action_reject') or (action.itemValue eq 'action_monit') }"> <c:if test="${(action.itemValue eq 'action_reject') or (action.itemValue eq 'action_monit') }">
<form:option value="${action.itemCode }" ><spring:message code="${action.itemValue }"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${action.itemValue }"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</form:select> </form:select>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -67,13 +67,13 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -51,13 +51,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -49,33 +49,17 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<select id="action" path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option>
<c:set var="actionIndex" value="0"></c:set> <c:forEach items="${serviceList}" var="service"
<c:forEach items="${serviceList}" var="service" varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96)}"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<c:set var="actionIndex" value="${actionIndex+1}"></c:set> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
<c:if test="${ (actionIndex > 1) || (actionIndex == 0) }"> </form:select>
<option value=""><spring:message code="action"/></option>
</c:if>
<c:forEach items="${serviceList}" var="service" varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96)}">
<option value="${dict.itemCode}"
<c:if test="${log.action eq dict.itemCode}">
selected="selected"
</c:if>
>
<spring:message code="${dict.itemValue}"/>
</option>
</c:if>
</c:forEach>
</c:forEach>
</select>
</div> </div>
<div class="pull-left"> <div class="pull-left">
<div class="input-group"> <div class="input-group">

View File

@@ -50,13 +50,13 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -52,13 +52,13 @@ $(document).ready(function(){
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>

View File

@@ -51,13 +51,13 @@
<!-- 搜索内容与操作按钮栏 --> <!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-left"> <div class="pull-left">
<form:select path="action" class="selectpicker select2 input-small"> <form:select path="service" class="selectpicker select2 input-small">
<form:option value=""><spring:message code="action"/></form:option> <form:option value=""><spring:message code="action"/></form:option>
<c:forEach items="${serviceList}" var="service" <c:forEach items="${serviceList}" var="service"
varStatus="satus"> varStatus="satus">
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict"> <c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
<c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }"> <c:if test="${(dict.itemCode eq service.action) && (service.action ne 128) && (service.action ne 32) && (service.action ne 96) }">
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option> <form:option value="${service.serviceId}"><spring:message code="${dict.itemValue}"/></form:option>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>