|
|
@@ -1353,6 +1353,25 @@ public class MesProductRecordController extends BaseController {
|
|
|
if(mesLineProcess1.getRepeat().equals("1") && (ret.equals(bs+"OK") || ret.equals(bs+"NG"))){ // 可重复工作
|
|
|
ret = "RSUD";
|
|
|
}
|
|
|
+ //判断是否属于可做三次气密检测的工位 mes_qm_maxNumber次数 mes_qm_oprnos工位
|
|
|
+ String qmOprnos = Global.getConfig("mes_qm_oprnos");
|
|
|
+ if(!StringUtils.isEmpty(qmOprnos) && qmOprnos.contains(CommonUitl.formatOprno(oldOprno))){
|
|
|
+ int qmMaxNumber =new Integer(Global.getConfig("mes_qm_maxNumber")) ;
|
|
|
+ if(qmMaxNumber > 0){
|
|
|
+ MesProductQm mesProductQm = new MesProductQm();
|
|
|
+ mesProductQm.setComponentNum(sn);
|
|
|
+ mesProductQm.setOprno(oldOprno);
|
|
|
+
|
|
|
+ mesProductQm.setProductCate(lineSn);
|
|
|
+ List<MesProductQm> list = mesProductQmService.findList(mesProductQm);//----
|
|
|
+//判断列表长度
|
|
|
+ if(list.size() >= qmMaxNumber){
|
|
|
+ ret = bs+lxres;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
return ret;
|
|
|
}
|