打更新包时忽略prod环境配置文件;一些sql文件调整

This commit is contained in:
wangliwen 2022-06-19 09:31:12 +08:00
parent da765470e0
commit 802a5b83ec
4 changed files with 11 additions and 2 deletions

View File

@ -303,6 +303,8 @@
<excludes> <excludes>
<!-- 排除生产环境配置 --> <!-- 排除生产环境配置 -->
<exclude>application-prod.yml</exclude> <exclude>application-prod.yml</exclude>
<!-- 排除flyway管理的sql -->
<exclude>db/*.sql</exclude>
</excludes> </excludes>
</resource> </resource>
<resource> <resource>

View File

@ -21,6 +21,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.http.HttpEntity; import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
@ -40,6 +41,7 @@ import java.time.LocalDateTime;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
/** /**
* 资源表 * 资源表
* *
@ -90,6 +92,7 @@ public class ResourceController {
@Autowired @Autowired
private RestTemplate restTemplate; private RestTemplate restTemplate;
@Lazy
@Autowired @Autowired
private JdbcTemplate jdbcTemplate; private JdbcTemplate jdbcTemplate;

View File

@ -52,6 +52,9 @@
<include>*.json</include> <include>*.json</include>
<include>db/*.sql</include> <include>db/*.sql</include>
</includes> </includes>
<excludes>
<exclude>application-prod.yml</exclude>
</excludes>
<filtered>true</filtered> <filtered>true</filtered>
<outputDirectory>${file.separator}config</outputDirectory> <outputDirectory>${file.separator}config</outputDirectory>
</fileSet> </fileSet>

View File

@ -1 +1,2 @@
ALTER TABLE `share_platform`.`t_resource_mount_apply` ADD COLUMN `resource_dto` json NULL COMMENT '挂载资源对象' AFTER `resource_id`; ALTER TABLE `share_platform`.`t_resource_mount_apply` ADD COLUMN `resource_dto` json NULL COMMENT '挂载资源对象';
UPDATE `share_platform`.`t_resource_mount_apply` SET resource_dto = parameter_content;