|
|
@@ -3129,15 +3129,13 @@ public class MesProductRecordController extends BaseController {
|
|
|
// 检验工件码
|
|
|
String checkProductSn = Global.getConfig("mes.check.productSn");
|
|
|
if(checkProductSn.equals("1")){
|
|
|
-// if(!CommonUitl.checkProductSnHmb(wsn)){
|
|
|
-// return renderResult(Global.FALSE, text("后面板码式不正确"));
|
|
|
-// }
|
|
|
-
|
|
|
- MesProductModel mesProductModel = mesProductModelService.checkSnObj(wsn);
|
|
|
- if(mesProductModel == null){
|
|
|
- return renderResult(Global.FALSE, text("工件码格式错误!"));
|
|
|
+ // 兼容:后梁码规则校验通过(新24位/老28位)或产品型号配置匹配,任一满足即可
|
|
|
+ if(!CommonUitl.checkProductSnHmb(wsn)){
|
|
|
+ MesProductModel mesProductModel = mesProductModelService.checkSnObj(wsn);
|
|
|
+ if(mesProductModel == null){
|
|
|
+ return renderResult(Global.FALSE, text("工件码格式错误!"));
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
// 检查前工件码是否已绑定后面板码
|