|
@@ -1,6 +1,7 @@
|
|
package com.ruoyi.sim.service.impl;
|
|
package com.ruoyi.sim.service.impl;
|
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
+import com.ruoyi.sim.config.SimDebugConfig;
|
|
import com.ruoyi.sim.constant.ArBuilder;
|
|
import com.ruoyi.sim.constant.ArBuilder;
|
|
import com.ruoyi.sim.constant.CommConst;
|
|
import com.ruoyi.sim.constant.CommConst;
|
|
import com.ruoyi.sim.constant.FaultConst;
|
|
import com.ruoyi.sim.constant.FaultConst;
|
|
@@ -230,7 +231,8 @@ public class CommReceiveService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 可换件id 最小值 最大值 判断
|
|
// 可换件id 最小值 最大值 判断
|
|
- {
|
|
|
|
|
|
+ l.info("SimDebugConfig.CHECK_ID_MIN_OR_MAX = {}", SimDebugConfig.CHECK_ID_MIN_OR_MAX);
|
|
|
|
+ if (SimDebugConfig.CHECK_ID_MIN_OR_MAX) {
|
|
if (FaultConst.CHECK_PASS_SET.contains(faultId) ||
|
|
if (FaultConst.CHECK_PASS_SET.contains(faultId) ||
|
|
FaultConst.GAN_ZAO_GUAN_SET.contains(faultId)
|
|
FaultConst.GAN_ZAO_GUAN_SET.contains(faultId)
|
|
) {
|
|
) {
|
|
@@ -239,10 +241,14 @@ public class CommReceiveService {
|
|
String id = CommParseUtils.receiveSubContentData68(sm);
|
|
String id = CommParseUtils.receiveSubContentData68(sm);
|
|
int idDec = Integer.parseInt(id, 16);
|
|
int idDec = Integer.parseInt(id, 16);
|
|
if (idDec < CommConst.ID_MIN) {
|
|
if (idDec < CommConst.ID_MIN) {
|
|
- return ArBuilder.error(T20011, M20011, vo);
|
|
|
|
|
|
+ l.info("check id idDec = {}", idDec);
|
|
|
|
+ final String msg = "[" + replaceName + "] 可换件ID = " + idDec + "<br/>" + M20011;
|
|
|
|
+ return ArBuilder.error(T20011, msg, vo);
|
|
}
|
|
}
|
|
if (idDec > CommConst.ID_MAX) {
|
|
if (idDec > CommConst.ID_MAX) {
|
|
- return ArBuilder.error(T20012, M20012, vo);
|
|
|
|
|
|
+ l.info("check id idDec = {}", idDec);
|
|
|
|
+ final String msg = "[" + replaceName + "] 可换件ID = " + idDec + "<br/>" + M20012;
|
|
|
|
+ return ArBuilder.error(T20012, msg, vo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|