Bladeren bron

OP220子结果提交取消

zhanghe 1 week geleden
bovenliggende
commit
7dfedf96e9
1 gewijzigde bestanden met toevoegingen van 37 en 37 verwijderingen
  1. 37 37
      src/main/java/com/jeesite/modules/mes/web/MesProductRecordController.java

+ 37 - 37
src/main/java/com/jeesite/modules/mes/web/MesProductRecordController.java

@@ -1444,43 +1444,43 @@ public class MesProductRecordController extends BaseController {
 						}
 					}
 
-					MesProductOprno mesProductOprno = new MesProductOprno();
-					mesProductOprno.setSn(sn);
-					mesProductOprno.setOprno(oprnoOld);
-					mesProductOprno.setLineSn(lineSn);
-					MesProductOprno mesProductOprno1 = mesProductOprnoService.findInfo(mesProductOprno);
-					System.out.println(mesProductOprno1);
-					if(ObjectUtils.isEmpty(mesProductOprno1)){
-						//添加子工位表
-						mesProductOprnoService.save(mesProductOprno);
-						mesProductOprno1 = mesProductOprnoService.findInfo(mesProductOprno);
-					}
-					//添加子工位
-					if (!StringUtils.isEmpty(oprno) &&"OP220".equals(oprnoOld)){
-
-						if("OP220A".equals(oprno) ){
-							mesProductOprno1.setResult1(content);
-						}else if("OP220B".equals(oprno)){
-							mesProductOprno1.setResult2(content);
-						}
-						mesProductOprnoService.save(mesProductOprno1);
-
-						// 全有结果
-						if(mesProductOprno1.getResult1()!=null && !StringUtils.isEmpty(mesProductOprno1.getResult1()) && mesProductOprno1.getResult2()!=null && !StringUtils.isEmpty(mesProductOprno1.getResult2())){
-							String lastRet = "NG";
-							if(mesProductOprno1.getResult1().equals("OK") && mesProductOprno1.getResult2().equals("OK")){
-								lastRet = "OK";
-							}
-							// 2.判断物料批次是否符合绑定
-							List<BindMaterialResp> bmlists = mesLineProcessMaterialService.getBindMaterial(oprnoOld, lineSn);
-							// 总结果产线要求写死“OK”
-							mesProductRecordService.updateRecordResult(sn,oprnoOld,"100000","",lastRet,userCode,params,lineSn,true,bmlists);
-						}else {
-							ret = "RSOK";
-							return ret;
-						}
-
-					}
+//					MesProductOprno mesProductOprno = new MesProductOprno();
+//					mesProductOprno.setSn(sn);
+//					mesProductOprno.setOprno(oprnoOld);
+//					mesProductOprno.setLineSn(lineSn);
+//					MesProductOprno mesProductOprno1 = mesProductOprnoService.findInfo(mesProductOprno);
+//					System.out.println(mesProductOprno1);
+//					if(ObjectUtils.isEmpty(mesProductOprno1)){
+//						//添加子工位表
+//						mesProductOprnoService.save(mesProductOprno);
+//						mesProductOprno1 = mesProductOprnoService.findInfo(mesProductOprno);
+//					}
+//					//添加子工位
+//					if (!StringUtils.isEmpty(oprno) &&"OP220".equals(oprnoOld)){
+//
+//						if("OP220A".equals(oprno) ){
+//							mesProductOprno1.setResult1(content);
+//						}else if("OP220B".equals(oprno)){
+//							mesProductOprno1.setResult2(content);
+//						}
+//						mesProductOprnoService.save(mesProductOprno1);
+//
+//						// 全有结果
+//						if(mesProductOprno1.getResult1()!=null && !StringUtils.isEmpty(mesProductOprno1.getResult1()) && mesProductOprno1.getResult2()!=null && !StringUtils.isEmpty(mesProductOprno1.getResult2())){
+//							String lastRet = "NG";
+//							if(mesProductOprno1.getResult1().equals("OK") && mesProductOprno1.getResult2().equals("OK")){
+//								lastRet = "OK";
+//							}
+//							// 2.判断物料批次是否符合绑定
+//							List<BindMaterialResp> bmlists = mesLineProcessMaterialService.getBindMaterial(oprnoOld, lineSn);
+//							// 总结果产线要求写死“OK”
+//							mesProductRecordService.updateRecordResult(sn,oprnoOld,"100000","",lastRet,userCode,params,lineSn,true,bmlists);
+//						}else {
+//							ret = "RSOK";
+//							return ret;
+//						}
+//
+//					}