add
This commit is contained in:
@@ -140,6 +140,7 @@ public abstract class CertDTO {
|
||||
* 证书DN
|
||||
*/
|
||||
private String subject;
|
||||
private String certText;
|
||||
private String remark;
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ public abstract class KeyInfoDTO {
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public static class Query extends PageQuery {
|
||||
private Long appId;
|
||||
private String status;
|
||||
private String keyType;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ public class KeyInfoServiceImpl implements KeyInfoService {
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
LambdaQueryWrapper<KeyInfo> wrapper = new LambdaQueryWrapper<KeyInfo>()
|
||||
.eq(StringUtils.hasText(query.getKeyType()), KeyInfo::getKeyType, query.getKeyType())
|
||||
.eq(Objects.nonNull(query.getAppId()), KeyInfo::getApplicationId, query.getAppId())
|
||||
// .eq(StringUtils.hasText(query.getStatus()), KeyInfo::getStatus, query.getStatus())
|
||||
// .eq(KeyInfo::getDeleted, false)
|
||||
.orderByDesc(KeyInfo::getCreateTime);
|
||||
@@ -123,7 +124,7 @@ public class KeyInfoServiceImpl implements KeyInfoService {
|
||||
return new Page<>(page.getCurrent(), page.getSize(), page.getTotal());
|
||||
}
|
||||
|
||||
List<Long> appIds = records.stream().map(KeyInfo::getId).collect(Collectors.toList());
|
||||
List<Long> appIds = records.stream().map(KeyInfo::getApplicationId).collect(Collectors.toList());
|
||||
Map<Long, String> appNameMap = applicationMapper.selectBatchIds(appIds)
|
||||
.stream().collect(Collectors.toMap(Application::getId, Application::getName));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user