From 9e253a7fd8f57e1f7c3e7288a36167ff878ab28d Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期一, 06 十一月 2023 21:59:43 +0800
Subject: [PATCH] 库存管理添加粮权字段
---
igds-web/src/main/java/com/ld/igds/TestAction.java | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/igds-web/src/main/java/com/ld/igds/TestAction.java b/igds-web/src/main/java/com/ld/igds/TestAction.java
index c86783b..75db25c 100644
--- a/igds-web/src/main/java/com/ld/igds/TestAction.java
+++ b/igds-web/src/main/java/com/ld/igds/TestAction.java
@@ -11,7 +11,7 @@
import com.ld.igds.grain.service.CoreGrainService;
import com.ld.igds.models.WeatherConf;
import com.ld.igds.models.WeatherInfo;
-import com.ld.igds.timer.WeatherScheduled;
+import com.ld.igds.timer.WeatherTimerService;
import com.ld.igds.util.RedisUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
@@ -37,9 +37,7 @@
@Autowired
private RedisUtil redisUtil;
@Autowired
- private WeatherScheduled weatherScheduled;
- @Autowired
- private TestService testService;
+ private WeatherTimerService weatherTimerService;
@Override
public String getUrl() {
@@ -127,7 +125,6 @@
return;
}
log.info("------initRecordCurStorageOUT--------");
- testService.initRecordCurStorageOUT(p1, p2);
}
if (t.equals("reset-in-storage")) {
@@ -137,11 +134,10 @@
if (null == p2) {// 寮�濮嬫椂闂�
return;
}
- testService.initRecordCurStorageIN(p1, p2);
}
if (t.equals("weather11")) {
- weatherScheduled.scheduled();
+ weatherTimerService.doExe();
}
}
@@ -172,7 +168,7 @@
log.info("-----娴嬭瘯璋冪敤姘旇薄----deptId={},cityId={}", deptId, cityId);
Date date = new Date();
- WeatherInfo info = weatherScheduled.getWeatherByWeb(date, conf);
+ WeatherInfo info = weatherTimerService.getWeatherByWeb(date, conf);
if (null == info) {
response.getWriter().print("MSG:ERROR");
} else {
--
Gitblit v1.9.3