1
zhang
2025-06-05 c48d0150aa9f6b297671f28adb6b9dc95b529cfc
src/main/java/com/zy/asrs/controller/SteController.java
@@ -120,11 +120,13 @@
            if (!Cools.isEmpty(steProtocol.getChargeStatus())) {
                vo.setChargeStatus(steProtocol.getChargeStatus()==1?"✔":"×");
            }
            if(steProtocol.getAlarm() > 0){
            if(Cools.isEmpty(steProtocol.getAlarm())){
                vo.setAlarm1("未知异常");
            } else if(!Cools.isEmpty(steProtocol.getAlarm()) && steProtocol.getAlarm() > 0){
                BasSteErr steErr = basSteErrMapper.selectById(steProtocol.getAlarm());
                vo.setAlarm1(steErr==null?"未知异常":steErr.getErrName());
            }
            vo.setAlarm2(steProtocol.getAlarm0().toString());
            vo.setAlarm2(Cools.isEmpty(steProtocol.getAlarm0())? "未知":steProtocol.getAlarm0().toString());
        }
        return R.ok().add(list);
    }
@@ -261,6 +263,7 @@
                SteThread steThread = (SteThread) SlaveConnection.get(SlaveType.Ste, steSlave.getId());
                SteProtocol steProtocol = steThread.getSteProtocol();
                if (steProtocol == null) { continue; }
                if (steProtocol.loca==0) continue;
                SteCommand steCommand = new SteCommand();
                steCommand.setSteNo(param.getSteNo()); // 穿梭车编号
                if (steProtocol.getMode() == 0) {