mark
This commit is contained in:
parent
353471b1f7
commit
74aaf857f0
@ -344,6 +344,10 @@ public class ProcessInspectionController {
|
||||
ProductFeatures productFeatures = setRealSampleSize(graphArg);
|
||||
if(productFeatures == null){
|
||||
return R.failed("检验参数异常");
|
||||
}else {
|
||||
if(productFeatures.getSampleSize()==null || productFeatures.getName()==null){
|
||||
return R.failed("ProductFeatures 参数异常");
|
||||
}
|
||||
}
|
||||
MeanStandardDeviationGraph meanStandardDeviationGraph = new MeanStandardDeviationGraph(productFeatures);
|
||||
if(graphArg.getInterpretationScheme()!=null){
|
||||
@ -372,7 +376,12 @@ public class ProcessInspectionController {
|
||||
ProductFeatures productFeatures = setRealSampleSize(graphArg);
|
||||
if(productFeatures == null){
|
||||
return R.failed("检验参数异常");
|
||||
}else {
|
||||
if(productFeatures.getSampleSize()==null || productFeatures.getName()==null){
|
||||
return R.failed("ProductFeatures 参数异常");
|
||||
}
|
||||
}
|
||||
|
||||
MeanRGraph meanRGraph = new MeanRGraph(productFeatures);
|
||||
//如果要检验,,那么set 判读方案
|
||||
if(graphArg.getInterpretationScheme()!=null){
|
||||
|
@ -65,9 +65,7 @@ public class MeanRGraph {
|
||||
|
||||
|
||||
public MeanRGraph(ProductFeatures productFeatures) throws Exception {
|
||||
if(productFeatures.getSampleSize()==null || productFeatures.getName()==null){
|
||||
throw new Exception("ProductFeatures 参数异常");
|
||||
}
|
||||
|
||||
this.argName = productFeatures.getName();
|
||||
this.sampleSize = productFeatures.getSampleSize().intValue();
|
||||
this.a2 = XBarRCoefficients.getA2(sampleSize);
|
||||
|
@ -62,9 +62,7 @@ public class MeanStandardDeviationGraph {
|
||||
|
||||
|
||||
public MeanStandardDeviationGraph(ProductFeatures productFeatures) throws Exception {
|
||||
if(productFeatures.getSampleSize()==null || productFeatures.getName()==null){
|
||||
throw new Exception("ProductFeatures 参数异常");
|
||||
}
|
||||
|
||||
this.argName = productFeatures.getName();
|
||||
this.sampleSize = productFeatures.getSampleSize().intValue();
|
||||
this.as = XBarSCoefficients.getAS(sampleSize);
|
||||
|
@ -62,9 +62,6 @@ public class XMRGraph {
|
||||
|
||||
|
||||
public XMRGraph(ProductFeatures productFeatures) throws Exception {
|
||||
if(productFeatures.getSampleSize()==null || productFeatures.getName()==null){
|
||||
throw new Exception("ProductFeatures 参数异常");
|
||||
}
|
||||
this.argName = productFeatures.getName();
|
||||
this.sampleSize = 1;
|
||||
this.specificationLimit = new SpecificationLimit(
|
||||
|
Loading…
Reference in New Issue
Block a user