修复keyring可信证书不可取消审核和导入内置判断:1or0
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user