mapstruct lombok冲突修复 加载不到的依赖项先注释,联调问题修改

This commit is contained in:
even 2025-05-27 14:47:13 +08:00
parent 359a5e1e27
commit 0734d01fb2
7 changed files with 34 additions and 64 deletions

View File

@ -69,7 +69,27 @@
<artifactId>httpclient5</artifactId> <artifactId>httpclient5</artifactId>
<version>5.2.1</version> <!-- 建议使用最新稳定版本 --> <version>5.2.1</version> <!-- 建议使用最新稳定版本 -->
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -39,7 +39,6 @@ public enum ContextStateEnum {
} }
return TRANSITIONS.get(from).contains(to); return TRANSITIONS.get(from).contains(to);
} catch (Exception e){ } catch (Exception e){
System.out.println("");
return false; return false;
} }
} }

View File

@ -135,4 +135,5 @@ public class PipPipeline extends PipBaseElement {
* 运行实例编号 * 运行实例编号
*/ */
private String instanceNum; private String instanceNum;
} }

View File

@ -573,7 +573,10 @@ public class PipelineServiceImpl extends ServiceImpl<PipelineDao, PipPipeline> i
return new TreeRunContextResp(); return new TreeRunContextResp();
} }
private String between(LocalDateTime startTime,LocalDateTime endTime){ private String between(LocalDateTime startTime,LocalDateTime endTime){
Duration between = Duration.between(startTime, LocalDateTime.now()); if (startTime==null||endTime==null) {
return "";
}
Duration between = Duration.between(startTime, endTime);
long days = between.toDays(); long days = between.toDays();
long hours = between.toHours()%24; long hours = between.toHours()%24;
long minutes = between.toMinutes() % 60; long minutes = between.toMinutes() % 60;
@ -588,9 +591,7 @@ public class PipelineServiceImpl extends ServiceImpl<PipelineDao, PipPipeline> i
if (minutes>0) { if (minutes>0) {
stringBuilder.append(minutes).append(""); stringBuilder.append(minutes).append("");
} }
if (seconds>0) { stringBuilder.append(seconds).append("");
stringBuilder.append(seconds).append("");
}
return stringBuilder.toString(); return stringBuilder.toString();
} }
} }

View File

@ -50,11 +50,11 @@
<!-- <version>1.28</version>--> <!-- <version>1.28</version>-->
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.jenkins-ci/version-number --> <!-- https://mvnrepository.com/artifact/org.jenkins-ci/version-number -->
<dependency> <!-- <dependency>-->
<groupId>org.jenkins-ci</groupId> <!-- <groupId>org.jenkins-ci</groupId>-->
<artifactId>version-number</artifactId> <!-- <artifactId>version-number</artifactId>-->
<version>1.12</version> <!-- <version>1.12</version>-->
</dependency> <!-- </dependency>-->
<!-- 外部依赖 --> <!-- 外部依赖 -->
<dependency> <dependency>

View File

@ -70,7 +70,7 @@ spring:
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
data: data:
redis: redis:
host: 127.0.0.1 # 地址 host: 192.168.1.120 # 地址
port: 6379 # 端口 port: 6379 # 端口
database: 0 # 数据库索引 database: 0 # 数据库索引
# password: dev # 密码,建议生产环境开启 # password: dev # 密码,建议生产环境开启

File diff suppressed because one or more lines are too long