update 返修率数量异常

master
zhouhy 6 months ago
parent cbcbcb3cd6
commit 26a5718eba

@ -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()+"周");
}

Loading…
Cancel
Save