fix(#790): zhaoyun (文件合入)
This commit is contained in:
@@ -133,9 +133,9 @@ public class AdviceManageAppServiceImpl implements IAdviceManageAppService {
|
|||||||
List<EncounterAccountDto> list = adviceManageAppMapper.getAmount(AccountType.PERSONAL_CASH_ACCOUNT.getCode(),
|
List<EncounterAccountDto> list = adviceManageAppMapper.getAmount(AccountType.PERSONAL_CASH_ACCOUNT.getCode(),
|
||||||
ChargeItemStatus.BILLABLE.getValue(), ChargeItemStatus.BILLED.getValue(),
|
ChargeItemStatus.BILLABLE.getValue(), ChargeItemStatus.BILLED.getValue(),
|
||||||
ChargeItemStatus.REFUNDED.getValue(), wrapper);
|
ChargeItemStatus.REFUNDED.getValue(), wrapper);
|
||||||
// 转换为Map,key = encounter_id
|
// 转换为Map,key = encounter_id(同一encounterId存在多条账户记录时取第一条)
|
||||||
Map<Long, EncounterAccountDto> dtoMap
|
Map<Long, EncounterAccountDto> dtoMap
|
||||||
= list.stream().collect(Collectors.toMap(EncounterAccountDto::getEncounterId, e -> e));
|
= list.stream().collect(Collectors.toMap(EncounterAccountDto::getEncounterId, e -> e, (existing, replacement) -> existing));
|
||||||
regPatientMainInfo.getRecords().forEach(e -> {
|
regPatientMainInfo.getRecords().forEach(e -> {
|
||||||
// 设置费用详情
|
// 设置费用详情
|
||||||
if (dtoMap.containsKey(e.getEncounterId())) {
|
if (dtoMap.containsKey(e.getEncounterId())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user