|
|
@@ -224,15 +224,13 @@ public class MesRecoverController extends BaseController {
|
|
|
|
|
|
|
|
|
// 获取恢复的工位
|
|
|
- String oprno = "";
|
|
|
- MesProductRecord mesProductRecord2 = new MesProductRecord();
|
|
|
for(MesProductRecord mesProductRecord1:records){
|
|
|
// if(mesProductRecord1.getContent().equals("NG")){
|
|
|
// oprno = CommonUitl.formatOprno(mesProductRecord1.getOprno());
|
|
|
// mesProductRecord2 = mesProductRecord1;
|
|
|
// break;
|
|
|
// }
|
|
|
- if(CommonUitl.formatOprno(mesProductRecord1.getOprno()).equals("OP280") && !mesProductRecord1.getContent().equals("UDF")){ // 下线
|
|
|
+ if(CommonUitl.isOfflineOprno(mesProductRecord1.getOprno(), mesProductRecord1.getLineSn()) && !mesProductRecord1.getContent().equals("UDF")){ // 下线
|
|
|
mesProductRecord1.setContent("UDF");
|
|
|
mesProductRecordService.update(mesProductRecord1);
|
|
|
}
|
|
|
@@ -247,11 +245,6 @@ public class MesRecoverController extends BaseController {
|
|
|
|
|
|
mesRecoverService.save(mesRecover);
|
|
|
|
|
|
- if(oprno.equals("OP280")){ // 如果是最后一个下线工位,重置工位结果
|
|
|
- // 更新工位总结果
|
|
|
- mesProductRecord2.setContent("UDF");
|
|
|
- mesProductRecordService.update(mesProductRecord2);
|
|
|
- }
|
|
|
mesProduct.setState("0");
|
|
|
mesProductService.update(mesProduct);
|
|
|
|