This commit is contained in:
六如
2024-12-03 22:58:44 +08:00
parent 77b52508bb
commit c407261bd7
7 changed files with 86 additions and 4 deletions

View File

@@ -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;
}
/**

View File

@@ -8,6 +8,8 @@ import lombok.Data;
@Data
public class IsvKeysDTO {
private String appId;
private Long isvId;
/**