周末fix
This commit is contained in:
@@ -240,8 +240,9 @@ public class NDCAgvServiceImpl implements NDCAgvService {
|
||||
(byte) 0X64, (byte) 0X80,
|
||||
(byte) 0X00, (byte) 0X01,
|
||||
(byte) ikeyhigh, (byte) ikeylow,
|
||||
(byte) satationhigh, (byte) satationlow,
|
||||
(byte) carhigh, (byte) carlow
|
||||
(byte) carhigh, (byte) carlow,
|
||||
(byte) satationhigh, (byte) satationlow
|
||||
|
||||
};
|
||||
log.info("下发AGV充电任务--{}", str1);
|
||||
|
||||
|
||||
@@ -209,16 +209,17 @@ public class OneNDCSocketConnectionAutoRun extends AbstractAutoRunnable {
|
||||
}
|
||||
//充电成功
|
||||
}else if (phase == 0x65){
|
||||
log.info("AGV车号{}反馈充电成功,释放充电桩{}",agvaddr,station);
|
||||
List<Dict> dictList= dictService.getDictByName("station");
|
||||
for(Dict dict : dictList){
|
||||
if (Integer.parseInt(dict.getPara1())==station){
|
||||
dict.setValue("0");
|
||||
dict.setPara2("");
|
||||
dictService.updateDetail(dict);
|
||||
break;
|
||||
}
|
||||
}
|
||||
log.info("AGV车号{}反馈充电中,充电桩{}",agvaddr,station);
|
||||
// log.info("AGV车号{}反馈充电成功,释放充电桩{}",agvaddr,station);
|
||||
// List<Dict> dictList= dictService.getDictByName("station");
|
||||
// for(Dict dict : dictList){
|
||||
// if (Integer.parseInt(dict.getPara1())==station){
|
||||
// dict.setValue("0");
|
||||
// dict.setPara2("");
|
||||
// dictService.updateDetail(dict);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
//充电取消上报
|
||||
}else if (phase == 0x66){
|
||||
log.info("AGV车号{}反馈充电任务已取消,释放充电桩{}",agvaddr,station);
|
||||
|
||||
Reference in New Issue
Block a user