update 返修率数量异常

master
zhouhy 6 months ago
parent 26a5718eba
commit 9d5f912e84

@ -241,6 +241,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).getINSPECTOR_TIME().substring(0,7));
}
return collect;

Loading…
Cancel
Save