From 3b0c9e51e16619e59b58e4ce9870e8f69e89259b Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期二, 21 十月 2025 17:42:11 +0800
Subject: [PATCH] 月台自动叫号处理问题
---
server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java b/server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java
index 53bf7a9..df51e12 100644
--- a/server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java
+++ b/server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java
@@ -1,6 +1,8 @@
package com.doumee.api;
import com.doumee.core.annotation.pr.PreventRepeat;
+import com.doumee.core.utils.Constants;
+import com.doumee.service.business.third.WmsService;
import com.doumee.service.business.third.model.ApiResponse;
import com.doumee.service.business.PlatformJobService;
import io.swagger.annotations.Api;
@@ -23,6 +25,9 @@
@Autowired
private PlatformJobService platformJobService;
+
+ @Autowired
+ private WmsService wmsService;
@ApiOperation("鏈堝彴鍋滈潬瓒呮椂鎶ヨ涓氬姟")
@@ -66,4 +71,38 @@
return ApiResponse.success("鏈堝彴浠婃棩浣滀笟澶栧畬鎴愰�氱煡瀹氭椂");
}
+
+
+ @ApiOperation("鏈堝彴鑷姩鍙彿")
+ @PostMapping("/autoPlatformCallCar")
+ public ApiResponse autoPlatformCallCar() {
+ log.error("========鏈堝彴鑷姩鍙彿============寮�濮�"+System.currentTimeMillis()+"");
+ if(Constants.IS_AUTOCALL_WORKING){
+ log.error("========鏈堝彴鑷姩鍙彿============缁撴潫锛屼笂涓�杞綔涓氭湭缁撴潫"+System.currentTimeMillis());
+ return ApiResponse.success("鏈堝彴鑷姩鍙彿,涓婁竴杞綔涓氭湭缁撴潫");
+ }
+ try {
+ Constants.IS_AUTOCALL_WORKING =true;
+ platformJobService.autoPlatformCallCar(wmsService);
+ platformJobService.autoCallInParkCar(wmsService);
+ log.error("========鏈堝彴鑷姩鍙彿============瀹屾垚"+System.currentTimeMillis()+"");
+ }catch (Exception e){
+ log.error("========鏈堝彴鑷姩鍙彿============寮傚父"+System.currentTimeMillis()+e.getMessage());
+ }finally {
+ Constants.IS_AUTOCALL_WORKING =false;
+ log.error("========鏈堝彴鑷姩鍙彿============缁撴潫"+System.currentTimeMillis());
+ }
+ return ApiResponse.success("鏈堝彴鑷姩鍙彿");
+
+ }
+
+
+// @ApiOperation("鏈堝彴鑷姩鍙彿鍏ュ洯")
+// @PostMapping("/autoCallInParkCar")
+// public ApiResponse autoCallInParkCar() {
+// platformJobService.autoCallInParkCar(wmsService);
+// return ApiResponse.success("鏈堝彴鑷姩鍙彿鍏ュ洯");
+// }
+
+
}
--
Gitblit v1.9.3