数字孪生:修改输送机入库时到位信号为到位,出库时为空闲

This commit is contained in:
猫猫guowen
2026-03-18 14:13:14 +08:00
parent 9b008f5fe7
commit 24fb696a67

View File

@@ -101,10 +101,14 @@ public class GetDeviceSsjMap {
dto.setAlarmMsg(DictUtils.getDictLabel("ssj_ex", String.valueOf(d.getException())));
dto.setKX(String.valueOf(d.getKx()));
if (!dto.getTaskNo().equals("0")){
if (dto.getKX().equals("0")){
dto.setDW("1");
if (dto.getRotationDirection().equals("1")){
dto.setDW(String.valueOf(d.getDw()));
}else {
dto.setDW("0");
if (dto.getKX().equals("0")){
dto.setDW("1");
}else {
dto.setDW("0");
}
}
}else {
dto.setDW("0");