mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
5.0
This commit is contained in:
@@ -122,17 +122,23 @@ public class IsvInfoService implements LambdaService<IsvInfo, IsvInfoMapper> {
|
||||
|
||||
public IsvKeysDTO getKeys(Long isvId) {
|
||||
IsvKeys isvKeys = isvKeysService.get(IsvKeys::getIsvId, isvId);
|
||||
IsvKeysDTO isvKeysDTO;
|
||||
if (isvKeys == null) {
|
||||
IsvKeysDTO isvKeysDTO = new IsvKeysDTO();
|
||||
isvKeysDTO = new IsvKeysDTO();
|
||||
isvKeysDTO.setIsvId(isvId);
|
||||
isvKeysDTO.setKeyFormat(RSATool.KeyFormat.PKCS8.getValue());
|
||||
isvKeysDTO.setPublicKeyIsv("");
|
||||
isvKeysDTO.setPrivateKeyIsv("");
|
||||
isvKeysDTO.setPublicKeyPlatform("");
|
||||
isvKeysDTO.setPrivateKeyPlatform("");
|
||||
return isvKeysDTO;
|
||||
} else {
|
||||
isvKeysDTO = CopyUtil.copyBean(isvKeys, IsvKeysDTO::new);
|
||||
}
|
||||
return CopyUtil.copyBean(isvKeys, IsvKeysDTO::new);
|
||||
|
||||
IsvInfo isvInfo = this.getById(isvId);
|
||||
isvKeysDTO.setAppId(isvInfo.getAppId());
|
||||
|
||||
return isvKeysDTO;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -8,6 +8,8 @@ import lombok.Data;
|
||||
@Data
|
||||
public class IsvKeysDTO {
|
||||
|
||||
private String appId;
|
||||
|
||||
private Long isvId;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user