|
@@ -3150,14 +3150,18 @@ public class MesProductRecordController extends BaseController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 一对一规则:底板码前8位必须对应膨胀梁码前13位
|
|
|
|
|
- String pairWsn = sn.length() >= 8 ? HMB_PAIR.get(sn.substring(0, 8)) : null;
|
|
|
|
|
- if(pairWsn == null){
|
|
|
|
|
- return renderResult(Global.FALSE, text("底板码型号未配置对应关系!"));
|
|
|
|
|
- }
|
|
|
|
|
- if(!wsn.startsWith(pairWsn)){
|
|
|
|
|
- return renderResult(Global.FALSE, text("底板码与膨胀梁码型号不匹配!"));
|
|
|
|
|
|
|
+ // >>> 临时放行:HMB 一对一型号校验(照 HmbBindTest 补录流程)。回退:把下一行 if(false) 改回 if(true)
|
|
|
|
|
+ if(false){
|
|
|
|
|
+ // 一对一规则:底板码前8位必须对应膨胀梁码前13位
|
|
|
|
|
+ String pairWsn = sn.length() >= 8 ? HMB_PAIR.get(sn.substring(0, 8)) : null;
|
|
|
|
|
+ if(pairWsn == null){
|
|
|
|
|
+ return renderResult(Global.FALSE, text("底板码型号未配置对应关系!"));
|
|
|
|
|
+ }
|
|
|
|
|
+ if(!wsn.startsWith(pairWsn)){
|
|
|
|
|
+ return renderResult(Global.FALSE, text("底板码与膨胀梁码型号不匹配!"));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+ // <<< 临时放行结束
|
|
|
|
|
|
|
|
// 检查前工件码是否已绑定后面板码
|
|
// 检查前工件码是否已绑定后面板码
|
|
|
MesProductHmb mesProductHmb2 = new MesProductHmb();
|
|
MesProductHmb mesProductHmb2 = new MesProductHmb();
|