From 72c49f3afa22c4f84760d57001e45a4fadf2d482 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 12 三月 2026 09:32:33 +0800
Subject: [PATCH] #升级JDK17

---
 src/main/java/com/zy/asrs/timer/WmsDataTimer.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/zy/asrs/timer/WmsDataTimer.java b/src/main/java/com/zy/asrs/timer/WmsDataTimer.java
index be1dd03..f8166ca 100644
--- a/src/main/java/com/zy/asrs/timer/WmsDataTimer.java
+++ b/src/main/java/com/zy/asrs/timer/WmsDataTimer.java
@@ -3,7 +3,7 @@
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.core.common.Cools;
 import com.zy.asrs.entity.BasStation;
 import com.zy.asrs.entity.dto.*;
@@ -39,7 +39,7 @@
     //WMS浠诲姟鏌ヨ鎺ュ彛
     @Scheduled(cron = "0/3 * * * * ? ")
     public synchronized void taskQuery() {
-        Config wmsTaskQueryUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsTaskQueryUrl"));
+        Config wmsTaskQueryUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsTaskQueryUrl"));
         if (wmsTaskQueryUrlConfig == null) {
             return;
         }
@@ -50,7 +50,7 @@
         try {
             HashMap<String, Object> requestParam = new HashMap<>();
 
-            List<BasStation> basStations = basStationService.selectList(new EntityWrapper<BasStation>().eq("out_enable", "Y"));
+            List<BasStation> basStations = basStationService.list(new QueryWrapper<BasStation>().eq("out_enable", "Y"));
             for (BasStation basStation : basStations) {
                 WcsStationDto wcsStationDto = stationUtils.stationMap.get(basStation.getStationId());
                 if (wcsStationDto == null) {
@@ -101,7 +101,7 @@
     //WMS鍏ュ簱浠诲姟鏌ヨ鎺ュ彛
     @Scheduled(cron = "0/3 * * * * ? ")
     public synchronized void inTaskQuery() {
-        Config wmsCombQueryUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsCombQueryUrl"));
+        Config wmsCombQueryUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsCombQueryUrl"));
         if (wmsCombQueryUrlConfig == null) {
             return;
         }
@@ -112,7 +112,7 @@
         try {
             HashMap<String, Object> requestParam = new HashMap<>();
 
-            List<BasStation> basStations = basStationService.selectList(new EntityWrapper<BasStation>().eq("in_enable", "Y"));
+            List<BasStation> basStations = basStationService.list(new QueryWrapper<BasStation>().eq("in_enable", "Y"));
             for (BasStation basStation : basStations) {
                 WcsStationDto wcsStationDto = stationUtils.stationMap.get(basStation.getStationId());
                 if (wcsStationDto == null) {
@@ -167,7 +167,7 @@
     @Synchronized
     @Scheduled(cron = "0/3 * * * * ? ")
     public void locQuery() {
-        Config wmsUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsLocQueryUrl"));
+        Config wmsUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsLocQueryUrl"));
         if (wmsUrlConfig == null) {
             return;
         }
@@ -213,7 +213,7 @@
     @Synchronized
     @Scheduled(cron = "0/3 * * * * ? ")
     public void inOutLineCharts() {
-        Config wmsUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsInOutLineChartsQueryUrl"));
+        Config wmsUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsInOutLineChartsQueryUrl"));
         if (wmsUrlConfig == null) {
             return;
         }
@@ -242,7 +242,7 @@
     @Synchronized
     @Scheduled(cron = "0/3 * * * * ? ")
     public void locDetlStatistics() {
-        Config wmsUrlConfig = configService.selectOne(new EntityWrapper<Config>().eq("code", "wmsLocDetlStatisticsQueryUrl"));
+        Config wmsUrlConfig = configService.getOne(new QueryWrapper<Config>().eq("code", "wmsLocDetlStatisticsQueryUrl"));
         if (wmsUrlConfig == null) {
             return;
         }

--
Gitblit v1.9.1