add
This commit is contained in:
parent
a9b35329ce
commit
81759ed6c6
@ -140,6 +140,7 @@ public abstract class CertDTO {
|
|||||||
* 证书DN
|
* 证书DN
|
||||||
*/
|
*/
|
||||||
private String subject;
|
private String subject;
|
||||||
|
private String certText;
|
||||||
private String remark;
|
private String remark;
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ public abstract class KeyInfoDTO {
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
public static class Query extends PageQuery {
|
public static class Query extends PageQuery {
|
||||||
|
private Long appId;
|
||||||
private String status;
|
private String status;
|
||||||
private String keyType;
|
private String keyType;
|
||||||
}
|
}
|
||||||
|
@ -94,6 +94,7 @@ public class KeyInfoServiceImpl implements KeyInfoService {
|
|||||||
LocalDateTime now = LocalDateTime.now();
|
LocalDateTime now = LocalDateTime.now();
|
||||||
LambdaQueryWrapper<KeyInfo> wrapper = new LambdaQueryWrapper<KeyInfo>()
|
LambdaQueryWrapper<KeyInfo> wrapper = new LambdaQueryWrapper<KeyInfo>()
|
||||||
.eq(StringUtils.hasText(query.getKeyType()), KeyInfo::getKeyType, query.getKeyType())
|
.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(StringUtils.hasText(query.getStatus()), KeyInfo::getStatus, query.getStatus())
|
||||||
// .eq(KeyInfo::getDeleted, false)
|
// .eq(KeyInfo::getDeleted, false)
|
||||||
.orderByDesc(KeyInfo::getCreateTime);
|
.orderByDesc(KeyInfo::getCreateTime);
|
||||||
@ -123,7 +124,7 @@ public class KeyInfoServiceImpl implements KeyInfoService {
|
|||||||
return new Page<>(page.getCurrent(), page.getSize(), page.getTotal());
|
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)
|
Map<Long, String> appNameMap = applicationMapper.selectBatchIds(appIds)
|
||||||
.stream().collect(Collectors.toMap(Application::getId, Application::getName));
|
.stream().collect(Collectors.toMap(Application::getId, Application::getName));
|
||||||
|
|
||||||
|
@ -17,4 +17,20 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.sunyard.chsm</groupId>
|
||||||
|
<artifactId>chsm-common</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.sunyard.chsm</groupId>
|
||||||
|
<artifactId>chsm-params</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.sunyard.chsm;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author liulu
|
||||||
|
* @since 2024/10/25
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@SpringBootApplication
|
||||||
|
public class WebServerApp {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SpringApplication.run(WebServerApp.class, args);
|
||||||
|
log.info("---------------------WebServerApp 启动完成-------------------");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.sunyard.chsm.config;
|
||||||
|
|
||||||
|
import org.springframework.web.servlet.HandlerInterceptor;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author liulu
|
||||||
|
* @since 2024/11/13
|
||||||
|
*/
|
||||||
|
public class AuthHandler implements HandlerInterceptor {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.sunyard.chsm.controller;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 应用Token服务接口
|
||||||
|
*
|
||||||
|
* @author liulu
|
||||||
|
* @version V1.0
|
||||||
|
* @since 2023/8/4
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping
|
||||||
|
public class AppLoginController {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user