|
|
@ -56,7 +56,7 @@ public class OperationServiceImpl extends ServiceImpl<OperationMapper, Operation
|
|
|
|
public Operation getCurrentRevisionRef(String site,String operation) {
|
|
|
|
public Operation getCurrentRevisionRef(String site,String operation) {
|
|
|
|
Operation currentRevisionRef = operationMapper.getCurrentRevisionRef(site, operation);
|
|
|
|
Operation currentRevisionRef = operationMapper.getCurrentRevisionRef(site, operation);
|
|
|
|
if (currentRevisionRef==null){
|
|
|
|
if (currentRevisionRef==null){
|
|
|
|
throw new BaseException("未找到工序的当前版本");
|
|
|
|
throw new BaseException("工序【" +operation+ "】的当前版本不存在");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return currentRevisionRef;
|
|
|
|
return currentRevisionRef;
|
|
|
|
}
|
|
|
|
}
|
|
|
|