Browse Source

feat(退款管理):修改

Wangyafan 7 months ago
parent
commit
d575c07535

+ 2 - 2
src/main/java/com/sunxung/factoring/service/refundsManagement/impl/RefundManagementServiceImpl.java

@@ -511,10 +511,10 @@ public class RefundManagementServiceImpl extends ServiceImpl<RefundManagementMap
             applyDetails.setRefundManagementId(refundManagementVo.getBusinessKey());
             applyDetails.setStatus(0);
             applyDetails.setUserId(ThreadLocalUtil.getUserId());
-            applyDetails.setAmountCapitalization(NumberChineseFormatterUtils.format(applyDetails.getPaymentAmountTotal().doubleValue(), false, true));
+            applyDetails.setAmountCapitalization(MoneyToCNFormatUtil.formatToCN(applyDetails.getPaymentAmountTotal().doubleValue()));
             refundsApplyDetailsService.save(applyDetails);
 
-            if (OaFlowPaymentMatterTypeDic.ChildEnum.OA_UPSTREAM_GOODS_PAYMENT_MATTER.getCode().equals(applyDetails.getPaymentMatter())
+            if (OaFlowPaymentMatterTypeDic.ChildEnum.OA_REFUND_MATTER.getCode().equals(applyDetails.getPaymentMatter())
                     && CollectionUtil.isNotEmpty(selectedPlans)) {
                 selectedPlans.forEach(plan -> {
                     RefundsApplyDetailsPayCollPlanRef applyDetailsPayCollPlanRef = new RefundsApplyDetailsPayCollPlanRef();