挂号退款加退款记录
This commit is contained in:
@@ -597,7 +597,7 @@ public class PaymentRecServiceImpl implements IPaymentRecService {
|
||||
|
||||
// 全退
|
||||
String ybSettleIds = paymentReconciliation.getYbSettleIds();
|
||||
PaymentReconciliation unPaymentReconciliation = normalUnCharge(paymentReconciliation, PaymentRecDetails, null);
|
||||
PaymentReconciliation unPaymentReconciliation = normalUnCharge(paymentReconciliation, PaymentRecDetails, null, null);
|
||||
if (!StringUtils.isEmpty(ybSettleIds)) {
|
||||
// 医保结算信息
|
||||
List<String> ybSettleIdList = Arrays.asList(ybSettleIds.split(","));
|
||||
@@ -734,7 +734,7 @@ public class PaymentRecServiceImpl implements IPaymentRecService {
|
||||
}
|
||||
|
||||
PaymentReconciliation unPaymentReconciliation =
|
||||
normalUnCharge(paymentReconciliation, paymentRecDetails, cancelPaymentDto.getSetlId());
|
||||
normalUnCharge(paymentReconciliation, paymentRecDetails, cancelPaymentDto.getSetlId(), cancelPaymentDto.getReason());
|
||||
|
||||
return R.ok(unPaymentReconciliation);
|
||||
}
|
||||
@@ -792,10 +792,12 @@ public class PaymentRecServiceImpl implements IPaymentRecService {
|
||||
*
|
||||
* @param paymentReconciliation 付款实体
|
||||
* @param paymentRecDetails 付款详情
|
||||
* @param setlIds 医保结算ID
|
||||
* @param reason 退号/退费原因
|
||||
* @return 结果
|
||||
*/
|
||||
private PaymentReconciliation normalUnCharge(PaymentReconciliation paymentReconciliation,
|
||||
List<PaymentRecDetail> paymentRecDetails, String setlIds) {
|
||||
List<PaymentRecDetail> paymentRecDetails, String setlIds, String reason) {
|
||||
|
||||
// 获取原ID
|
||||
Long id = paymentReconciliation.getId();
|
||||
@@ -805,7 +807,8 @@ public class PaymentRecServiceImpl implements IPaymentRecService {
|
||||
.setEntererId(SecurityUtils.getLoginUser().getPractitionerId()).setBillDate(new Date())
|
||||
.setTenderedAmount(paymentReconciliation.getTenderedAmount().negate())
|
||||
.setReturnedAmount(paymentReconciliation.getReturnedAmount().negate())
|
||||
.setDisplayAmount(paymentReconciliation.getDisplayAmount().negate());
|
||||
.setDisplayAmount(paymentReconciliation.getDisplayAmount().negate())
|
||||
.setRefundReason(reason); // 保存退号/退费原因
|
||||
if (setlIds != null) {
|
||||
paymentReconciliation.setYbSettleIds(setlIds);
|
||||
}
|
||||
@@ -2232,7 +2235,7 @@ public class PaymentRecServiceImpl implements IPaymentRecService {
|
||||
}
|
||||
|
||||
// 全退
|
||||
PaymentReconciliation unPaymentReconciliation = normalUnCharge(paymentReconciliation, paymentRecDetails, null);
|
||||
PaymentReconciliation unPaymentReconciliation = normalUnCharge(paymentReconciliation, paymentRecDetails, null, null);
|
||||
|
||||
// 取医保结算数据
|
||||
String ybSettleIds = paymentReconciliation.getYbSettleIds();
|
||||
|
||||
Reference in New Issue
Block a user