|
|
|
@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.math.RoundingMode;
|
|
|
|
|
import java.text.NumberFormat;
|
|
|
|
|
import java.text.ParseException;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.*;
|
|
|
|
@ -205,6 +206,12 @@ public class QualityReportServiceImpl implements IQualityReportService {
|
|
|
|
|
collect.get(i).setREPAIR_RATE(collect.get(i).getREPAIR_RATE()+ repairRateReports.get(j).getREPAIR_RATE());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
NumberFormat nf = NumberFormat.getPercentInstance();
|
|
|
|
|
nf.setMinimumFractionDigits(2);
|
|
|
|
|
double v = collect.get(i).getQUALITY_SUM() * 1.0;
|
|
|
|
|
double v1 = collect.get(i).getOFF_LINE_NUM() * 1.0;
|
|
|
|
|
String format = nf.format( v/v1 );
|
|
|
|
|
collect.get(i).setREPAIR_RATE(String.valueOf(format));
|
|
|
|
|
collect.get(i).setINSPECTOR_TIME("第"+collect.get(i).getCOLUMN_A()+"周");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|