public ListDrugDispenseDeliveryUnDeliveryVO findUnDeliveryListString performDeptIdListString wardCodeList Date startTime Date endTimeString orderTypeString wrapType ListDrugDispenseDeliveryUnDe
public List
if (StringUtils.isBlank(orderType) || "normal".equals(orderType)) {
dispensingCountVOList = deliveryDetailDao.findUnDeliveryMasterByDispensing(performDeptId, wardCodeList, startTime, endTime);
}
List<DrugDispenseDeliveryUnDeliveryVO> prescCountVOList = deliveryDetailDao.findUnDeliveryMasterByPresc(performDeptId, wardCodeList, startTime, endTime, orderType);
if (CollectionUtils.isNotEmpty(dispensingCountVOList)) {
resultList.addAll(dispensingCountVOList);
}
if (CollectionUtils.isNotEmpty(prescCountVOList)) {
resultList.addAll(prescCountVOList);
}
if (CollectionUtils.isNotEmpty(resultList)) {
if ("by".equals(wrapType)) {
returnList = resultList.stream().filter(k -> k.getWrapFlag() == 1).collect(Collectors.toList());
} else if ("fby".equals(wrapType)) {
returnList = resultList.stream().filter(k -> k.getWrapFlag() != 1).collect(Collectors.toList());
} else {
returnList = resultList;
}
returnList.sort(Comparator.comparing(DrugDispenseDeliveryUnDeliveryVO::getDispenseTime, Comparator.reverseOrder()));
}
return returnList;
原文地址: https://www.cveoy.top/t/topic/iYPK 著作权归作者所有。请勿转载和采集!