可信证书内置证书功能添加
This commit is contained in:
@@ -171,6 +171,7 @@ public class PxyObjKeyringService extends BaseService{
|
||||
if(compileIds != null && compileIds.size() >0 && compileIds.get(0) != 0){
|
||||
entity.setCompileId(compileIds.get(0));
|
||||
}
|
||||
entity.setBuiltIn(0);
|
||||
pxyObjKeyringDao.insertPxyObjTrustedCaCert(entity);
|
||||
//修改
|
||||
}else{
|
||||
@@ -489,6 +490,7 @@ public class PxyObjKeyringService extends BaseService{
|
||||
@Transactional(readOnly=false,rollbackFor=RuntimeException.class)
|
||||
public void caCertSaveAndAudit(List<PxyObjTrustedCaCert> cfgList){
|
||||
|
||||
Date date=new Date();
|
||||
//修改主表cert 配置状态
|
||||
for (PxyObjTrustedCaCert cfg : cfgList) {
|
||||
//调用服务接口获取compileId
|
||||
@@ -503,6 +505,11 @@ public class PxyObjKeyringService extends BaseService{
|
||||
if(compileIds != null && compileIds.size() >0 && compileIds.get(0) != 0){
|
||||
cfg.setCompileId(compileIds.get(0));
|
||||
}
|
||||
cfg.setCreateTime(date);
|
||||
cfg.setCreatorId(UserUtils.getUser().getId());
|
||||
cfg.setAuditTime(date);
|
||||
cfg.setAuditorId(UserUtils.getUser().getId());
|
||||
logger.info("证书名称"+cfg.getCfgDesc());
|
||||
pxyObjKeyringDao.insertPxyObjTrustedCaCert(cfg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user