From 47c33b4f988e65d1463d243e30422faacfbab99b Mon Sep 17 00:00:00 2001 From: 严智鑫 <test> Date: 星期五, 23 八月 2024 16:15:21 +0800 Subject: [PATCH] 防止破损表里有重复数据导致识别版图无法显示,当出现重复ID时,以最后一条的状态为准 --- hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java index bf6e500..13cceb4 100644 --- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java +++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/CacheGlassModuleApplication.java @@ -2,12 +2,11 @@ import lombok.extern.slf4j.Slf4j; import org.mybatis.spring.annotation.MapperScan; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.scheduling.annotation.EnableScheduling; import springfox.documentation.swagger2.annotations.EnableSwagger2; -import com.mes.edgstoragecage.service.*; /** * @Author : zhoush @@ -19,6 +18,7 @@ @MapperScan("com.mes.*.mapper") @EnableDiscoveryClient @EnableSwagger2 +@EnableScheduling public class CacheGlassModuleApplication { public static void main(String[] args) { -- Gitblit v1.8.0