From 98f2e843d13efe8e48a1bc210d82f3f85528f561 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期二, 21 十月 2025 11:50:43 +0800
Subject: [PATCH] 最新版本541200007
---
server/visits/admin_timer/src/main/java/com/doumee/api/PlatformJobController.java | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 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 86461d0..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,7 @@
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;
@@ -75,9 +76,24 @@
@ApiOperation("鏈堝彴鑷姩鍙彿")
@PostMapping("/autoPlatformCallCar")
public ApiResponse autoPlatformCallCar() {
- platformJobService.autoPlatformCallCar(wmsService);
- platformJobService.autoCallInParkCar(wmsService);
+ 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("鏈堝彴鑷姩鍙彿");
+
}
--
Gitblit v1.9.3