|
@@ -163,7 +163,7 @@ public class CommReceiveService {
|
|
|
if (s == null) {
|
|
|
return AjaxResult.error("没有对应模拟器!");
|
|
|
}
|
|
|
- // 1型 外壳及零件,特殊处理
|
|
|
+ // 1型 特殊处理
|
|
|
if (StringUtils.equals(s.getSimType(), Sim.TYPE_0001)) {
|
|
|
// 1型 电池仓门检查 去掉。
|
|
|
|
|
@@ -176,14 +176,16 @@ public class CommReceiveService {
|
|
|
// return AjaxResult.success(vo);
|
|
|
// }
|
|
|
}
|
|
|
+ // 2型 特殊处理
|
|
|
if (StringUtils.equals(s.getSimType(), Sim.TYPE_0002)) {
|
|
|
|
|
|
}
|
|
|
+ // 3型 特殊处理
|
|
|
if (StringUtils.equals(s.getSimType(), Sim.TYPE_0003)) {
|
|
|
|
|
|
}
|
|
|
// 是否在 故障部位 跳过检查 白名单中。
|
|
|
- if (FaultConst.FAULT_SET_CHECK_PASS.contains(f.getFaultId())) {
|
|
|
+ if (FaultConst.CHECK_PASS_SET.contains(f.getFaultId())) {
|
|
|
vo.setErrorMsg("");
|
|
|
vo.setCheckOk(true);
|
|
|
// 跳过检查,直接返回成功。
|
|
@@ -192,10 +194,10 @@ public class CommReceiveService {
|
|
|
// 是否是
|
|
|
// 2型的 检测干燥管 或
|
|
|
// 3型的 检测干燥管
|
|
|
- if (FaultConst.FAULT_SET_GAN_ZAO_GUAN.contains(f.getFaultId())) {
|
|
|
+ if (FaultConst.GAN_ZAO_GUAN_SET.contains(f.getFaultId())) {
|
|
|
// 判断必须存在
|
|
|
- String WHG_EXIST_MSG = CommParseUtils.receiveSubContentData46(sm);
|
|
|
- if (!WHG_MSG_EXIST_YES.equals(WHG_EXIST_MSG)) {
|
|
|
+ String existMsg = CommParseUtils.receiveSubContentData46(sm);
|
|
|
+ if (!GUAN_EXIST_YES.equals(existMsg)) {
|
|
|
String eMsg = "[" + f.getReplaceName() + "]可换件异常;<br>" +
|
|
|
"请正确安装[" + f.getReplaceName() + "]后再次开始考试。<br>";
|
|
|
l.info(eMsg);
|
|
@@ -226,14 +228,21 @@ public class CommReceiveService {
|
|
|
}
|
|
|
// 可换件id 最小值 最大值 判断
|
|
|
{
|
|
|
- String id = CommParseUtils.receiveSubContentData68(sm);
|
|
|
- int idDec = Integer.parseInt(id, 16);
|
|
|
- if (idDec < CommConst.ID_MIN) {
|
|
|
- return ArBuilder.error(T20011, M20011, vo);
|
|
|
- }
|
|
|
- if (idDec > CommConst.ID_MAX) {
|
|
|
- return ArBuilder.error(T20012, M20012, vo);
|
|
|
+ if (FaultConst.CHECK_PASS_SET.contains(f.getFaultId()) ||
|
|
|
+ FaultConst.GAN_ZAO_GUAN_SET.contains(f.getFaultId())
|
|
|
+ ) {
|
|
|
+ l.info("Not check id f = {}", f.getFaultId());
|
|
|
+ } else {
|
|
|
+ String id = CommParseUtils.receiveSubContentData68(sm);
|
|
|
+ int idDec = Integer.parseInt(id, 16);
|
|
|
+ if (idDec < CommConst.ID_MIN) {
|
|
|
+ return ArBuilder.error(T20011, M20011, vo);
|
|
|
+ }
|
|
|
+ if (idDec > CommConst.ID_MAX) {
|
|
|
+ return ArBuilder.error(T20012, M20012, vo);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
// final ok.
|
|
|
vo.setErrorMsg("");
|