Browse Source

过滤作废的任务,接入prometheus

master
zhangyeguang 2 months ago
parent
commit
7ec116123b
  1. 2
      social/src/main/java/com/jiagutech/ams/service/JobServiceImpl.java
  2. 9
      web/pom.xml
  3. 17
      web/src/main/resources/application.yml

2
social/src/main/java/com/jiagutech/ams/service/JobServiceImpl.java

@ -188,6 +188,8 @@ public class JobServiceImpl implements JobService {
}
if (requestParam.getStatus() != 0) {
queryWrapper.eq("j.status", requestParam.getStatus());
} else {
queryWrapper.ne("j.status", 3);
}
if (requestParam.getOperatorId() != 0l) {
queryWrapper.eq("j.operator_id", requestParam.getOperatorId());

9
web/pom.xml

@ -102,6 +102,15 @@
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.parent.artifactId}</finalName>

17
web/src/main/resources/application.yml

@ -90,3 +90,20 @@ springdoc:
enabled: true
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
shutdown:
enabled: false
health:
show-details: always
info:
app: ams-social
version: 1.0.0
java: 17
author: zhangyeguang
description: 贵州农机监管平台-合作社模块
Loading…
Cancel
Save