|
|
@@ -678,7 +678,7 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
if(paramsResp.getCraft().equals(mesProductRecord.getCraft())){
|
|
|
mesProductRecord.setContent(paramsResp.getResult());
|
|
|
mesProductRecord.setMaterielSn(paramsResp.getVal());
|
|
|
- if(oldOprno.length() == 6){
|
|
|
+ if(!oldOprno.equals(oprno)){
|
|
|
mesProductRecord.setOprno(oldOprno);
|
|
|
}
|
|
|
mesProductRecord.setSource("0");
|
|
|
@@ -690,14 +690,14 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
|
|
|
// 更新设备及工装
|
|
|
if(mesProductRecord.getCraft().equals("400002")){
|
|
|
- if(oldOprno.length() == 6){
|
|
|
+ if(!oldOprno.equals(oprno)){
|
|
|
mesProductRecord.setOprno(oldOprno);
|
|
|
}
|
|
|
mesProductRecord.setMaterielSn(mesLineProcess1.getDevices());
|
|
|
mesProductRecord.setContent("OK");
|
|
|
super.update(mesProductRecord);
|
|
|
}else if(mesProductRecord.getCraft().equals("400003")){
|
|
|
- if(oldOprno.length() == 6){
|
|
|
+ if(!oldOprno.equals(oprno)){
|
|
|
mesProductRecord.setOprno(oldOprno);
|
|
|
}
|
|
|
mesProductRecord.setMaterielSn(mesLineProcess1.getGzs());
|
|
|
@@ -707,7 +707,7 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
|
|
|
// 更新主结果
|
|
|
if(mesProductRecord.getCraft().equals(craft)){
|
|
|
- if(oldOprno.length() == 6){
|
|
|
+ if(!oldOprno.equals(oprno)){
|
|
|
mesProductRecord.setOprno(oldOprno);
|
|
|
}
|
|
|
|
|
|
@@ -1041,7 +1041,7 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(oldOprno.length() == 6){
|
|
|
+ if(!oldOprno.equals(oprno)){
|
|
|
mesProductRecord.setOprno(oldOprno);
|
|
|
}
|
|
|
|
|
|
@@ -1131,7 +1131,7 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
throw new ServiceException(text("记录不存在!"));
|
|
|
}
|
|
|
|
|
|
- if(oldOprno.length() == 6){
|
|
|
+ if(!oldOprno.equals(oprno)){
|
|
|
mesProductRecord.setOprno(oldOprno);
|
|
|
}
|
|
|
|
|
|
@@ -1162,7 +1162,7 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
throw new ServiceException(text("记录不存在!"));
|
|
|
}
|
|
|
|
|
|
- if(oldOprno.length() == 6){
|
|
|
+ if(!oldOprno.equals(oprno)){
|
|
|
mesProductRecord.setOprno(oldOprno);
|
|
|
}
|
|
|
|