|
@@ -362,7 +362,6 @@ public class MesProductRecordController extends BaseController {
|
|
|
if(!ObjectUtils.isEmpty(mt)){
|
|
if(!ObjectUtils.isEmpty(mt)){
|
|
|
page.getList().get(i).setMessageType(mt.getCate());
|
|
page.getList().get(i).setMessageType(mt.getCate());
|
|
|
page.getList().get(i).setTitle(mt.getTitle());
|
|
page.getList().get(i).setTitle(mt.getTitle());
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return page;
|
|
return page;
|
|
@@ -3700,13 +3699,13 @@ public class MesProductRecordController extends BaseController {
|
|
|
return CommonUitl.getXml("NG;参数错误;");
|
|
return CommonUitl.getXml("NG;参数错误;");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
String[] commands = commandString.split(";", -1);
|
|
String[] commands = commandString.split(";", -1);
|
|
|
// 01--序号检查 04--结果上传 05--序号过站
|
|
// 01--序号检查 04--结果上传 05--序号过站
|
|
|
if (!commands[0].equals("01") && !commands[0].equals("04") && !commands[0].equals("05")) {
|
|
if (!commands[0].equals("01") && !commands[0].equals("04") && !commands[0].equals("05")) {
|
|
|
return CommonUitl.getXml("NG;命令错误;");
|
|
return CommonUitl.getXml("NG;命令错误;");
|
|
|
} else {
|
|
} else {
|
|
|
if (("01").equals(commands[0])) {
|
|
if (("01").equals(commands[0])) {
|
|
|
-
|
|
|
|
|
if (commands.length != 8 ) {
|
|
if (commands.length != 8 ) {
|
|
|
return CommonUitl.getXml("NG;长度错误;");
|
|
return CommonUitl.getXml("NG;长度错误;");
|
|
|
}
|
|
}
|
|
@@ -3715,12 +3714,20 @@ public class MesProductRecordController extends BaseController {
|
|
|
String lineSn = "XT";
|
|
String lineSn = "XT";
|
|
|
String oldOprno = oprno;
|
|
String oldOprno = oprno;
|
|
|
oprno = CommonUitl.formatOprno(oprno);
|
|
oprno = CommonUitl.formatOprno(oprno);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if (StringUtils.isEmpty(sn)) {
|
|
if (StringUtils.isEmpty(sn)) {
|
|
|
return CommonUitl.getXml("NG;工件码不能为空;");
|
|
return CommonUitl.getXml("NG;工件码不能为空;");
|
|
|
}
|
|
}
|
|
|
if (StringUtils.isEmpty(oprno)) {
|
|
if (StringUtils.isEmpty(oprno)) {
|
|
|
return CommonUitl.getXml("NG;工位号不能为空;");
|
|
return CommonUitl.getXml("NG;工位号不能为空;");
|
|
|
}
|
|
}
|
|
|
|
|
+ Boolean checkOP500Photo = mesProductRecordService.checkOP500Photo(sn, lineSn);
|
|
|
|
|
+
|
|
|
|
|
+ if (!checkOP500Photo){
|
|
|
|
|
+ return CommonUitl.getXml("OP500未拍照或未加工");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
String userCode = commands[1];
|
|
String userCode = commands[1];
|
|
|
String ret = checkQualityResult(oldOprno, sn, lineSn, userCode);
|
|
String ret = checkQualityResult(oldOprno, sn, lineSn, userCode);
|
|
|
if (ret.equals("RSUD")) {
|
|
if (ret.equals("RSUD")) {
|
|
@@ -3756,6 +3763,7 @@ public class MesProductRecordController extends BaseController {
|
|
|
return CommonUitl.getXml("NG;参数错误;");
|
|
return CommonUitl.getXml("NG;参数错误;");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
@PostMapping(value = "cc")
|
|
@PostMapping(value = "cc")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public String cc(HttpServletRequest request) {
|
|
public String cc(HttpServletRequest request) {
|