策略分组添加description.
This commit is contained in:
@@ -21,6 +21,7 @@ public class PolicyGroupInfo extends BaseCfg<PolicyGroupInfo> implements Seriali
|
|||||||
private String groupName;
|
private String groupName;
|
||||||
private Integer groupType;
|
private Integer groupType;
|
||||||
private Integer serviceGroupId;
|
private Integer serviceGroupId;
|
||||||
|
private String description;
|
||||||
|
|
||||||
public Integer getServiceGroupId() {
|
public Integer getServiceGroupId() {
|
||||||
return serviceGroupId;
|
return serviceGroupId;
|
||||||
@@ -58,4 +59,10 @@ public class PolicyGroupInfo extends BaseCfg<PolicyGroupInfo> implements Seriali
|
|||||||
public void setGroupType(Integer groupType) {
|
public void setGroupType(Integer groupType) {
|
||||||
this.groupType = groupType;
|
this.groupType = groupType;
|
||||||
}
|
}
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ public class IpMultiplexPoolCfgController extends BaseController {
|
|||||||
//查询时left join policyGroup
|
//查询时left join policyGroup
|
||||||
Page<IpMultiplexPoolCfg> page = ipMultiplexPoolCfgService.findPage(new Page<IpMultiplexPoolCfg>(request, response,"r"), entity);
|
Page<IpMultiplexPoolCfg> page = ipMultiplexPoolCfgService.findPage(new Page<IpMultiplexPoolCfg>(request, response,"r"), entity);
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
initPageCondition(model,entity);
|
initFormCondition(model,entity);
|
||||||
return "/cfg/maintenance/ipMultiplexPool/snatlist";
|
return "/cfg/maintenance/ipMultiplexPool/snatlist";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,10 +12,11 @@
|
|||||||
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
<result column="creator_id" property="creatorId" jdbcType="INTEGER" />
|
||||||
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
<result column="editor_id" property="editorId" jdbcType="INTEGER" />
|
||||||
<result column="service_group_id" property="serviceGroupId" jdbcType="INTEGER" />
|
<result column="service_group_id" property="serviceGroupId" jdbcType="INTEGER" />
|
||||||
|
<result column="description" property="description" jdbcType="VARCHAR" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="PolicyGroupInfoColumns">
|
<sql id="PolicyGroupInfoColumns">
|
||||||
r.group_id,r.group_name,r.group_type,r.is_valid,
|
r.group_id,r.group_name,r.group_type,r.is_valid,r.create_time,
|
||||||
r.create_time,r.edit_time,r.creator_id,r.editor_id,r.service_group_id
|
r.edit_time,r.creator_id,r.editor_id,r.service_group_id,r.description
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 查出所有 有效数据-->
|
<!-- 查出所有 有效数据-->
|
||||||
@@ -95,14 +96,16 @@
|
|||||||
CREATE_TIME,
|
CREATE_TIME,
|
||||||
GROUP_NAME,
|
GROUP_NAME,
|
||||||
GROUP_TYPE,
|
GROUP_TYPE,
|
||||||
SERVICE_GROUP_ID
|
SERVICE_GROUP_ID,
|
||||||
|
DESCRIPTION
|
||||||
)values (
|
)values (
|
||||||
1,
|
1,
|
||||||
#{creatorId,jdbcType=INTEGER},
|
#{creatorId,jdbcType=INTEGER},
|
||||||
#{createTime,jdbcType=TIMESTAMP},
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
#{groupName,jdbcType=VARCHAR},
|
#{groupName,jdbcType=VARCHAR},
|
||||||
#{groupType,jdbcType=INTEGER},
|
#{groupType,jdbcType=INTEGER},
|
||||||
#{serviceGroupId,jdbcType=INTEGER}
|
#{serviceGroupId,jdbcType=INTEGER},
|
||||||
|
#{description,jdbcType=VARCHAR}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<update id="update" parameterType="com.nis.domain.basics.PolicyGroupInfo" >
|
<update id="update" parameterType="com.nis.domain.basics.PolicyGroupInfo" >
|
||||||
@@ -115,6 +118,9 @@
|
|||||||
<if test="groupType != null" >
|
<if test="groupType != null" >
|
||||||
group_type = #{groupType,jdbcType=INTEGER},
|
group_type = #{groupType,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="description != null" >
|
||||||
|
description = #{description,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="isValid != null" >
|
<if test="isValid != null" >
|
||||||
is_valid = #{isValid,jdbcType=INTEGER},
|
is_valid = #{isValid,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
<div class="portlet-body form">
|
<div class="portlet-body form">
|
||||||
<!-- BEGIN FORM-->
|
<!-- BEGIN FORM-->
|
||||||
<form id="cfgFrom" action="${ctx}/basics/policyGroup/saveOrUpdate" method="post" class="form-horizontal">
|
<form:form id="cfgFrom" modelAttribute="_cfg" action="${ctx}/basics/policyGroup/saveOrUpdate" method="post" class="form-horizontal">
|
||||||
<input type="hidden" name="groupId" value="${_cfg.groupId}">
|
<input type="hidden" name="groupId" value="${_cfg.groupId}">
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -79,6 +79,16 @@ $(function(){
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-3 control-label"><spring:message code="desc"/>:</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<form:textarea path="description" htmlEscape="false" maxlength="128" class="form-control" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -93,7 +103,7 @@ $(function(){
|
|||||||
<div class="col-md-6"> </div>
|
<div class="col-md-6"> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form:form>
|
||||||
<!-- END FORM-->
|
<!-- END FORM-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -216,6 +216,7 @@
|
|||||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||||
<th><spring:message code="group_name"/></th>
|
<th><spring:message code="group_name"/></th>
|
||||||
<th><spring:message code="group_type"/></th>
|
<th><spring:message code="group_type"/></th>
|
||||||
|
<th><spring:message code="desc"/></th>
|
||||||
<th><spring:message code="creator"/></th>
|
<th><spring:message code="creator"/></th>
|
||||||
<th class="sort-column r.create_time"><spring:message code="config_time"/></th>
|
<th class="sort-column r.create_time"><spring:message code="config_time"/></th>
|
||||||
<th><spring:message code="editor"/></th>
|
<th><spring:message code="editor"/></th>
|
||||||
@@ -238,7 +239,7 @@
|
|||||||
<c:if test="${cfg.groupType==groupTypeC.itemCode }"><spring:message code="${groupTypeC.itemValue}"/></c:if>
|
<c:if test="${cfg.groupType==groupTypeC.itemCode }"><spring:message code="${groupTypeC.itemValue}"/></c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</td>
|
</td>
|
||||||
|
<td title="${cfg.description }">${fns:abbr(cfg.description,20)}</td>
|
||||||
<td>${cfg.creatorName }</td>
|
<td>${cfg.creatorName }</td>
|
||||||
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
<td><fmt:formatDate value="${cfg.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
|
||||||
<td>${cfg.editorName }</td>
|
<td>${cfg.editorName }</td>
|
||||||
|
|||||||
@@ -278,6 +278,7 @@
|
|||||||
<th class="sort-column r.compile_id" style="display: none"><spring:message code="cfg_id"/></th>
|
<th class="sort-column r.compile_id" style="display: none"><spring:message code="cfg_id"/></th>
|
||||||
<th class="sort-column r.cfg_desc"><spring:message code="config_describe"/></th>
|
<th class="sort-column r.cfg_desc"><spring:message code="config_describe"/></th>
|
||||||
<th><spring:message code="group"/></th>
|
<th><spring:message code="group"/></th>
|
||||||
|
<th><spring:message code="isp"/></th>
|
||||||
<th><spring:message code="server_ip"/></th>
|
<th><spring:message code="server_ip"/></th>
|
||||||
<%-- <th><spring:message code="port"/></th> --%>
|
<%-- <th><spring:message code="port"/></th> --%>
|
||||||
<%-- <th><spring:message code="protocol"/></th>
|
<%-- <th><spring:message code="protocol"/></th>
|
||||||
@@ -317,6 +318,17 @@
|
|||||||
${fns:abbr(cfg.groupName,20)}
|
${fns:abbr(cfg.groupName,20)}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<c:set value="${cfg.areaEffectiveIds }" var="isp"></c:set>
|
||||||
|
<c:if test="${fn:contains(cfg.areaEffectiveIds,':') }">
|
||||||
|
<c:set value="${fns:substringAfterLast(cfg.areaEffectiveIds,':') }" var="isp"></c:set>
|
||||||
|
</c:if>
|
||||||
|
<c:forEach items="${isps}" var="dict">
|
||||||
|
<c:if test="${dict.itemCode eq isp }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
|
</c:if>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
<td title="${cfg.destIpAddress }">${fns:abbr(cfg.destIpAddress, 42)}</td>
|
<td title="${cfg.destIpAddress }">${fns:abbr(cfg.destIpAddress, 42)}</td>
|
||||||
<%-- <td>${cfg.port }</td> --%>
|
<%-- <td>${cfg.port }</td> --%>
|
||||||
<%-- <td>
|
<%-- <td>
|
||||||
|
|||||||
Reference in New Issue
Block a user