Selaa lähdekoodia

展览由临时变固定需要修改类型

wuweihao 3 vuotta sitten
vanhempi
commit
47559e47d9

+ 2 - 2
gis_application/src/main/resources/application-pro.properties

@@ -53,9 +53,9 @@ spring.redis.jedis.pool.max-wait=-1ms
 
 
 #log
-logging.file.path=/root/data/${project.en}_log
+logging.file.path=/root/log/${project.en}_log
 logging.config=classpath:logback-spring.xml
-logging.level.com.gis=debug
+logging.level.com.gis=info
 
 
 

+ 1 - 1
gis_application/src/main/resources/application-sit.properties

@@ -50,7 +50,7 @@ spring.redis.jedis.pool.max-wait=-1ms
 #log
 logging.file.path=/root/log/${project.en}_log
 logging.config=classpath:logback-spring.xml
-logging.level.com.gis=debug
+logging.level.com.gis=info
 
 
 

+ 6 - 0
gis_service/src/main/java/com/gis/service/impl/ExhibitionServiceImpl.java

@@ -95,6 +95,12 @@ public class ExhibitionServiceImpl extends IBaseServiceImpl<ExhibitionEntity, Lo
             if (entity == null) {
                 return Result.failure("对象不存在: " + id);
             }
+
+            // 用来过滤数据使用
+            if ("fixed".equals(param.getType())){
+                entity.setStatus("fixed");
+            }
+
             BeanUtils.copyProperties(param, entity);
             entity.setUpdateTime(LocalDateTime.now());
             this.update(entity);