opt:看板优化
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package org.nl.acs.agv.service.impl;
|
package org.nl.acs.agv.service.impl;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.nl.acs.agv.domain.TwoFloorAgvStatus;
|
import org.nl.acs.agv.domain.TwoFloorAgvStatus;
|
||||||
import org.nl.acs.device_driver.agv.utils.TwoAgvPhase;
|
import org.nl.acs.device_driver.agv.utils.TwoAgvPhase;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -15,6 +16,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||||||
* 二楼AGV状态管理服务
|
* 二楼AGV状态管理服务
|
||||||
* 负责管理和更新AGV状态,通过HTTP接口提供状态查询
|
* 负责管理和更新AGV状态,通过HTTP接口提供状态查询
|
||||||
*/
|
*/
|
||||||
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
public class TwoFloorAgvStatusService {
|
public class TwoFloorAgvStatusService {
|
||||||
|
|
||||||
@@ -110,6 +112,7 @@ public class TwoFloorAgvStatusService {
|
|||||||
* 清除AGV错误信息
|
* 清除AGV错误信息
|
||||||
*/
|
*/
|
||||||
public void clearAgvError(int carno) {
|
public void clearAgvError(int carno) {
|
||||||
|
try {
|
||||||
String vehicleCode = String.format("AGV%02d", carno);
|
String vehicleCode = String.format("AGV%02d", carno);
|
||||||
TwoFloorAgvStatus agvStatus = agvStatusMap.get(vehicleCode);
|
TwoFloorAgvStatus agvStatus = agvStatusMap.get(vehicleCode);
|
||||||
if (agvStatus != null) {
|
if (agvStatus != null) {
|
||||||
@@ -136,5 +139,8 @@ public class TwoFloorAgvStatusService {
|
|||||||
agvStatus.setStatus_text("空闲");
|
agvStatus.setStatus_text("空闲");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e){
|
||||||
|
log.error("清空agv异常状态有异常,异常原因={}",e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user