|
@@ -3322,29 +3322,28 @@ public class MesProductRecordController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
try{
|
|
try{
|
|
|
- // 保存漏点:新客户端提交 A1/B2 等名称,旧客户端提交数字时转换为新名称。
|
|
|
|
|
|
|
+ // 保存漏点:只要客户端提交了漏点索引,就按当前工位保存,不再限制工位白名单。
|
|
|
String ldFlag = request.getParameter("ldFlag");
|
|
String ldFlag = request.getParameter("ldFlag");
|
|
|
if(!StringUtils.isEmpty(ldFlag)){
|
|
if(!StringUtils.isEmpty(ldFlag)){
|
|
|
MesProductHf mesProductHf = new MesProductHf();
|
|
MesProductHf mesProductHf = new MesProductHf();
|
|
|
mesProductHf.setSn(sn);
|
|
mesProductHf.setSn(sn);
|
|
|
mesProductHf.setOprno(oprno);
|
|
mesProductHf.setOprno(oprno);
|
|
|
mesProductHf.setLineSn(lineSn);
|
|
mesProductHf.setLineSn(lineSn);
|
|
|
- mesProductHf.setHfFlag(normalizeLeakPointLabels(ldFlag));
|
|
|
|
|
|
|
+ mesProductHf.setHfFlag(ldFlag);
|
|
|
mesProductHf.setResult(result);
|
|
mesProductHf.setResult(result);
|
|
|
mesProductHfService.save(mesProductHf);
|
|
mesProductHfService.save(mesProductHf);
|
|
|
- } else {
|
|
|
|
|
- return renderResult(Global.FALSE, text("ldFlag参数为空!"));
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 气密工位不再更新主表(已由 qmresult 完成),此接口只写漏点表
|
|
|
|
|
- // List<ParamsResp> params = new ArrayList<>();
|
|
|
|
|
- // ParamsResp paramsResp1 = new ParamsResp();
|
|
|
|
|
- // paramsResp1.setCraft("400001");
|
|
|
|
|
- // paramsResp1.setResult("OK");
|
|
|
|
|
- // paramsResp1.setVal(userCode);
|
|
|
|
|
- // params.add(paramsResp1);
|
|
|
|
|
- // List<BindMaterialResp> bmlists = mesLineProcessMaterialService.getBindMaterial(oprno, lineSn);
|
|
|
|
|
- // mesProductRecordService.updateRecordResult(sn,oprno,craft,"",result,userCode,params,lineSn,true,bmlists);
|
|
|
|
|
|
|
+ // 主结果落库,复用 T09 现有 updateRecordResult
|
|
|
|
|
+ List<ParamsResp> params = new ArrayList<>();
|
|
|
|
|
+ ParamsResp paramsResp1 = new ParamsResp();
|
|
|
|
|
+ paramsResp1.setCraft("400001");
|
|
|
|
|
+ paramsResp1.setResult("OK");
|
|
|
|
|
+ paramsResp1.setVal(userCode);
|
|
|
|
|
+ params.add(paramsResp1); // 绑定用户
|
|
|
|
|
+
|
|
|
|
|
+ List<BindMaterialResp> bmlists = mesLineProcessMaterialService.getBindMaterial(oprno, lineSn);
|
|
|
|
|
+ mesProductRecordService.updateRecordResult(sn,oprno,craft,"",result,userCode,params,lineSn,true,bmlists);
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
return renderResult(Global.FALSE, text("操作失败!"));
|
|
return renderResult(Global.FALSE, text("操作失败!"));
|