|
|
@@ -205,6 +205,8 @@ public class DeJuRFIDServiceImpl implements IService {
|
|
|
MsgAppSetGpo msgAppSetGpo = new MsgAppSetGpo();
|
|
|
msgAppSetGpo.setGpo1(state);
|
|
|
msgAppSetGpo.setGpo2(state);
|
|
|
+ msgAppSetGpo.setGpo3(state);
|
|
|
+ msgAppSetGpo.setGpo4(state);
|
|
|
client.sendSynMsg(msgAppSetGpo);
|
|
|
String status = state == 1 ? "start" : "stop";
|
|
|
if (0 == msgAppSetGpo.getRtCode()) {
|
|
|
@@ -216,9 +218,7 @@ public class DeJuRFIDServiceImpl implements IService {
|
|
|
}
|
|
|
} else {
|
|
|
log.error("Gpo epc {} error.", status);
|
|
|
- if (state == 1) {
|
|
|
- stopGpo(client, delayTime);
|
|
|
- }
|
|
|
+ stopGpo(client, delayTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -242,7 +242,7 @@ public class DeJuRFIDServiceImpl implements IService {
|
|
|
CLIENT_MAP.computeIfAbsent(ipAddress, f -> client);
|
|
|
client.onTagEpcLog = (s, logBaseEpcInfo) -> {
|
|
|
if (logBaseEpcInfo.getResult() == 0) {
|
|
|
- log.info("===========》{}", logBaseEpcInfo.getEpc());
|
|
|
+ log.info("===========》{},index: {}", logBaseEpcInfo.getEpc(),logBaseEpcInfo.getAntId());
|
|
|
InventoryTag tag = new InventoryTag();
|
|
|
BeanUtils.copyProperties(logBaseEpcInfo, tag);
|
|
|
tag.setRemoteLabHardware(hardware);
|