完善修改配置数据时提示信息问题
This commit is contained in:
@@ -1262,7 +1262,13 @@ public class AppCfgController extends BaseController {
|
|||||||
entity.setAppCode(specificService.getSpecServiceCode());
|
entity.setAppCode(specificService.getSpecServiceCode());
|
||||||
}
|
}
|
||||||
appCfgService.saveOrUpdateAppSslCfg(entity);
|
appCfgService.saveOrUpdateAppSslCfg(entity);
|
||||||
addMessage(redirectAttributes, "success", "save_success");
|
//配置仅保存
|
||||||
|
if(StringUtil.isEmpty(entity.getIsValid()) || entity.getIsValid()!=1) {
|
||||||
|
addMessage(redirectAttributes, "success", "save_success");
|
||||||
|
}else {
|
||||||
|
//配置直接生效
|
||||||
|
addMessage(redirectAttributes, "success", "audit_success");
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("saveAppSslCfg failed", e);
|
logger.error("saveAppSslCfg failed", e);
|
||||||
|
|||||||
@@ -311,7 +311,13 @@ public class AvController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
avCfgService.saveOrUpdateAvFileSample(entity, srcFile);
|
avCfgService.saveOrUpdateAvFileSample(entity, srcFile);
|
||||||
addMessage(redirectAttributes, "success", "save_success");
|
//配置仅保存
|
||||||
|
if(StringUtil.isEmpty(entity.getIsValid()) || entity.getIsValid()!=1) {
|
||||||
|
addMessage(redirectAttributes, "success", "save_success");
|
||||||
|
}else {
|
||||||
|
//配置直接生效
|
||||||
|
addMessage(redirectAttributes, "success", "audit_success");
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("文件上传失败", e);
|
logger.error("文件上传失败", e);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
@@ -960,6 +960,10 @@ public class AppCfgService extends BaseService {
|
|||||||
public void saveOrUpdateAppSslCfg(AppSslCertCfg entity) throws Exception {
|
public void saveOrUpdateAppSslCfg(AppSslCertCfg entity) throws Exception {
|
||||||
// 设置区域运营商信息
|
// 设置区域运营商信息
|
||||||
setAreaEffectiveIds(entity);
|
setAreaEffectiveIds(entity);
|
||||||
|
int isValid=0;
|
||||||
|
if(!StringUtil.isEmpty(entity.getIsValid()) && entity.getIsValid()==1) {
|
||||||
|
isValid=1;
|
||||||
|
}
|
||||||
if (entity.getCfgId() == null) {
|
if (entity.getCfgId() == null) {
|
||||||
Integer compileId = 0;
|
Integer compileId = 0;
|
||||||
try {
|
try {
|
||||||
@@ -1011,6 +1015,12 @@ public class AppCfgService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isValid==1) {
|
||||||
|
entity.setIsAudit(1);
|
||||||
|
entity.setIsValid(1);
|
||||||
|
entity.setAuditTime(new Date());
|
||||||
|
auditAppSslCfg(entity, entity.getIsAudit());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -95,6 +95,8 @@ function changeDistrict(obj){
|
|||||||
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
||||||
<input type="hidden" name="functionId" value="${_cfg.functionId}">
|
<input type="hidden" name="functionId" value="${_cfg.functionId}">
|
||||||
<input type="hidden" id="serviceId" name="serviceId" value="${_cfg.serviceId}">
|
<input type="hidden" id="serviceId" name="serviceId" value="${_cfg.serviceId}">
|
||||||
|
<input type="hidden" name="isValid" value="${_cfg.isValid}">
|
||||||
|
<input type="hidden" name="isAudit" value="${_cfg.isAudit}">
|
||||||
<input type="hidden" id="appCode" name="appCode" value="${_cfg.appCode}">
|
<input type="hidden" id="appCode" name="appCode" value="${_cfg.appCode}">
|
||||||
<input type="hidden" id="behavCode" name="behavCode" value="${_cfg.behavCode}">
|
<input type="hidden" id="behavCode" name="behavCode" value="${_cfg.behavCode}">
|
||||||
<!-- 配置域类型 -->
|
<!-- 配置域类型 -->
|
||||||
@@ -434,18 +436,36 @@ function changeDistrict(obj){
|
|||||||
<%-- <%@include file="/WEB-INF/include/form/basicInfo.jsp" %> --%>
|
<%-- <%@include file="/WEB-INF/include/form/basicInfo.jsp" %> --%>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-offset-3 col-md-8">
|
<div class="col-md-offset-3 col-md-8">
|
||||||
<button id="save" type="submit" class="btn green"><spring:message code="submit"/></button>
|
<c:set var="auditPermission" value="false"></c:set>
|
||||||
<button id="cancel" type="button" class="btn default"><spring:message code="cancel"/></button>
|
<!-- 拥有配置新增直接生效的功能权限 -->
|
||||||
</div>
|
<shiro:hasPermission name="save:audit:permission">
|
||||||
</div>
|
<c:set var="auditPermission" value="true"></c:set>
|
||||||
</div>
|
</shiro:hasPermission>
|
||||||
<div class="col-md-6"> </div>
|
<c:choose>
|
||||||
</div>
|
<c:when test="${!(fns:getUser().isAdmin()) && auditPermission}">
|
||||||
</div>
|
<button id="audit" type="submit" class="btn green">
|
||||||
|
<spring:message code="submit" />
|
||||||
|
</button>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<button id="save" type="submit" class="btn green">
|
||||||
|
<spring:message code="submit" />
|
||||||
|
</button>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
<button id="cancel" type="button" class="btn default">
|
||||||
|
<spring:message code="cancel" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<!-- END FORM-->
|
<!-- END FORM-->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user