|
@@ -67,7 +67,7 @@ public class MesProductRecordUserService extends CrudService<MesProductRecordUse
|
|
|
return super.findList(mesProductRecord);
|
|
return super.findList(mesProductRecord);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public String getSjOk(String oprno,String lineSn,String sdate,String edate,String userCode){
|
|
|
|
|
|
|
+ public String getSjOk(String oprno,String lineSn,String sdate,String edate,String userCode,String dualStation){
|
|
|
MesProductRecordUser mesProductRecord = new MesProductRecordUser();
|
|
MesProductRecordUser mesProductRecord = new MesProductRecordUser();
|
|
|
// mesProductRecord.setOprno(oprno);
|
|
// mesProductRecord.setOprno(oprno);
|
|
|
mesProductRecord.setLineSn(lineSn);
|
|
mesProductRecord.setLineSn(lineSn);
|
|
@@ -77,7 +77,17 @@ public class MesProductRecordUserService extends CrudService<MesProductRecordUse
|
|
|
mesProductRecord.setContent("OK");
|
|
mesProductRecord.setContent("OK");
|
|
|
mesProductRecord.setCraft("100000");
|
|
mesProductRecord.setCraft("100000");
|
|
|
|
|
|
|
|
- if(CommonUitl.formatOprno(oprno).equals("OP130")){
|
|
|
|
|
|
|
+ // 双工位处理:一个客户端面板对应两个工位,按机台标志映射
|
|
|
|
|
+ if("true".equals(dualStation) && CommonUitl.formatOprno(oprno).equals("OP060")){
|
|
|
|
|
+ String[] oprnos = {"OP060A", "OP060B"};
|
|
|
|
|
+ if(oprno.equals("OP060B")){
|
|
|
|
|
+ oprnos = new String[]{"OP060C", "OP060D"};
|
|
|
|
|
+ }else if(oprno.equals("OP060C")){
|
|
|
|
|
+ oprnos = new String[]{"OP060E", "OP060F"};
|
|
|
|
|
+ }
|
|
|
|
|
+ mesProductRecord.setOprno("");
|
|
|
|
|
+ mesProductRecord.getSqlMap().getWhere().and("a.oprno", QueryType.IN,oprnos);
|
|
|
|
|
+ }else if(CommonUitl.formatOprno(oprno).equals("OP130")){
|
|
|
String[] oprnos = {"OP130A", "OP130B"};
|
|
String[] oprnos = {"OP130A", "OP130B"};
|
|
|
if(oprno.equals("OP130B")){
|
|
if(oprno.equals("OP130B")){
|
|
|
oprnos = new String[]{"OP130C", "OP130D"};
|
|
oprnos = new String[]{"OP130C", "OP130D"};
|
|
@@ -98,7 +108,7 @@ public class MesProductRecordUserService extends CrudService<MesProductRecordUse
|
|
|
return String.valueOf(jpp1);
|
|
return String.valueOf(jpp1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public String getSjNg(String oprno,String lineSn,String sdate,String edate,String userCode){
|
|
|
|
|
|
|
+ public String getSjNg(String oprno,String lineSn,String sdate,String edate,String userCode,String dualStation){
|
|
|
MesProductRecordUser mesProductRecord = new MesProductRecordUser();
|
|
MesProductRecordUser mesProductRecord = new MesProductRecordUser();
|
|
|
// mesProductRecord.setOprno(oprno);
|
|
// mesProductRecord.setOprno(oprno);
|
|
|
mesProductRecord.setLineSn(lineSn);
|
|
mesProductRecord.setLineSn(lineSn);
|
|
@@ -107,7 +117,17 @@ public class MesProductRecordUserService extends CrudService<MesProductRecordUse
|
|
|
}
|
|
}
|
|
|
mesProductRecord.setContent("NG");
|
|
mesProductRecord.setContent("NG");
|
|
|
mesProductRecord.setCraft("100000");
|
|
mesProductRecord.setCraft("100000");
|
|
|
- if(CommonUitl.formatOprno(oprno).equals("OP130")){
|
|
|
|
|
|
|
+ // 双工位处理:一个客户端面板对应两个工位,按机台标志映射
|
|
|
|
|
+ if("true".equals(dualStation) && CommonUitl.formatOprno(oprno).equals("OP060")){
|
|
|
|
|
+ String[] oprnos = {"OP060A", "OP060B"};
|
|
|
|
|
+ if(oprno.equals("OP060B")){
|
|
|
|
|
+ oprnos = new String[]{"OP060C", "OP060D"};
|
|
|
|
|
+ }else if(oprno.equals("OP060C")){
|
|
|
|
|
+ oprnos = new String[]{"OP060E", "OP060F"};
|
|
|
|
|
+ }
|
|
|
|
|
+ mesProductRecord.setOprno("");
|
|
|
|
|
+ mesProductRecord.getSqlMap().getWhere().and("a.oprno", QueryType.IN,oprnos);
|
|
|
|
|
+ }else if(CommonUitl.formatOprno(oprno).equals("OP130")){
|
|
|
String[] oprnos = {"OP130A", "OP130B"};
|
|
String[] oprnos = {"OP130A", "OP130B"};
|
|
|
if(oprno.equals("OP130B")){
|
|
if(oprno.equals("OP130B")){
|
|
|
oprnos = new String[]{"OP130C", "OP130D"};
|
|
oprnos = new String[]{"OP130C", "OP130D"};
|