Merge branch 'develop' of http://192.168.10.125/k18_web/NFS.git into develop
This commit is contained in:
@@ -164,26 +164,6 @@ public class IpAddrPoolController extends BaseController{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 校验地址池是否被策略引用
|
|
||||||
* @param addrPoolIds
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@ResponseBody
|
|
||||||
@RequestMapping(value = {"/ajaxIsUsed"})
|
|
||||||
public boolean ajaxIsUsed(String addrPoolIds, HttpServletRequest request, HttpServletResponse response){
|
|
||||||
for (String addrPoolId : addrPoolIds.split(",")) {
|
|
||||||
List<BaseIpCfg> ipList = ipCfgService.checkAddrPoolIsUsed(addrPoolId);
|
|
||||||
if(ipList != null && ipList.size() > 0){
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@RequestMapping(value = {"/getCGIInfo"})
|
@RequestMapping(value = {"/getCGIInfo"})
|
||||||
public Map<String,Object> getUserInfo(Integer addrPoolId,String cmd,HttpServletRequest request,HttpServletResponse response){
|
public Map<String,Object> getUserInfo(Integer addrPoolId,String cmd,HttpServletRequest request,HttpServletResponse response){
|
||||||
|
|||||||
@@ -258,6 +258,27 @@ public class IpMultiplexController extends CommonController {
|
|||||||
return addrPoolsNew;
|
return addrPoolsNew;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 校验地址池是否被策略引用
|
||||||
|
* @param addrPoolIds
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ResponseBody
|
||||||
|
@RequestMapping(value = {"/ajaxIsUsed"})
|
||||||
|
public boolean ajaxIsUsed(String addrPoolIds, HttpServletRequest request, HttpServletResponse response){
|
||||||
|
for (String addrPoolId : addrPoolIds.split(",")) {
|
||||||
|
List<IpReusePolicyCfg> ipList = ipMultiplexService.checkAddrPoolIsUsed(addrPoolId);
|
||||||
|
if(ipList != null && ipList.size() > 0){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = {"/dnatPolicyList"})
|
@RequestMapping(value = {"/dnatPolicyList"})
|
||||||
public String dnatPolicyList(String cfgName,Model model,@ModelAttribute("cfg")IpPortCfg cfg,HttpServletRequest request,HttpServletResponse response) {
|
public String dnatPolicyList(String cfgName,Model model,@ModelAttribute("cfg")IpPortCfg cfg,HttpServletRequest request,HttpServletResponse response) {
|
||||||
this._ipList(cfgName,model, cfg, request, response);
|
this._ipList(cfgName,model, cfg, request, response);
|
||||||
|
|||||||
@@ -46,8 +46,5 @@ public interface IpCfgDao extends CrudDao<BaseIpCfg>{
|
|||||||
public void updateCfgValid(BaseCfg entity);
|
public void updateCfgValid(BaseCfg entity);
|
||||||
public void auditCfg(BaseCfg entity);
|
public void auditCfg(BaseCfg entity);
|
||||||
public List<CfgIndexInfo> getIpCfgList(CfgIndexInfo entity);
|
public List<CfgIndexInfo> getIpCfgList(CfgIndexInfo entity);
|
||||||
|
|
||||||
// 校验地址池是否被策略引用
|
|
||||||
public List<BaseIpCfg> checkAddrPoolIsUsed(@Param("addrPoolId")String addrPoolId);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1143,14 +1143,4 @@
|
|||||||
</choose>
|
</choose>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkAddrPoolIsUsed" resultMap="BaseIpMap">
|
|
||||||
SELECT
|
|
||||||
<include refid="BaseIpCfg_Column_List_with_id" />
|
|
||||||
FROM
|
|
||||||
ip_port_cfg
|
|
||||||
WHERE
|
|
||||||
is_valid != -1 AND
|
|
||||||
ir_type IS NOT NULL AND
|
|
||||||
user_region2 = #{addrPoolId,jdbcType=VARCHAR}
|
|
||||||
</select>
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -21,5 +21,8 @@ public interface IpMultiplexDao extends CrudDao<IpMultiplexDao>{
|
|||||||
void updatePolicyCfg(IpReusePolicyCfg entity);
|
void updatePolicyCfg(IpReusePolicyCfg entity);
|
||||||
|
|
||||||
String getUserType(@Param("userName")String userName);
|
String getUserType(@Param("userName")String userName);
|
||||||
|
|
||||||
|
// 校验地址池是否被引用
|
||||||
|
List<IpReusePolicyCfg> checkAddrPoolIsUsed(@Param("addrPoolId")String addrPoolId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -311,4 +311,13 @@
|
|||||||
WHERE cfg_id = #{cfgId,jdbcType=BIGINT}
|
WHERE cfg_id = #{cfgId,jdbcType=BIGINT}
|
||||||
|
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<select id="checkAddrPoolIsUsed" resultMap="policyMap">
|
||||||
|
SELECT
|
||||||
|
<include refid="policyColumns"/>
|
||||||
|
FROM
|
||||||
|
ip_reuse_policy_cfg r
|
||||||
|
WHERE
|
||||||
|
r.addr_pool_id = #{addrPoolId} AND r.is_valid != -1
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -1578,13 +1578,13 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
list = configSynchronizationDao.getPxyObjTrustedCertCfgList(entity);
|
list = configSynchronizationDao.getPxyObjTrustedCertCfgList(entity);
|
||||||
for(int i=0;i<list.size();i++){
|
for(int i=0;i<list.size();i++){
|
||||||
PxyObjTrustedCaCert cfg = (PxyObjTrustedCaCert) list.get(i);
|
PxyObjTrustedCaCert cfg = (PxyObjTrustedCaCert) list.get(i);
|
||||||
newList.add(convertCallBackProxyObjTrustedCa(cfg,null));
|
newList.addAll(convertCallBackProxyObjTrustedCa(cfg,null));
|
||||||
}
|
}
|
||||||
}else if(className.equals("PxyObjTrustedCaCrl")){
|
}else if(className.equals("PxyObjTrustedCaCrl")){
|
||||||
list = configSynchronizationDao.getPxyObjTrustedCrlCfgList(entity);
|
list = configSynchronizationDao.getPxyObjTrustedCrlCfgList(entity);
|
||||||
for(int i=0;i<list.size();i++){
|
for(int i=0;i<list.size();i++){
|
||||||
PxyObjTrustedCaCrl cfg = (PxyObjTrustedCaCrl) list.get(i);
|
PxyObjTrustedCaCrl cfg = (PxyObjTrustedCaCrl) list.get(i);
|
||||||
newList.add(convertCallBackProxyObjTrustedCa(null,cfg));
|
newList.addAll(convertCallBackProxyObjTrustedCa(null,cfg));
|
||||||
}
|
}
|
||||||
}else if(className.equals("DnsResStrategy")){
|
}else if(className.equals("DnsResStrategy")){
|
||||||
list = configSynchronizationDao.getDnsStrategyList(entity);
|
list = configSynchronizationDao.getDnsStrategyList(entity);
|
||||||
|
|||||||
@@ -932,12 +932,4 @@ public class IpCfgService extends CrudService<IpCfgDao,BaseIpCfg> {
|
|||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 校验地址池是否被策略引用
|
|
||||||
* @param addrPoolId
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public List<BaseIpCfg> checkAddrPoolIsUsed(String addrPoolId) {
|
|
||||||
return ipCfgDao.checkAddrPoolIsUsed(addrPoolId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
import com.beust.jcommander.internal.Lists;
|
import com.beust.jcommander.internal.Lists;
|
||||||
import com.nis.domain.Page;
|
import com.nis.domain.Page;
|
||||||
import com.nis.domain.configuration.IpReusePolicyCfg;
|
import com.nis.domain.configuration.IpReusePolicyCfg;
|
||||||
import com.nis.domain.configuration.UserManage;
|
|
||||||
import com.nis.domain.maat.ToMaatResult;
|
import com.nis.domain.maat.ToMaatResult;
|
||||||
import com.nis.exceptions.MaatConvertException;
|
import com.nis.exceptions.MaatConvertException;
|
||||||
import com.nis.util.ConfigServiceUtil;
|
import com.nis.util.ConfigServiceUtil;
|
||||||
@@ -192,4 +191,13 @@ public class IpMultiplexService extends BaseService{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 校验地址池是否被策略引用
|
||||||
|
* @param addrPoolId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public List<IpReusePolicyCfg> checkAddrPoolIsUsed(String addrPoolId) {
|
||||||
|
return ipMultiplexDao.checkAddrPoolIsUsed(addrPoolId);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
-- ftp
|
|
||||||
UPDATE function_service_dict SET is_valid = 0 WHERE dict_id = 42 AND function_id = 51;
|
|
||||||
-- mail地址
|
|
||||||
UPDATE function_service_dict SET is_valid = 0 WHERE dict_id = 149 AND function_id = 37;
|
|
||||||
-- mail高级
|
|
||||||
UPDATE function_service_dict SET is_valid = 0 WHERE dict_id = 37 AND function_id = 35;
|
|
||||||
@@ -23,6 +23,23 @@
|
|||||||
}); */
|
}); */
|
||||||
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
$("#protocolId").val($(".action:checked").attr("protocolId"));
|
$("#protocolId").val($(".action:checked").attr("protocolId"));
|
||||||
|
|
||||||
|
var action=$("input[name='action']:checked").val();
|
||||||
|
if(action==16){
|
||||||
|
$("#keywords").addClass("hidden");
|
||||||
|
}else{
|
||||||
|
$("#keywords").removeClass("hidden");
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".action").on("change", function() {
|
||||||
|
var action=$("input[name='action']:checked").val();
|
||||||
|
if(action==16){
|
||||||
|
$("#keywords").addClass("hidden");
|
||||||
|
}else{
|
||||||
|
$("#keywords").removeClass("hidden");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$("#cfgFrom").validate(
|
$("#cfgFrom").validate(
|
||||||
{
|
{
|
||||||
errorPlacement : function(error, element) {
|
errorPlacement : function(error, element) {
|
||||||
@@ -299,7 +316,7 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${region.configServiceType eq 'keywords' }">
|
<c:if test="${region.configServiceType eq 'keywords' }">
|
||||||
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
||||||
<h4 class="form-section">
|
<h4 class="form-section" id="keywords">
|
||||||
<spring:message code="${region.configRegionValue}" />
|
<spring:message code="${region.configRegionValue}" />
|
||||||
<small> <span
|
<small> <span
|
||||||
class="glyphicon glyphicon-plus ${tabName}Add"
|
class="glyphicon glyphicon-plus ${tabName}Add"
|
||||||
|
|||||||
@@ -17,9 +17,22 @@
|
|||||||
/* $("#cancel").on("click", function() {
|
/* $("#cancel").on("click", function() {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
|
var action=$("input[name='action']:checked").val()
|
||||||
|
if(action==16){
|
||||||
|
$("#NTC_MAIL_BODY").addClass("hidden");
|
||||||
|
}else{
|
||||||
|
$("#NTC_MAIL_BODY").removeClass("hidden");
|
||||||
|
}
|
||||||
$(".action").on("change", function() {
|
$(".action").on("change", function() {
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
$("#protocolId").val($(this).attr("protocolId"));
|
$("#protocolId").val($(this).attr("protocolId"));
|
||||||
|
var action=$("input[name='action']:checked").val()
|
||||||
|
if(action==16){
|
||||||
|
$("#NTC_MAIL_BODY").addClass("hidden");
|
||||||
|
}else{
|
||||||
|
$("#NTC_MAIL_BODY").removeClass("hidden");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$("#fileInfo").on('click',function(){
|
$("#fileInfo").on('click',function(){
|
||||||
$("#file").trigger("click");
|
$("#file").trigger("click");
|
||||||
@@ -269,7 +282,7 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${region.regionType eq 3 }">
|
<c:if test="${region.regionType eq 3 }">
|
||||||
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
<c:set var="tabName" value="${region.configRegionValue}Tab"></c:set>
|
||||||
<h4 class="form-section">
|
<h4 class="form-section" id="${region.configRegionValue}" >
|
||||||
<spring:message code="${region.configRegionValue}" />
|
<spring:message code="${region.configRegionValue}" />
|
||||||
<small> <span
|
<small> <span
|
||||||
class="glyphicon glyphicon-plus ${tabName}Add"
|
class="glyphicon glyphicon-plus ${tabName}Add"
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ background:#3d3d3d;
|
|||||||
<a href="${ctx}/sys/help" id="helpHref" target="mainFrame" >
|
<a href="${ctx}/sys/help" id="helpHref" target="mainFrame" >
|
||||||
<i class="icon-question font-sharp"></i>
|
<i class="icon-question font-sharp"></i>
|
||||||
<span class="username username-hide-on-mobile" id="help">
|
<span class="username username-hide-on-mobile" id="help">
|
||||||
help
|
<spring:message code="help" />
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -18,14 +18,19 @@ $(function(){
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var trContent = "";
|
var trContent = "";
|
||||||
<c:forEach items="${datas}" var="data">
|
<c:forEach items="${datas}" var="data">
|
||||||
|
var flag=false;
|
||||||
trContent += "<tr>";
|
trContent += "<tr>";
|
||||||
<c:forEach items="${data.key}" var="entranceId" varStatus="status">
|
<c:forEach items="${data.key}" var="entranceId" varStatus="status">
|
||||||
trContent += "<td>";
|
trContent += "<td>";
|
||||||
<c:forEach items="${fns:getDictList('ENTRANCE')}" var="dic">
|
<c:forEach items="${fns:getDictList('ENTRANCE')}" var="dic">
|
||||||
<c:if test="${dic.itemCode eq entranceId}">
|
<c:if test="${dic.itemCode eq entranceId}">
|
||||||
trContent += "<spring:message code="${dic.itemValue}"/>";
|
trContent += "<spring:message code="${dic.itemValue}"/>";
|
||||||
|
flag=true;
|
||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
if(!flag){
|
||||||
|
trContent +="${entranceId}";
|
||||||
|
}
|
||||||
trContent += "</td>";
|
trContent += "</td>";
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
|
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
$("#myexport").click();
|
$("#myexport").click();
|
||||||
$("caption").remove();
|
$("caption").remove();
|
||||||
totaltb(pato,size);
|
//totaltb(pato,size);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -253,10 +253,10 @@ function customColumnClick(){
|
|||||||
|
|
||||||
//合计table中某一段数据
|
//合计table中某一段数据
|
||||||
function totaltb(paNo,paSize){
|
function totaltb(paNo,paSize){
|
||||||
if(paSize>0){
|
/* if(paSize>0){
|
||||||
size=paSize;
|
size=paSize;
|
||||||
pato=paNo;
|
pato=paNo;
|
||||||
}
|
} */
|
||||||
$('#total').remove();
|
$('#total').remove();
|
||||||
var reportBusinessType=$("#reportBusinessType").val()
|
var reportBusinessType=$("#reportBusinessType").val()
|
||||||
var tableId="tagTable";
|
var tableId="tagTable";
|
||||||
@@ -285,10 +285,10 @@ function customColumnClick(){
|
|||||||
s=2;
|
s=2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(paNo > 1){
|
/* if(paNo > 1){
|
||||||
row=(paNo-1)*paSize+1;
|
row=(paNo-1)*paSize+1;
|
||||||
}
|
} */
|
||||||
for (var i = row; i < rows.length; i++) {
|
for (var i = 1; i < rows.length; i++) {
|
||||||
for (var j = s; j <rows[i].cells.length ; j++) {
|
for (var j = s; j <rows[i].cells.length ; j++) {
|
||||||
if(list[j]!=null){
|
if(list[j]!=null){
|
||||||
list[j-s]=parseInt(rows[i].cells[j].innerHTML)+parseInt(list[j-s]);
|
list[j-s]=parseInt(rows[i].cells[j].innerHTML)+parseInt(list[j-s]);
|
||||||
@@ -296,10 +296,10 @@ function customColumnClick(){
|
|||||||
list[j-s]=parseInt(rows[i].cells[j].innerHTML);
|
list[j-s]=parseInt(rows[i].cells[j].innerHTML);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
num++;
|
/* num++;
|
||||||
if(num == paSize){
|
if(num == paSize){
|
||||||
break;
|
break;
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
if(rows.length > 1){
|
if(rows.length > 1){
|
||||||
var trtotal="";
|
var trtotal="";
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
<title></title>
|
<title></title>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document) .ready(function() {
|
$(document) .ready(function() {
|
||||||
top.$.jBox.closeTip();
|
|
||||||
$("#cfgFrom").validate({
|
$("#cfgFrom").validate({
|
||||||
submitHandler : function(form) {
|
submitHandler : function(form) {
|
||||||
top.$.jBox.tip("The system is being maintained and temporarily inaccessible.",'loading',{opacity:0.5,persistent:true});
|
top.$.jBox.tip("The system is being maintained and temporarily inaccessible.",'loading',{opacity:0.5,persistent:true});
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ var GetLogTotal=function(_data){
|
|||||||
for(var i=0;i<data.length;i++){
|
for(var i=0;i<data.length;i++){
|
||||||
if($(this).attr("compileId")==data[i].compileId){
|
if($(this).attr("compileId")==data[i].compileId){
|
||||||
$(this).attr("id",i+"logTotal");
|
$(this).attr("id",i+"logTotal");
|
||||||
$(this).html("<a href='javascript:;' onclick='toLogSearch("+i+")'>"+data[i].sum+"<a>");
|
$(this).html(data[i].sum);
|
||||||
|
$(this).parent("tr").find("td:eq(1)").html("<a href='javascript:;' onclick='toLogSearch("+i+")'>"+data[i].compileId+"<a>");
|
||||||
hasLog=true;
|
hasLog=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user