|
|
|
|
@ -693,6 +693,9 @@ public class PlcService {
|
|
|
|
|
} else if (configProperties.getScanCodeMode().getTray() == 3 ) {
|
|
|
|
|
// //RFID
|
|
|
|
|
// RFID rfid = rfidService.getRFIDByPlc(street.getId(),plcCmdInfo.getLeftRight1());
|
|
|
|
|
|
|
|
|
|
trayCode = "识别异常";
|
|
|
|
|
trayCheck = Boolean.FALSE;
|
|
|
|
|
Set<String> tags = new HashSet<>();
|
|
|
|
|
try {
|
|
|
|
|
RFIDCheck(plcCmdInfo,true);
|
|
|
|
|
@ -703,36 +706,10 @@ public class PlcService {
|
|
|
|
|
tags = RFIDStop(plcCmdInfo);
|
|
|
|
|
log.info("盘点rfid扫描结果:"+tags);
|
|
|
|
|
}
|
|
|
|
|
// if (tags != null && tags.size() > 0 && tags.contains(wmsTrayCode)) {
|
|
|
|
|
//
|
|
|
|
|
// trayCode = wmsTrayCode;
|
|
|
|
|
// trayCheck = Boolean.TRUE;
|
|
|
|
|
// if(! rfidLiveService.getRfidLive(plcCmdInfo,street,wmsTrayCode)){
|
|
|
|
|
//
|
|
|
|
|
// RFID rfid = rfidMapper.selectOne(new QueryWrapper<RFID>().eq("street_id", street.getId()));
|
|
|
|
|
// rfidLiveService.rfidRemoveLive(plcCmdInfo,street,rfid);
|
|
|
|
|
// rfidLiveService.rfidSave(plcCmdInfo,trayCode,street,rfid);
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// log.warn("sick ocr error:{}", "");
|
|
|
|
|
// //查看数据库里数据
|
|
|
|
|
// RfidLive rfidLive = rfidLiveService.getOne(new QueryWrapper<RfidLive>()
|
|
|
|
|
// .eq("street_Id", street.getId())
|
|
|
|
|
// .eq("direction", plcCmdInfo.getFromDirection())
|
|
|
|
|
// .eq("side", plcCmdInfo.getFromSeparation())
|
|
|
|
|
// .eq("rfid_row", plcCmdInfo.getRow1())
|
|
|
|
|
// .eq("rfid_column", plcCmdInfo.getColumn1()));
|
|
|
|
|
// if (ToolUtil.isNotEmpty(rfidLive) && ToolUtil.isNotEmpty(rfidLive.getRfidTrayCode()) && rfidLive.getRfidTrayCode().contains(wmsTrayCode)) {
|
|
|
|
|
// trayCode = wmsTrayCode;
|
|
|
|
|
// trayCheck = Boolean.TRUE;
|
|
|
|
|
// log.info("数据库查询rfid", trayCode);
|
|
|
|
|
// } else {
|
|
|
|
|
// trayCode = "";
|
|
|
|
|
// trayCheck = Boolean.FALSE;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
if (tags != null && tags.size() > 0 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trayCode = "未盘点";
|
|
|
|
|
trayCheck = Boolean.TRUE;
|
|
|
|
|
RFID rfid = rfidMapper.selectOne(new QueryWrapper<RFID>().eq("street_id", street.getId()));
|
|
|
|
|
if(! rfidLiveService.getRfidLive(plcCmdInfo,street,wmsTrayCode)){
|
|
|
|
|
|