修复keyring可信证书不可取消审核和导入内置判断:1or0

This commit is contained in:
wangwei
2019-06-14 16:43:58 +08:00
parent 2190ee447d
commit 3aebe7d905
2 changed files with 10 additions and 6 deletions

View File

@@ -374,12 +374,16 @@ public class PxyObjKeyringController extends BaseController {
entity);
//查询是否存在内置配置
PxyObjKeyring searchEntity=new PxyObjKeyring();
searchEntity.setCompileId(0);
PxyObjKeyring searchEntity0=new PxyObjKeyring();
searchEntity0.setCompileId(0);
PxyObjKeyring searchEntity1=new PxyObjKeyring();
searchEntity1.setCompileId(1);
Page<PxyObjKeyring> searchPage=new Page<PxyObjKeyring>();
Page<PxyObjKeyring> builtInPage = pxyObjKeyringService.findPage(searchPage,
searchEntity);
if(builtInPage != null && !StringUtil.isEmpty(builtInPage.getList())) {
Page<PxyObjKeyring> builtInPage0 = pxyObjKeyringService.findPage(searchPage,
searchEntity0);
Page<PxyObjKeyring> builtInPage1 = pxyObjKeyringService.findPage(searchPage,
searchEntity1);
if((builtInPage0 != null && !StringUtil.isEmpty(builtInPage0.getList())) || (builtInPage1 != null && !StringUtil.isEmpty(builtInPage1.getList()))) {
model.addAttribute("hasBuiltIn", true);
}else {
model.addAttribute("hasBuiltIn", false);

View File

@@ -400,7 +400,7 @@ function cancelPassOpt(url){
if(typeof serviceId != "undefined" && serviceIdJudge && typeof compileId != "undefined"){
compileIds.push(compileId);
}
if((compileId == 0) || (compileId==1 && serviceId==250)){
if((compileId == 0) || (compileId==1 && serviceId==250) || (compileId==1 && serviceId==520)){
builtInCompile=true;
}
});