|
@@ -1259,9 +1259,30 @@ public class ConsoleFacade {
|
|
.map(NumDTO::getNum)
|
|
.map(NumDTO::getNum)
|
|
.reduce(0, Integer::sum);
|
|
.reduce(0, Integer::sum);
|
|
globleRecord.setNum(num);
|
|
globleRecord.setNum(num);
|
|
- globleRecord.setTotleNum(num);
|
|
|
|
- globleRecord.setPercent(1d);
|
|
|
|
- globleRecord.setPercentStr("100%");
|
|
|
|
|
|
+ records.add(0, globleRecord);
|
|
|
|
+
|
|
|
|
+ if (records.size() > filterVO.getLimitCount()) {
|
|
|
|
+ records = records.subList(0, 10);
|
|
|
|
+ }
|
|
|
|
+ return records;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 单条条目缺陷统计(首页)
|
|
|
|
+ *
|
|
|
|
+ * @param filterVO
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public List<NumDTO> casesEntryStatisticsById(FilterVO filterVO) {
|
|
|
|
+ filterFacade.filterVOSet(filterVO);
|
|
|
|
+ List<NumDTO> records = behospitalInfoFacade.casesEntryStatisticsById(filterVO);
|
|
|
|
+
|
|
|
|
+ NumDTO globleRecord = new NumDTO();
|
|
|
|
+ globleRecord.setName("全院");
|
|
|
|
+ Integer num = records.stream()
|
|
|
|
+ .map(NumDTO::getNum)
|
|
|
|
+ .reduce(0, Integer::sum);
|
|
|
|
+ globleRecord.setNum(num);
|
|
records.add(0, globleRecord);
|
|
records.add(0, globleRecord);
|
|
|
|
|
|
if (records.size() > filterVO.getLimitCount()) {
|
|
if (records.size() > filterVO.getLimitCount()) {
|