|
@@ -698,12 +698,16 @@ public class CommSendService {
|
|
List<Fault> listNG = new ArrayList<>();
|
|
List<Fault> listNG = new ArrayList<>();
|
|
for (Fault f : list) {
|
|
for (Fault f : list) {
|
|
AjaxResult ar = readOneSimOneFaultCheck(seat, sim, f);
|
|
AjaxResult ar = readOneSimOneFaultCheck(seat, sim, f);
|
|
|
|
+
|
|
if (!StringUtils.isBlank((String) ar.get(AjaxResult.MSG_TAG))) {
|
|
if (!StringUtils.isBlank((String) ar.get(AjaxResult.MSG_TAG))) {
|
|
listNG.add(f);
|
|
listNG.add(f);
|
|
l.info("故障部位[" + f.getBindHardwareMsg() + "][" + f.getReplaceName() + "]未正确安装;");
|
|
l.info("故障部位[" + f.getBindHardwareMsg() + "][" + f.getReplaceName() + "]未正确安装;");
|
|
} else {
|
|
} else {
|
|
l.info("故障部位[" + f.getBindHardwareMsg() + "][" + f.getReplaceName() + "]安装ok;");
|
|
l.info("故障部位[" + f.getBindHardwareMsg() + "][" + f.getReplaceName() + "]安装ok;");
|
|
}
|
|
}
|
|
|
|
+ if (ar.isError()) {
|
|
|
|
+ return ar;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (listNG.isEmpty()) {
|
|
if (listNG.isEmpty()) {
|
|
return AjaxResult.success("所有故障部位检查没有问题。");
|
|
return AjaxResult.success("所有故障部位检查没有问题。");
|
|
@@ -909,16 +913,16 @@ public class CommSendService {
|
|
AjaxResult ar = commReceiveService.checkReceiveMsgFormat(sm.getReceiveMsg());
|
|
AjaxResult ar = commReceiveService.checkReceiveMsgFormat(sm.getReceiveMsg());
|
|
if (ar.isError()) {
|
|
if (ar.isError()) {
|
|
// todo:
|
|
// todo:
|
|
- l.warn("####接收错误#### = {}", sm);
|
|
|
|
|
|
+ l.warn("####接收错误@格式错误#### = {}", sm);
|
|
sm.setResult(SimMsg.Result.RECEIVE_CHECK_FAIL);
|
|
sm.setResult(SimMsg.Result.RECEIVE_CHECK_FAIL);
|
|
return sm;
|
|
return sm;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- {
|
|
|
|
|
|
+ if (false) {
|
|
AjaxResult ar = commReceiveService.checkReceiveMsgMatch(sm);
|
|
AjaxResult ar = commReceiveService.checkReceiveMsgMatch(sm);
|
|
if (ar.isError()) {
|
|
if (ar.isError()) {
|
|
// todo:
|
|
// todo:
|
|
- l.warn("####接收错误#### = {}", sm);
|
|
|
|
|
|
+ l.warn("####接收错误@匹配错误#### = {}", sm);
|
|
sm.setResult(SimMsg.Result.RECEIVE_NOT_MATCH);
|
|
sm.setResult(SimMsg.Result.RECEIVE_NOT_MATCH);
|
|
return sm;
|
|
return sm;
|
|
}
|
|
}
|