|
@@ -416,22 +416,8 @@ public class ConsoleFacade {
|
|
|
* @return
|
|
|
*/
|
|
|
public IPage<CaseNumDTO> entryCountGroupByEntryPage(FilterPageVO filterPageVO) {
|
|
|
- DecimalFormat df = new DecimalFormat("#0.00");
|
|
|
filterPageVOSet(filterPageVO);
|
|
|
IPage<CaseNumDTO> page = qcresultInfoFacade.entryCountGroupByEntryPage(filterPageVO);
|
|
|
- List<CaseNumDTO> records = page.getRecords();
|
|
|
- if (ListUtil.isNotEmpty(records)) {
|
|
|
- records.forEach(item -> {
|
|
|
- Double percent = BigDecimal.valueOf(item.getNum())
|
|
|
- .divide(BigDecimal.valueOf(item.getTotleNum()), 4, RoundingMode.HALF_UP)
|
|
|
- .doubleValue();
|
|
|
- item.setPercent(percent);
|
|
|
- String percentStr
|
|
|
- = df.format(BigDecimal.valueOf(percent).multiply(BigDecimal.valueOf(100))) + "%";
|
|
|
- item.setPercentStr(percentStr);
|
|
|
- });
|
|
|
- }
|
|
|
- page.setRecords(records);
|
|
|
return page;
|
|
|
}
|
|
|
|