Ver código fonte

修改mview生成方式

xiewenjie 3 anos atrás
pai
commit
6c5bed49d9

+ 7 - 5
sxz-application/src/main/resources/application-devuat.properties

@@ -35,6 +35,10 @@ spring.rabbitmq.host=192.168.0.26
 spring.rabbitmq.port=5672
 spring.rabbitmq.username=uat
 spring.rabbitmq.password=uat
+# 开启重试
+spring.rabbitmq.listener.simple.retry.enabled=true
+# 重试次数,默认为3次
+spring.rabbitmq.listener.simple.retry.max-attempts=5
 ##mybatis-plus配置 ##
 mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl
 mybatis-plus.configuration.map-underscore-to-camel-case=true
@@ -64,11 +68,9 @@ j2cache.open-spring-cache=true
 j2cache.j2CacheConfig.serialization=fastjson
 j2cache.cache-clean-mode=active
 j2cache.redis-client=lettuce
-j2cache.j2CacheConfig.hosts = 192.168.0.47:6379
-j2cache.j2CacheConfig.password =
-j2cache.j2CacheConfig.database =14
-
-
+j2cache.j2CacheConfig.hosts=192.168.0.47:6379
+j2cache.j2CacheConfig.password=
+j2cache.j2CacheConfig.database=14
 oss.point=http://oss-cn-shenzhen.aliyuncs.com
 oss.key=LTAIUrvuHqj8pvry
 oss.secrey=JLOVl0k8Ke0aaM8nLMMiUAZ3EiiqI4

+ 5 - 0
sxz-core/src/main/java/com/fdkk/sxz/other/listener/RunBuild.java

@@ -173,6 +173,11 @@ public class RunBuild {
     private boolean checkMviewFile(String path, String fileId, String type) {
         File file = FileUtil.file(path);
         if (FileUtil.exist(file)) {
+            if (type.equals("1")) {
+                uploadToOssUtil.uploadTo4dTjw(path, "domain/eHome/furniture/models/" + fileId + ".mview");
+            } else {
+                uploadToOssUtil.uploadTo4dTjw(path, "domain/eHome/furniture/temp/" + fileId + ".mview");
+            }
             return true;
         } else {
             int count = 20;