删除无效合并
This commit is contained in:
@@ -177,28 +177,9 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
|
||||
List<
|
||||
AdviceInventoryDto> inventoryList =
|
||||
adviceInventory.stream()
|
||||
<<<<<<< HEAD
|
||||
.filter(e -> baseDto.getAdviceDefinitionId().equals(e.getItemId())
|
||||
&& baseDto.getAdviceTableName().equals(e.getItemTable()))
|
||||
.collect(Collectors.toList());
|
||||
// 当存在按科室配置时:仅保留被允许的药房/药库的库存;
|
||||
// 若该药品类别未在配置中出现,则视为不可开立(清空库存以便前端过滤掉)
|
||||
if (!allowedLocByCategory.isEmpty()) {
|
||||
Set<Long> allowedLoc =
|
||||
allowedLocByCategory.get(String.valueOf(baseDto.getCategoryCode()));
|
||||
if (allowedLoc == null || allowedLoc.isEmpty()) {
|
||||
inventoryList = Collections.emptyList();
|
||||
} else {
|
||||
inventoryList = inventoryList.stream()
|
||||
.filter(inv -> allowedLoc.contains(inv.getLocationId()))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
=======
|
||||
.filter(e -> baseDto.getAdviceDefinitionId().equals(e.getItemId())
|
||||
&& baseDto.getAdviceTableName().equals(e.getItemTable()))
|
||||
.collect(Collectors.toList());
|
||||
>>>>>>> upstream/develop
|
||||
// 库存信息
|
||||
baseDto.setInventoryList(inventoryList);
|
||||
// 设置默认产品批号
|
||||
@@ -210,17 +191,6 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
|
||||
baseDto.setDefaultLotNumber(hasInventoryList.get(0).getLotNumber());
|
||||
}
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
if (!inventoryList.isEmpty() && !allowedLocByCategory.isEmpty()) {
|
||||
Set<Long> allowedLoc =
|
||||
allowedLocByCategory.get(String.valueOf(baseDto.getCategoryCode()));
|
||||
if (allowedLoc != null && !allowedLoc.isEmpty()) {
|
||||
AdviceInventoryDto hit = inventoryList.stream()
|
||||
.filter(inv -> allowedLoc.contains(inv.getLocationId()))
|
||||
.findFirst().orElse(null);
|
||||
if (hit != null && hit.getLotNumber() != null) {
|
||||
baseDto.setDefaultLotNumber(hit.getLotNumber());
|
||||
=======
|
||||
if (!inventoryList.isEmpty() && !medLocationConfig.isEmpty()) {
|
||||
// 第一步:在medLocationConfig中匹配categoryCode
|
||||
AdviceInventoryDto result1 = medLocationConfig.stream()
|
||||
@@ -233,7 +203,6 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
|
||||
.orElse(null);
|
||||
if (result2 != null && result2.getLotNumber() != null) {
|
||||
baseDto.setDefaultLotNumber(result2.getLotNumber());
|
||||
>>>>>>> upstream/develop
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,15 +179,9 @@ public class PaymentReconciliationController {
|
||||
* @return 操做结果
|
||||
*/
|
||||
@PostMapping("/reg-pay")
|
||||
<<<<<<< HEAD
|
||||
public R<?> regPay(@Valid @RequestBody OutpatientRegistrationSettleParam outpatientRegistrationSettleParam) {
|
||||
R<?> result = paymentReconciliationService.regPay(outpatientRegistrationSettleParam,
|
||||
outpatientRegistrationSettleParam.getChrgBchno(), outpatientRegistrationSettleParam.getPaymentDetails());
|
||||
=======
|
||||
public R<?> regPay(@Valid @RequestBody OutpatientRegistrationSettleParam outpatientRegistrationAddParam) {
|
||||
R<?> result = paymentReconciliationService.regPay(outpatientRegistrationAddParam,
|
||||
outpatientRegistrationAddParam.getChrgBchno(), outpatientRegistrationAddParam.getPaymentDetails());
|
||||
>>>>>>> upstream/develop
|
||||
// 付款成功后,开具发票
|
||||
if (result.getCode() == 200) {
|
||||
PaymentReconciliation paymentRecon = null;
|
||||
|
||||
Reference in New Issue
Block a user