|
|
@@ -1209,10 +1209,13 @@ public class MesProductRecordController extends BaseController {
|
|
|
if(StringUtils.isEmpty(cateSn)){
|
|
|
return "RS NS";
|
|
|
}
|
|
|
- // 检验工件码(mes_product_model)
|
|
|
+ // 检验工件码:旧规则(前壳体/后面板) 或 mes_product_model 新码,任一满足即可
|
|
|
String checkProductSn = Global.getConfig("mes.check.productSn");
|
|
|
if(checkProductSn.equals("1")){
|
|
|
- if(!mesProductModelService.checkSn(sn)){
|
|
|
+ Boolean qgxRet = CommonUitl.checkProductSnQgx(sn);
|
|
|
+ Boolean hmbRet = CommonUitl.checkProductSnHmb(sn);
|
|
|
+ Boolean modelRet = mesProductModelService.checkSn(sn);
|
|
|
+ if(!qgxRet && !hmbRet && !modelRet){
|
|
|
return "RS GS"; // 工件码格式不正确
|
|
|
}
|
|
|
}
|